dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit 9ec50961684295721383fca50bf70aa0ec7a5ba6 (patch)
parent a66cbc4a97b830b3bdc00cb05b927e83665c7c7f
Author: Alexander Karle <akarle@umass.edu>
Date:   Tue,  6 Mar 2018 12:54:19 -0500

Some vim folding preferences

Diffstat:
Avim/ftplugin/python.vim | 7+++++++
Mvim/plugins.vim | 2+-
Mvim/vimrc | 3+++
3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/vim/ftplugin/python.vim b/vim/ftplugin/python.vim @@ -0,0 +1,7 @@ +" set fold method to be indent based +" USAGE: +" KEY: no longer use zf#j or zf/<str> to create folds +" instead: +" zc -- close a fold by indent (at cursor until end indent) +" zo -- open a closed fold +set foldmethod=indent diff --git a/vim/plugins.vim b/vim/plugins.vim @@ -24,7 +24,7 @@ Plug 'airblade/vim-gitgutter' Plug 'vim-syntastic/syntastic', { 'for': 'python' } " todo task plugin -" Plug 'irrationalistic/vim-tasks' +Plug 'irrationalistic/vim-tasks' " Simple latex tools Plug 'lervag/vimtex', { 'for': 'tex' } diff --git a/vim/vimrc b/vim/vimrc @@ -38,6 +38,9 @@ set encoding=utf-8 " Show whitespace with 'set: list' (disable: set: nolist) set listchars=space:·,tab:>–,trail:~,eol:¬ +" Prevent {}, (), [] commands from opening folds +set foldopen-=block + " Source helper files " Only load plugins if vim-plug installed! if filereadable(expand("~/.vim/autoload/plug.vim"))