Vim
I use vim a lot for writing source code. It is fast, works on Linux, Windows and MacOS, and is very functional. It even allows to open files remotely from a server.
I don’t customize a lot the vimrc, but here are the minimum things I like to have:
set tabstop=2
set shiftwidth=2
set expandtab
set guifont=Lucida_Console:h9:cANSI
set hlsearch
colorscheme jcmendez
"My settings for exporting to HTML
let html_use_css=1
let html_no_pre=1 " I want to keep Python code well indented
Normally, I install Yasuhiro Matsumoto’s (mattn_jp@hotmail.com) calendar.vim plugin, which is really handy for keeping a work log of things done during the day.
My Vim colors file (in vimfiles/colors/jcmendez.vim):
" local syntax file - set colors on a per-machine basis:
" vim: tw=0 ts=2 sw=2
" Vim color file
" Maintainer: Juan C. Mendez (jcmendez@alum.mit.edu)
" Last Change: 2006 Mar 27
set background=light
hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "jcmendez"
hi Comment term=bold ctermfg=darkcyan guifg=darkcyan
hi Normal guifg=black guibg=white
hi Constant term=underline ctermfg=Magenta guifg=Magenta
hi Special term=bold ctermfg=Magenta guifg=Magenta
hi Identifier term=underline ctermfg=darkgreen guifg=darkgreen
hi Statement term=bold ctermfg=DarkRed gui=NONE guifg=Brown
hi PreProc term=underline ctermfg=Magenta guifg=Purple
hi Type term=underline ctermfg=blue gui=NONE guifg=blue
hi Function term=underline ctermfg=blue gui=NONE guifg=blue
hi Visual term=reverse ctermfg=lightgreen ctermbg=Red gui=NONE guifg=Black guibg=lightgreen
hi Search term=reverse ctermfg=Black ctermbg=yellow gui=NONE guifg=Black guibg=yellow
hi Tag term=bold ctermfg=DarkGreen guifg=DarkGreen
hi Error term=reverse ctermfg=15 ctermbg=9 guibg=Red guifg=White
hi Todo term=standout ctermbg=Red ctermfg=Black guifg=Black guibg=Red
hi StatusLine term=bold,reverse cterm=NONE ctermfg=Yellow ctermbg=DarkGray gui=NONE guifg=Yellow guibg=DarkGray
hi! link MoreMsg Comment
hi! link ErrorMsg Error
hi! link WarningMsg ErrorMsg
hi! link Question Comment
hi link String Constant
hi link Character Constant
hi link Number Constant
hi link Boolean Constant
hi link Float Number
hi link Conditional Statement
hi link Repeat Statement
hi link Label Statement
hi link Operator Statement
hi link Keyword Statement
hi link Exception Statement
hi link Include PreProc
hi link Define PreProc
hi link Macro PreProc
hi link PreCondit PreProc
hi link StorageClass Type
hi link Structure Type
hi link Typedef Type
hi link SpecialChar Special
hi link Delimiter Special
hi link SpecialComment Special
hi link Debug Special
Leave a Reply