summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2017-11-01 16:11:21 +0100
committerjohannst <stoelp@eit.uni-kl.de>2017-11-01 16:11:21 +0100
commit00b87452ed168b23c8f5461119cf082497d124cd (patch)
treeb6694aec0d0ca63855edbc729b2e8b0c1faf182d /vimrc
parent2cb61bb3a5951ec82687514cc3b174a2d2406681 (diff)
downloaddotfiles-00b87452ed168b23c8f5461119cf082497d124cd.tar.gz
dotfiles-00b87452ed168b23c8f5461119cf082497d124cd.zip
vimrc: map leader to <Space>, and only map if it is not set already
Diffstat (limited to 'vimrc')
-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>