aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-09 00:43:45 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-09 00:43:45 +1200
commit8a496e0598ee96e665a6bf8b3780021d1c788c11 (patch)
treeb4237a515ef927c7d392755072db4921304ca0f7
parentMerge branch 'release/v5.23.0' into develop (diff)
downloaddotfiles-8a496e0598ee96e665a6bf8b3780021d1c788c11.tar.gz
dotfiles-8a496e0598ee96e665a6bf8b3780021d1c788c11.zip
Add some more literate comments
-rw-r--r--vim/vimrc18
1 files 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