Syntax-highlight Python in a vim fold line
问题 I have found that code-folding helps me organize my files better. Thus, at the bottom of my ~/.vimrc , I enable vim code folding by default: ""Folding set foldmethod=indent set foldnestmax=2 nnoremap <space> za vnoremap <space> zf "set nofoldenable "set this to disable folding on file open This has the advantages of using SPACE to toggle folds at the cursor, or if they start to annoy me I can use z R to unfold everything. However, I'm also addicted to syntax highlighting. I use Dmitry