Friday, May 20, 2011

VIM + PHP: key mapping to find parent class

I love VIM power

map   <Leader>]    /extends /e<CR>:normal l<CR><C-]>

Use with generated ctags!


BONUS! your VIM cowsay powered:
vmap <C-S-F1> yo<esc>:r !cowsay <C-r>"<cr>
0. select block of text and press Control-Shift-F1 key.
1. cowsay needed!
2. Ubuntu installation:
sudo apt-get install cowsay

No comments: