@ompugao_ blog

hello this wonderful world

I wrote a vim plugin called ctrlp-z

Today, I wrote a vim plugin called ctrlp-z

This is a interface to fasd via ctrlp.

One example of setting .vimrc is as follows.

nnoremap <silent><C-p><C-f> :<C-u>CtrlPF<CR>
nnoremap <silent><C-p><C-z> :<C-u>CtrlPZ<CR>

CtrlPZ is a function to change your working directory(:lcd), and CtrlPF is a function to edit your most recently used file(:edit/:tabedit).

This plugin is so short (thanks to the ctrlp’s cool user commands!) that you can understand what is written in the code at a glance.

Thanks.

Comments