Make leader to space

This commit is contained in:
flyingscorpio@arch-desktop 2021-01-02 22:46:43 +01:00
parent cd60c207a2
commit dc8cf2f48a

View file

@ -8,7 +8,7 @@ set fenc=utf-8
set termencoding=utf-8 set termencoding=utf-8
" }}} " }}}
" LEADER SHORTCUTS {{{ " LEADER SHORTCUTS {{{
let mapleader="," let mapleader=" "
" jk is escape " jk is escape
inoremap jk <esc> inoremap jk <esc>
@ -151,7 +151,7 @@ set path+=** " Find files in sub-folders too
set incsearch " search as characters are entered set incsearch " search as characters are entered
set hlsearch " highlight matches set hlsearch " highlight matches
" turn off search hightlight after search " turn off search hightlight after search
nnoremap <leader><space> :nohlsearch<CR> nnoremap <leader>, :nohlsearch<CR>
" }}} " }}}
" FOLDING {{{ " FOLDING {{{
set foldenable " enable folding set foldenable " enable folding
@ -159,7 +159,7 @@ set foldlevelstart=10 " open most folds by default (0 to 99)
set foldnestmax=10 " guard against too many nested folds set foldnestmax=10 " guard against too many nested folds
set foldmethod=syntax " fold based on filetype set foldmethod=syntax " fold based on filetype
" space opens and closes folds " space opens and closes folds
nnoremap <space> za nnoremap , za
" }}} " }}}
" MOVEMENT {{{ " MOVEMENT {{{
" move vertically by visual line (don't jump wrapped lines) " move vertically by visual line (don't jump wrapped lines)