aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-20 23:12:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-20 23:12:19 +1200
commit10a49511325c57bbc5e08ce4d550a68b261e2c29 (patch)
tree1851840c90c5261434f6872cc80abc87f9ba1b83
parentRemove unnecessary 'undofile' settings (diff)
downloaddotfiles-10a49511325c57bbc5e08ce4d550a68b261e2c29.tar.gz
dotfiles-10a49511325c57bbc5e08ce4d550a68b261e2c29.zip
Use more idiomatic `if 1` in .vimrc
These blocks are to exclude vim-tiny from trying to run :let commands, which it can't do; the usual way this seems to be turned off is checking the value "1", rather than the 'eval' feature.
-rw-r--r--vim/vimrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/vimrc b/vim/vimrc
index b5a84d59..49f1194b 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -11,7 +11,7 @@ if has('multi_byte')
endif
" Use different keys for global and local leaders
-if has('eval')
+if 1
let g:mapleader = '\'
let g:maplocalleader = '_'
endif
@@ -321,7 +321,7 @@ endif
" Disable most core plugin stuff that I don't use; after/plugin/dist.vim
" clears these variables later
-if has('eval')
+if 1
" 2html.vim is often useful, so keep that
" matchparen.vim I use constantly