summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vimrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 83b8932..3e5dcc7 100644
--- a/vimrc
+++ b/vimrc
@@ -4,7 +4,11 @@
set nocompatible
inoremap jj <Esc>
-let mapleader=";"
+if !exists('&mapleader')
+ "let mapleader=";"
+ " map <Space> as leader
+ let mapleader=" "
+endif
nnoremap <leader>ev :edit ~/.vimrc<CR>
nnoremap <leader>sv :source ~/.vimrc<CR>