diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-13 14:46:37 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-13 14:46:37 +1200 |
commit | c43d277c44048299d804b89998b7215fdedf3282 (patch) | |
tree | 9ee117b46358b08f8f9a5c1610a69f83c744a4c2 /plugin | |
parent | Merge branch 'hotfix/v2.0.1' into develop (diff) | |
download | vim-cursorline-current-c43d277c44048299d804b89998b7215fdedf3282.tar.gz vim-cursorline-current-c43d277c44048299d804b89998b7215fdedf3282.zip |
Use :set rather than :let where practical
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/cursorline_current.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/cursorline_current.vim b/plugin/cursorline_current.vim index 1c09f91..0b698e3 100644 --- a/plugin/cursorline_current.vim +++ b/plugin/cursorline_current.vim @@ -27,13 +27,13 @@ augroup cursorline_current " to the same as the global value, to correspond with an active state. " autocmd BufEnter,FocusGained,InsertLeave,WinEnter * - \ let &l:cursorline = &g:cursorline + \ if &g:cursorline | setlocal cursorline | endif " On leaving a buffer, the Vim application window losing focus, entering " insert mode, or leaving a window, turn off the 'cursorline' option for the " linked window, so that if it's on, it will only be in the active one. " autocmd BufLeave,FocusGained,InsertEnter,WinLeave * - \ let &l:cursorline = 0 + \ setlocal nocursorline augroup END |