Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 850 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 850 Bytes

ctrlp-vimshell.vim

Execute vimshell history by ctrlp interface.

Dependence: vimshell and ctrlp.vim

vimshell is a amazing shell for vim. I like it, But some of its function are depending on other plugin like unite.vim.

List command history is one of basic function of a shell, here I use ctrlp interface to implement this feature.

Add following keymappng to your vimrc.

au FileType vimshell :imap <buffer> <c-k> <c-o>:stopinsert<cr>:call ctrlp#vimshell#start()<cr> 
au FileType vimshell :imap <buffer> <up> <c-o>:stopinsert<cr>:call ctrlp#vimshell#start()<cr>

Press Enter in ctrlp window will execute the selected command immediately.

Press Ctrl-x in ctrlp window will insert the command string only.