diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-24 16:12:10 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-24 16:12:10 +1200 |
commit | 0879078862e8e9fe44037f91eff935275453dadc (patch) | |
tree | ba9cba280acb2abdf27ae40122ae38b927360caf | |
parent | Use simple string check for 'runtimepath' (diff) | |
download | dotfiles-0879078862e8e9fe44037f91eff935275453dadc.tar.gz dotfiles-0879078862e8e9fe44037f91eff935275453dadc.zip |
Remove overzealous checks
Let's wait to see if there actually are side effects from doing all this
before we worry about it.
-rw-r--r-- | vim/vimrc | 26 |
1 files changed, 9 insertions, 17 deletions
@@ -36,9 +36,7 @@ endif " Restore insert mode 'backspace' limits to the stringent Vim default, if a " system vimrc or Neovim's heretical defaults has messed with it -if &backspace !=# '' - set backspace= -endif +set backspace= " Add some *nix paths not to back up " /dev/shm: Shared memory RAM disk @@ -124,9 +122,7 @@ set incsearch " Don't show a status line if there's only one window " This is Vim's default, but not Neovim's -if &laststatus != 1 - set laststatus=1 -endif +set laststatus=1 " Don't redraw the screen during batch execution set lazyredraw @@ -153,15 +149,11 @@ set path-=/usr/include " Disable command line display of file position if a system vimrc or Neovim " has switched it on -if &ruler - set noruler -endif +set noruler " Remove Debian's 'runtimepath' nonsense if present -if stridx(&runtimepath, '/var/lib/vim/addons') != -1 - set runtimepath-=/var/lib/vim/addons - set runtimepath-=/var/lib/vim/addons/after -endif +set runtimepath-=/var/lib/vim/addons +set runtimepath-=/var/lib/vim/addons/after " Make sessions usable set sessionoptions-=localoptions " No buffer options or mappings @@ -186,9 +178,9 @@ if &term =~# '^putty' endif " No terminal mouse, even if we could; the manual says to set 't_RV', but -" doing that doesn't seem to prevent 'ttyfast' from being set -" Not in Neovim -if exists('+ttymouse') && &ttymouse !=# '' +" doing that doesn't seem to prevent 'ttyfast' from being set; check for +" option existence as this is not an option in Neovim +if exists('+ttymouse') set ttymouse= endif @@ -248,7 +240,7 @@ try colorscheme sahara set cursorline catch - if &background != 'dark' + if &background != 'dark' " Avoid reloading syntax files unnecessarily set background=dark endif endtry |