dblume commited on 2024-11-14 16:11:24
Showing 2 changed files, with 14 additions and 12 deletions.
I'm mercurial. Got annoyed at turning on the ruler. Got annoyed at seeing the numbers column change when I was switching windows.
| ... | ... |
@@ -9,7 +9,7 @@ set scrolloff=0 " EC2 defaults to 5. Set explicitly to be consistent |
| 9 | 9 |
set notermguicolors " Only needed for neovim while I port my color schemes |
| 10 | 10 |
set undofile " undo even after closing and reopening a file |
| 11 | 11 |
set noshowcmd " Show size of selected area in visual mode on last line |
| 12 |
-set noruler " Show coordinates on status line |
|
| 12 |
+set ruler " Show coordinates on status line |
|
| 13 | 13 |
set hidden " Don't abandon Scratch buffer when hidden. |
| 14 | 14 |
"set cursorline " For CursorLineNR formatting similar to pre 8.0. |
| 15 | 15 |
set culopt=number " Otherwise diff views have an underline. neovim issue 9800 |
| ... | ... |
@@ -320,11 +320,12 @@ if has("autocmd")
|
| 320 | 320 |
autocmd FileType c,cpp set foldmethod=syntax |
| 321 | 321 |
|
| 322 | 322 |
" https://jeffkreeftmeijer.com/vim-number/ |
| 323 |
-augroup numbertoggle |
|
| 324 |
- autocmd! |
|
| 325 |
- autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu | endif |
|
| 326 |
- autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif |
|
| 327 |
-augroup END |
|
| 323 |
+" Disabling for now, just keep the mode that was explicitly requested. |
|
| 324 |
+"augroup numbertoggle |
|
| 325 |
+" autocmd! |
|
| 326 |
+" autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu | endif |
|
| 327 |
+" autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif |
|
| 328 |
+"augroup END |
|
| 328 | 329 |
|
| 329 | 330 |
autocmd BufRead *.txt set wrap linebreak " "soft" wrap of existing lines |
| 330 | 331 |
autocmd BufRead README set wrap linebreak " "soft" wrap of existing lines |
| ... | ... |
@@ -14,7 +14,7 @@ set incsearch " Navigate to matched strings while typing. Toggle: :set is! |
| 14 | 14 |
set scrolloff=0 " EC2 defaults to 5. Set explicitly to be consistent |
| 15 | 15 |
set formatoptions+=j " Delete comment character when joining commented lines. |
| 16 | 16 |
set ttimeoutlen=100 " Affects Esc key, not leader. |
| 17 |
-set noruler " Don't show cursor pos on right side of status bar |
|
| 17 |
+set ruler " Show cursor pos on right side of status bar |
|
| 18 | 18 |
" Set the title of the terminal window. Consider changing titlestring, %t, %M |
| 19 | 19 |
set title titlestring=%f%m\ -\ vim |
| 20 | 20 |
|
| ... | ... |
@@ -333,11 +333,12 @@ if has("autocmd")
|
| 333 | 333 |
autocmd FileType c,cpp set foldmethod=syntax |
| 334 | 334 |
|
| 335 | 335 |
" https://jeffkreeftmeijer.com/vim-number/ |
| 336 |
-augroup numbertoggle |
|
| 337 |
- autocmd! |
|
| 338 |
- autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu | endif |
|
| 339 |
- autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif |
|
| 340 |
-augroup END |
|
| 336 |
+" Disabling for now, just keep the mode that was explicitly requested. |
|
| 337 |
+"augroup numbertoggle |
|
| 338 |
+" autocmd! |
|
| 339 |
+" autocmd BufEnter,FocusGained,InsertLeave,WinEnter * if &nu && mode() != "i" | set rnu | endif |
|
| 340 |
+" autocmd BufLeave,FocusLost,InsertEnter,WinLeave * if &nu | set nornu | endif |
|
| 341 |
+"augroup END |
|
| 341 | 342 |
|
| 342 | 343 |
autocmd BufRead *.txt set wrap linebreak " "soft" wrap of existing lines |
| 343 | 344 |
autocmd BufRead README set wrap linebreak " "soft" wrap of existing lines |
| 344 | 345 |