diff --git a/.config/vim/vim_plug b/.config/vim/vim_plug index 68316a5..200c383 100644 --- a/.config/vim/vim_plug +++ b/.config/vim/vim_plug @@ -68,6 +68,9 @@ Plug 'deoplete-plugins/deoplete-jedi' " Julia support Plug 'JuliaEditorSupport/julia-vim' +" enhanced python highlighting +Plug 'vim-python/python-syntax' + call plug#end() " ----- PlugIns Configuration @@ -154,3 +157,6 @@ let g:indentLine_setColors = 0 let g:indentLine_leadingSpaceEnabled = 1 let g:indentLine_leadingSpaceChar = '·' hi Conceal ctermfg=0 ctermbg=NONE + +" Python highlighting +let g:python_highlight_all = 1 diff --git a/.config/vim/vim_uni b/.config/vim/vim_uni index 318be61..0134bc0 100644 --- a/.config/vim/vim_uni +++ b/.config/vim/vim_uni @@ -16,6 +16,8 @@ set background=dark " set list lcs=trail:·,tab:··\|,nbsp:· hi VertSplit cterm=NONE ctermbg=0 ctermfg=0 hi NonText ctermfg=0 +hi Folded ctermfg=White +hi Folded ctermbg=Black " hi! EndOfBuffer ctermbg=NONE ctermfg=8 set fillchars=eob:\ syntax on @@ -23,6 +25,15 @@ filetype indent plugin on map :NERDTreeToggle let mapleader=" " +" ----- Folding stuff +set foldnestmax=10 +" don't fold by default +set nofoldenable +set foldlevel=1 + +" python +autocmd FileType python setlocal foldmethod=indent + " ----- Mapping " Norm but in shortcut vnoremap . :normal .