diff options
author | johannst <stoelp@eit.uni-kl.de> | 2017-11-01 16:11:21 +0100 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2017-11-01 16:11:21 +0100 |
commit | 00b87452ed168b23c8f5461119cf082497d124cd (patch) | |
tree | b6694aec0d0ca63855edbc729b2e8b0c1faf182d | |
parent | 2cb61bb3a5951ec82687514cc3b174a2d2406681 (diff) | |
download | dotfiles-00b87452ed168b23c8f5461119cf082497d124cd.tar.gz dotfiles-00b87452ed168b23c8f5461119cf082497d124cd.zip |
vimrc: map leader to <Space>, and only map if it is not set already
-rw-r--r-- | vimrc | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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> |