11 May 2023

How to install Control-P for vim?

https://ctrlpvim.github.io/ctrlp.vim/


  1. Clone the plugin into a separate directory:
    $ cd ~/.vim
    $ git clone https://github.com/ctrlpvim/ctrlp.vim.git bundle/ctrlp.vim
  2. Add to your ~/.vimrc:
    set runtimepath^=~/.vim/bundle/ctrlp.vim
  3. Run at Vim's command line:
    :helptags ~/.vim/bundle/ctrlp.vim/doc
  4. Restart Vim and check :help ctrlp.txt (or simply :help ctrlp) for usage instructions and configuration details. 
  5. When CtrlP helps find the file you want to open, if you simple press Enter, it will fill the current full window. Maybe that is not what you want.
  6. If you want to split the current window vertically and open it, press Ctrl-V; 
  7. If you want to split the current window horizontally,, and open it, press Ctrl-S.
  8. If you want to open the file on a new tab, press Ctrl-T.

No comments:

Post a Comment