sponsor Vim development Vim logo Vim Book Ad

cursorline_current.vim : Show cursorline only in active window

 script karma  Rating 25/7, Downloaded by 898  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://dev.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
ip used for rating: 142.132.191.50

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.
   
Vim at Github