aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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')