mirror of
https://github.com/mhinz/vim-galore.git
synced 2025-11-26 22:55:35 +08:00
Tips: smarter cursorline
This commit is contained in:
13
README.md
13
README.md
@@ -57,6 +57,7 @@ added every day. Things about to be added can be found here:
|
||||
- [Change cursor style in insert mode](#change-cursor-style-in-insert-mode)
|
||||
- [Don't lose selection when shifting sidewards](#dont-lose-selection-when-shifting-sidewards)
|
||||
- [Reload a file on saving](#reload-a-file-on-saving)
|
||||
- [Smarter cursorline](#smarter-cursorline)
|
||||
|
||||
#### [Commands](#commands-1)
|
||||
|
||||
@@ -1204,6 +1205,18 @@ autocmd BufWritePost $MYVIMRC source $MYVIMRC
|
||||
autocmd BufWritePost ~/.Xdefaults call system('xrdb ~/.Xdefaults')
|
||||
```
|
||||
|
||||
#### Smarter cursorline
|
||||
|
||||
I love the cursorline, but I only want to use it in the current window and not
|
||||
when being in insert mode:
|
||||
|
||||
```viml
|
||||
autocmd WinEnter * set cursorline
|
||||
autocmd WinLeave * set nocursorline
|
||||
autocmd InsertEnter * set nocursorline
|
||||
autocmd InsertLeave * set cursorline
|
||||
```
|
||||
|
||||
## Commands
|
||||
|
||||
Useful commands that are good to know.
|
||||
|
||||
Reference in New Issue
Block a user