From b0c4c6c7318866e5d74715885cb379aab70d2763 Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Wed, 19 Sep 2018 17:11:23 +0300 Subject: [PATCH] Enable folding --- ftplugin/nim.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ftplugin/nim.vim b/ftplugin/nim.vim index c12a28d..4cfad5e 100644 --- a/ftplugin/nim.vim +++ b/ftplugin/nim.vim @@ -15,6 +15,8 @@ setlocal commentstring=#\ %s setlocal omnifunc=NimComplete setlocal suffixesadd=.nim setlocal expandtab "Make sure that only spaces are used +setlocal foldmethod=indent +setlocal foldlevel=99 " Don't fold newly opened buffers by default setl tabstop=2 setl softtabstop=2