From 089cc320212cca6bb9f7908055194dbafadeab33 Mon Sep 17 00:00:00 2001 From: Julio Biason Date: Mon, 27 Jan 2014 15:03:31 -0200 Subject: [PATCH] renable python-mode; changed fold level to actually open with folds open; some other tries around --- configs/vimrc | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/configs/vimrc b/configs/vimrc index 9173dbb..7c5499f 100644 --- a/configs/vimrc +++ b/configs/vimrc @@ -35,6 +35,7 @@ endif set tabstop=4 " tabs are displayed as 4 spaces set shiftwidth=4 " by default, when auto-identing, add 4 spaces (or 1 tabstop) set foldmethod=marker " fold on markers +set foldlevel=3 " number of folds to open automatically set scrolloff=1 " always show one line around the cursor set laststatus=2 " always show the status bar ('cause I like to see the line and column, always) set showtabline=2 " always show the tabline @@ -107,7 +108,7 @@ if has("autocmd") " (use spaces instead of tabs (expandtab), uses 4 spaces for tabs (tabstop), " when auto-indenting, also use 4 spaces (shiftwidth), when deleting text, 4 " spaces are a tab (softtabstop) and break the line at column 78 (textwidth)) - au FileType python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 textwidth=78 + au FileType python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 textwidth=78 colorcolumn=79 " reStructured files follow python closely, but use 3 tab stops instead of 4 au FileType rst setlocal expandtab tabstop=3 sw=3 sts=3 textwidth=78 @@ -219,14 +220,14 @@ Bundle 'jiangmiao/auto-pairs' " python " Bundle 'nvie/vim-flake8' -" Bundle 'klen/python-mode' +Bundle 'klen/python-mode' Bundle 'scrooloose/syntastic' " snippets -" Bundle 'msanders/snipmate.vim' -Bundle "MarcWeber/vim-addon-mw-utils" -Bundle "tomtom/tlib_vim" -Bundle "garbas/vim-snipmate" +Bundle 'msanders/snipmate.vim' +" Bundle "MarcWeber/vim-addon-mw-utils" +" Bundle "tomtom/tlib_vim" +" Bundle "garbas/vim-snipmate" " fuzzy file open Bundle 'kien/ctrlp.vim' @@ -240,6 +241,7 @@ Bundle 'terryma/vim-multiple-cursors' " colorscheme Bundle 'croaker/mustang-vim' +Bundle "Ambient-Color-Scheme" " Bundle 'altercation/vim-colors-solarized' color mustang " looks awesome on gvim, looks alright in vim if you have 256 color support @@ -249,6 +251,9 @@ color mustang " looks awesome on gvim, looks alright in vim if you have 256 co " Improved syntax files Bundle 'Glench/Vim-Jinja2-Syntax' +" Identation guidelines +Bundle 'nathanaelkane/vim-indent-guides' + " auto-pair settings let g:AutoPairsMapCR = 1 @@ -334,3 +339,9 @@ let g:unite_winheight = 10 set wildignore+=*/build/*,*.egginfo,*.pyc,*.mo let g:ctrlp_extensions = ['funky'] nnoremap :CtrlPFunky + +" ---------------------------------------------------------------------- +" Indent guides +" ---------------------------------------------------------------------- +let g:indent_guides_start_level=2 +let g:indent_guides_guide_size=1