diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-09-07 17:24:56 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-09-07 17:24:56 +1200 |
commit | 93f218b69a7cb2138b2e1a9bab193b2b2d1377e2 (patch) | |
tree | 9983347050b9f386e3a8e9f47ea77cb0710808f1 | |
parent | Specify object type in comments (diff) | |
download | dotfiles-93f218b69a7cb2138b2e1a9bab193b2b2d1377e2.tar.gz dotfiles-93f218b69a7cb2138b2e1a9bab193b2b2d1377e2.zip |
Unset 'laststatus' and 'ruler' only if they're set
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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') |