Default to showing line numbers in vim/nvim
dblume

dblume commited on 2026-01-05 10:50:40
Showing 2 changed files, with 9 additions and 2 deletions.


Colleagues seem to like it. Let's give it a try.
I find the signcolumn too distracting right now. I know while
I'm editing that I'm temporarily breaking things along the way.
... ...
@@ -11,10 +11,12 @@ 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 12
 set ruler           " Show coordinates on status line
13 13
 set hidden          " Don't abandon Scratch buffer when hidden.
14
-"set cursorline     " For CursorLineNR formatting similar to pre 8.0.
15 14
 set culopt=number   " Otherwise diff views have an underline. neovim issue 9800
16 15
 " Set the title of the terminal window. Consider changing titlestring, %t, %M
17 16
 set title titlestring=%f%m\ -\ nvim
17
+set number          " Show line numbers
18
+set cursorline      " For CursorLineNR formatting similar to pre 8.0.
19
+set signcolumn=no   " Sign column is distracting unless needed.
18 20
 
19 21
 " WSL clipboard-tool fom 'help clipboard'
20 22
 "let g:clipboard = {
... ...
@@ -451,6 +453,9 @@ let g:rainbow_conf = {
451 453
 \ }
452 454
 let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle
453 455
 
456
+" fzf integration
457
+"set rtp+=/opt/homebrew/opt/fzf
458
+
454 459
 " See https://wiki.dlma.com/neovim#cscope
455 460
 lua << EOF
456 461
 
... ...
@@ -17,7 +17,9 @@ set ttimeoutlen=100 " Affects Esc key, not leader.
17 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
-set cursorline      " Highlight the line with the cursor
20
+set number          " Show line numbers
21
+set cursorline      " For CursorLineNR formatting similar to pre 8.0.
22
+set signcolumn=no   " Signcolumn is distracting unless needed.
21 23
 
22 24
 " David, you rely on delete operations going to the default register.
23 25
 " So remapping to deletes to go to _ won't work for you.
24 26