sponsor Vim development Vim logo Vim Book Ad

cursorline_current.vim : Show cursorline only in active window

 script karma  Rating 12/3, Downloaded by 78  Comments, bugs, improvements  Vim wiki

created by
Tom Ryder
 
script type
utility
 
description
This plugin tweaks the behaviour of the 'cursorline' and 'cursorcolumn' options to enable them only in the current window, when not in insert mode, and/or when Vim has focus.

In its default configuration, it essentially makes 'cursorline' and 'cursorcolumn' follow the cursor around in normal mode as much as possible.  It uses each window's global value of both options as its default, so setting each option in your |vimrc| before the plugin loads should do the trick.

https://sanctum.geek.nz/cgit/vim-cursorline-current.git/
 
install details
Drop plugin/cursorline_current.vim in your ~/.vim/plugin directory. Add doc/cursorline_current.txt in ~/.vim/doc if you want the help file. Otherwise, use your favourite Vim plugin package manager.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-cursorline-current-3.0.0.tar.gz 3.0.0 2019-06-20 7.0 Tom Ryder Rewrite adding 'cursorcolumn' support, more options controlling behaviour, resumes sessions without changing window
vim-cursorline-current-0.3.0.tar.gz 0.3.0 2018-09-09 7.0 Tom Ryder Bugfix for opening windows onto existent buffers, per report from m_ben in #vim
ip used for rating: 54.211.135.32

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
OSDN.net Logo