From d61c2b250034e4378df1d9338a31411eb4fe1170 Mon Sep 17 00:00:00 2001 From: M1dgard Date: Fri, 25 May 2018 00:36:56 +0200 Subject: [PATCH] [nvim] Space to toggle fold, awesome --- nvim-init.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nvim-init.vim b/nvim-init.vim index 3c2dc46..460acf1 100644 --- a/nvim-init.vim +++ b/nvim-init.vim @@ -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 @=(foldlevel('.')?'za':"\") +vnoremap zf + +" Misc {{{2 + " Escape from NeoVim terminals tnoremap " Just hit the [à0] button on an AZERTY, no need to do shift+à to for 0