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

2 則留言:

  1. Have you tried MacVim ( code.google.com/p/macvim/ )? It has keyboard shortcuts for next/prev tab built in and lots of other goodies.

    回覆刪除
  2. well, I use the vim-app on macports.
    is it very different from MacVim?

    回覆刪除