aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorCody Hiar <cody.hiar@investopedia.com>2016-11-09 20:31:01 -0700
committerCody Hiar <cody.hiar@investopedia.com>2016-11-09 20:31:01 -0700
commit86aa98279af7ef738cfda80b636d91ff47b011e9 (patch)
tree72646d99b549d8b2d84955008160fb2d55ebc418 /plugin
parentd990578625252fdc8c832fa89b619dec83442489 (diff)
simply folding options
Diffstat (limited to 'plugin')
-rw-r--r--plugin/vim-options.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim
index b4659d2..38d88e8 100644
--- a/plugin/vim-options.vim
+++ b/plugin/vim-options.vim
@@ -467,3 +467,17 @@ if !empty(glob(EditorDir.'/plugged/vim-togglelist/plugin/togglelist.vim'))
nmap <script> <silent> <leader>l :call ToggleLocationList()<CR>
endif
"-----------------------------------------------------------------------------------------------------------------------
+
+
+
+"-----------------------------------------------------------------------------------------------------------------------
+" SimplyFold
+"-----------------------------------------------------------------------------------------------------------------------
+if !empty(glob(EditorDir.'/plugged/SimpylFold/ftplugin/python/SimpylFold.vim'))
+ let g:SimpylFold_docstring_preview = 1
+ " Needed for some issues
+ autocmd BufWinEnter *.py setlocal foldexpr=SimpylFold(v:lnum) foldmethod=expr
+ autocmd BufWinLeave *.py setlocal foldexpr< foldmethod<
+ nnoremap <space>a za
+endif
+"-----------------------------------------------------------------------------------------------------------------------