2009年2月14日 星期六

gvim - winresizing and svkdo for macvim

here are some new configuration for my mac gvim
" svk
function! _SVKDO()
let action = input( "svk action to " . expand('%') . " : " )
if strlen( action ) < 1
echo "no action"
return
endif
exec "!svk " . action . " " . expand('%')
endfunction
command! SVKDO :call _SVKDO()
nmap <D-k> :SVKDO<CR>

" window size key for macbook
if has('gui_mac')
nmap <silent> <D--> :resize -3<CR>
nmap <silent> <D-=> :resize +3<CR>
nmap <silent> <D-]> :vertical resize +5<CR>
nmap <silent> <D-[> :vertical resize -5<CR>

nmap <silent> <D-\> <C-w><C-w>
nmap <silent> <D-;> gT
nmap <silent> <D-'> gt
endif