This repository has been archived on 2025-01-31. You can view files and clone it, but cannot push or open issues or pull requests.
Files
.bin
.config
.local
.ncmpcpp
.oh-my-zsh
.themes
.vim
autoload
bundle
SimpylFold
autoload
doc
ftplugin
python
SimpylFold.vim
plugin
.vintrc.yaml
AUTHORS
LICENSE
README.md
YouCompleteMe
gruvbox
indentpython
vim-template
System
.Xdefaults
.Xresources
.bash_profile
.profile
.vimrc
.xinitrc
.xsessionrc
.zshrc
home/.vim/bundle/SimpylFold/ftplugin/python/SimpylFold.vim
Salt e6f90a24d5 Vim: Add SimpylFold
I keep fucking making these the wrong way and it's going to bite me in the ass. Submodules, self. SUBMODULES. SUBMODULES.
2017-11-30 17:30:19 -06:00

17 lines
426 B
VimL

if exists('b:loaded_SimpylFold')
finish
endif
let b:loaded_SimpylFold = 1
call SimpylFold#BufferInit()
setlocal foldexpr=SimpylFold#FoldExpr(v:lnum)
setlocal foldmethod=expr
augroup SimpylFold
autocmd TextChanged,InsertLeave <buffer> call SimpylFold#Recache()
augroup END
if exists('g:SimpylFold_docstring_preview') && g:SimpylFold_docstring_preview
setlocal foldtext=foldtext()\ .\ SimpylFold#FoldText()
endif