[nvim] Space to toggle fold, awesome
This commit is contained in:
parent
980a633a41
commit
d61c2b2500
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue