]> git.rmz.io Git - dotfiles.git/blobdiff - vim/vimrc
vim: set g:mapleader instead of remapping <space>
[dotfiles.git] / vim / vimrc
index 2f0a7ca67a91004a32f72207d6ede9133fa07df8..5f0dea313f1de9c5b23c7a44790b004185c5690c 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1,6 +1,9 @@
 " force python3
 if has('python3') | endif
 
+" space is leader
+let g:mapleader = " "
+
 " runtimepath {{{1
 set runtimepath ^=$XDG_CONFIG_HOME/vim
 set runtimepath +=$XDG_CONFIG_HOME/vim/after
@@ -422,9 +425,6 @@ command! ToggleAutoChecktime let b:autochecktime=!get(b:, 'autochecktime', 0) |
 
 " bindings {{{1
 
-" allow both <space> and \ to be <leader>
-map <space> <leader>
-
 " make
 function! MakeWithOpt()
   " TODO only do this if makeprg matches make