let <SPACE> be vim leader

This commit is contained in:
Jonas Forsberg 2020-07-13 13:45:26 +02:00
parent c2befd1068
commit 7cb4d054a4
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9
2 changed files with 7 additions and 5 deletions

View File

@ -70,13 +70,13 @@ function ww(){
case $1 in case $1 in
SUSE|suse|S|s|2) SUSE|suse|S|s|2)
vim -c "normal 2,ww" vim -c "normal 2 ww"
;; ;;
Private|private|p|2) Private|private|p|3)
vim -c "normal 3,ww" vim -c "normal 3 ww"
;; ;;
*) *)
vim -c "normal 1,ww" vim -c "normal 1 ww"
;; ;;
esac esac
} }

4
.vimrc
View File

@ -18,8 +18,10 @@ set laststatus=2
set encoding=utf-8 set encoding=utf-8
set autoindent set autoindent
set nocompatible set nocompatible
set complete=.,w,b,u,t,i,kspell
syntax on syntax on
let mapleader="," nnoremap <SPACE> <Nop>
let mapleader=" "
filetype indent plugin on filetype indent plugin on