diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-09 11:46:40 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-09 11:46:59 +1200 |
commit | 2e1bb38fc7c3ea68f88bd2495b584b043a501ccc (patch) | |
tree | 81ee585d1baa13d4155a670b7b098c8adc5ae842 | |
parent | Merge branch 'release/v0.3.0' into develop (diff) | |
download | vim-cursorline-current-2e1bb38fc7c3ea68f88bd2495b584b043a501ccc.tar.gz vim-cursorline-current-2e1bb38fc7c3ea68f88bd2495b584b043a501ccc.zip |
Switch to two-spacing
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | doc/cursorline_current.txt | 6 | ||||
-rw-r--r-- | plugin/cursorline_current.vim | 4 |
3 files changed, 7 insertions, 7 deletions
@@ -2,13 +2,13 @@ cursorline\_current.vim ======================= This plugin tweaks the behaviour of the `'cursorline'` option to enable it only -in the current window and when not in insert mode. It essentially makes +in the current window and when not in insert mode. It essentially makes `'cursorline'` follow the cursor in normal mode as much as possible. License ------- -Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself. +Copyright (c) [Tom Ryder][1]. Distributed under the same terms as Vim itself. See `:help license`. [1]: https://sanctum.geek.nz/ diff --git a/doc/cursorline_current.txt b/doc/cursorline_current.txt index 1a84ece..a6a4514 100644 --- a/doc/cursorline_current.txt +++ b/doc/cursorline_current.txt @@ -4,7 +4,7 @@ DESCRIPTION *cursorline_current* This plugin tweaks the behaviour of the 'cursorline' option to enable it only in the current window, when not in insert mode, and (if supported) when Vim -has focus. It essentially makes 'cursorline' follow the cursor in normal mode +has focus. It essentially makes 'cursorline' follow the cursor in normal mode as much as possible. It uses the global value of 'cursorline' as its default, and should also @@ -12,14 +12,14 @@ correctly handle local values for windows. REQUIREMENTS *cursorline_current-requirements* -This plugin only loads if 'compatible' is not set. It requires the |+autocmd| +This plugin only loads if 'compatible' is not set. It requires the |+autocmd| and |+windows| features. OPTIONS *cursorline_current-options* *g:cursorline_current_insert* Set `g:cursorline_current_insert` to 0 in your |vimrc| if you don't like the -cursor line switching off while you're in insert mode. This option defaults to +cursor line switching off while you're in insert mode. This option defaults to 1. AUTHOR *cursorline_current-author* diff --git a/plugin/cursorline_current.vim b/plugin/cursorline_current.vim index 43bf882..9977f95 100644 --- a/plugin/cursorline_current.vim +++ b/plugin/cursorline_current.vim @@ -1,6 +1,6 @@ " " cursorline_current: If 'cursorline' is globally on, only enable it for the -" current window, and only when not in insert mode. Essentially, make +" current window, and only when not in insert mode. Essentially, make " 'cursorline' follow the actual normal-mode cursor as much as possible. " " Author: Tom Ryder <tom@sanctum.geek.nz> @@ -53,7 +53,7 @@ augroup cursorline_current " Turn off 'cursorline' for other windows on load autocmd VimEnter * call s:Load() - " Turn off 'cursorline' when leaving a window or losing focus. We call the + " Turn off 'cursorline' when leaving a window or losing focus. We call the " restore again on BufEnter to handle existent local buffer values for the " option overwriting the window value (Vim bug?) autocmd WinLeave,FocusLost * call s:Suspend() |