From 8a496e0598ee96e665a6bf8b3780021d1c788c11 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 9 Jun 2019 00:43:45 +1200 Subject: Add some more literate comments --- vim/vimrc | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 81a0add5..09b52c54 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -538,14 +538,24 @@ set showmatch matchtime=3 " set nomodeline -" Treat numbers with a leading zero as decimal, not octal +" The only octal numbers I can think of that I ever even encounter are Unix +" permissions masks, and I'd never use CTRL-A or CTRL-X to increment them. +" Numbers with leading zeroes are far more likely to be decimals. +" set nrformats-=octal -" Disable command line display of file position if a system vimrc or Neovim -" has switched it on +" I like to leave the last line of the screen blank unless something is +" actually happening in it, so I have grown to like the Vim default of +" 'noruler'. System vimrc files tend to turn this back on, though, and Neovim +" has it on by default, so we will often need to put it back to normal. +" set noruler -" Make sessions usable +" Sessions are great, but they don't play together well with plugins and +" filetype plugins. Restoring the same settings from both reloaded plugins +" and from the session causes screeds of errors. Adjusting session behaviour +" to stop it trying to restore quite so much makes them useable. +" set sessionoptions-=localoptions " No buffer options or mappings set sessionoptions-=options " No global options or mappings -- cgit v1.2.3