[nvim] Space to toggle fold, awesome

This commit is contained in:
M1dgard 2018-05-25 00:36:56 +02:00
parent 980a633a41
commit d61c2b2500
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -62,10 +62,15 @@ set noexpandtab " tab key puts tabs
" trailing whitespace looks like \cdot
set list listchars=tab:¦\ ,trail" show indentation lines for tabs, trailing whitespace looks like \cdot
" Misc {{{2
" Folds {{{2
set foldlevelstart=3 " Not too much folding
nnoremap <silent> <Space> @=(foldlevel('.')?'za':"\<Space>")<CR>
vnoremap <Space> zf
" Misc {{{2
" Escape from NeoVim terminals
tnoremap <Esc> <C-\><C-n>
" Just hit the [à0] button on an AZERTY, no need to do shift+à to for 0