aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-09-07 17:24:56 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-09-07 17:24:56 +1200
commit93f218b69a7cb2138b2e1a9bab193b2b2d1377e2 (patch)
tree9983347050b9f386e3a8e9f47ea77cb0710808f1
parentb6b86872f55d2d363e60bcc3de6e1091f36a1d3f (diff)
downloaddotfiles-93f218b69a7cb2138b2e1a9bab193b2b2d1377e2.tar.gz
Unset 'laststatus' and 'ruler' only if they're set
-rw-r--r--vim/vimrc8
1 files changed, 6 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index eb7f04d3..9f5735c7 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -140,7 +140,9 @@ set nojoinspaces
" Don't show a statusline if there's only one window
" This is the Vim default, but NeoVim changed it
-set laststatus=1
+if &laststatus
+ set laststatus=1
+endif
" Don't redraw the screen during batch execution
set lazyredraw
@@ -167,7 +169,9 @@ set path+=** " Search current directory's whole tree
" Disable command line display of file position
" This is the Vim default, but NeoVim changed it
-set noruler
+if &ruler
+ set noruler
+endif
" Make sessions usable
if exists('+sessionoptions')