Questions tagged [ctrlp]

CtrlP is a vim plugin which allows fast switching of buffers and files.

87 questions
5
votes
1 answer

ViM + CtrlP: Persist the cache between ViM sessions

While ViM is running, CtrlP's cache file exists. However, when I quit ViM, CtrlP's cache file is deleted. How can the cache file be persisted between sessions?
nickh
  • 4,721
  • 2
  • 29
  • 31
5
votes
3 answers

ctrlp : open selected file in the left vertical split

When using ctrlp, I can open a selected file in a new vertical split using ctlr-v However, the new file open in the left split and the already opened one goes to the right split. I'd like the opposite to happen : opening the new file in the right…
Florian F
  • 8,822
  • 4
  • 37
  • 50
4
votes
2 answers

Vim 8.1.0037 update breaks multiple plugins

I have updated my vim to 8.1.0037 (vim --version showed compiled 13th June), and when I opened it today multiple plugins are broken. on a restart and reinstall all these plugins, they are still broken. Any direction? it seems to me that the update…
stucash
  • 1,078
  • 1
  • 12
  • 23
4
votes
0 answers

ctrlp fuzzy search string in all file in directory

Using ctrlp, I would like to search for a string in all files in the current directory ( or a specified directory). Using the "lines" mode is only searching for files opened. I would like to search for all files, including the files not…
kirikoumath
  • 723
  • 9
  • 20
4
votes
1 answer

:vsplit autocomplete not working with /django/ directory in VIM

Normally if I type :vsplit /path/to/some/directoryTab, the available directories will autocomplete. After doing a reinstall of VIM, there is one directory that now will not allow autocomplete, and I can't figure out why. The directory is…
YPCrumble
  • 26,610
  • 23
  • 107
  • 172
4
votes
2 answers

What is the proper Vim/Ag g:ctrlp_user_command value for Windows?

I would like to fill in the elsif in the portion of my .vimrc below, can anyone help me with the correct Windows syntax? if executable( 'ag' ) if has( 'unix' ) let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' elsif has( 'win32'…
jbm
  • 1,482
  • 11
  • 26
4
votes
1 answer

How can I customize the line highlight color in Vim CtrlP?

When I'm using the Vim plugin CtrlP I have a hard time seeing which file is being highlighted as the current file I might open. I want the highlight line to be bright and vivid. I could change the color of my CursorLine setting but I don't want it…
bryan kennedy
  • 6,969
  • 5
  • 43
  • 64
4
votes
1 answer

How can I use registers in CtrlP?

I want to use vim registers in CtrlP input form, like ". is used by ToggleRegex() by default. So I configure CtrlP with g:ctrlp_prompt_mappings. like that, let g:ctrlp_prompt_mappings = { \ 'ToggleRegex()': [''], \} Then it seems to…
zeero
  • 41
  • 3
4
votes
1 answer

Vim+CtrlP: Behavior to initially show MRU files and switch to searching files when typing

I'm having hard time configuring CtrlP for vim the way I want it to work. Ideally I'd like CtrlP to open with a list of files in most recently used order. However, when I start typing it would switch to searching for files under my current working…
samuke
  • 450
  • 1
  • 5
  • 15
4
votes
1 answer

How to keep previous directory in CtrlP?

Using the CtrlP plugin, I'm typing .. several times to get to the root directory of a project, then perform the search from there. However after I reopen CtrlP it still searches in the directory of the current file. How can I get it to stick to the…
mihai
  • 37,072
  • 9
  • 60
  • 86
3
votes
0 answers

Vim & CtrlPBufTag not working with custom tags (ctags)

Here is .ctags…
Colby Gatte
  • 195
  • 1
  • 6
3
votes
0 answers

How to ignore vendor folder in the project root

I'm using vim+ctrlp and I have a project who has multiple vendor folders, one in the root directory (for vendor packages), and another inside resources/views/vendor. I have the following in my ctrlp ignore configuration let g:ctrlp_custom_ignore =…
lcjury
  • 1,158
  • 1
  • 14
  • 26
3
votes
1 answer

How to increase the height/size of the results/match window for the vim ctrlp plugin?

With the vim ctrlp (control-p) plugin, when I execute the control+p command to search for files, the window showing the results is at most 10 lines high. How can I make it bigger, and take up my entire window so I can see more results at a time?
Rob Bednark
  • 25,981
  • 23
  • 80
  • 125
3
votes
1 answer

CtrlP Error detected while processing function 45_AcceptSelection..ctrlp#acceptfile.._openfile:

When trying to open files in VIM with the CtrlP Plugin, I receive the following error: CtrlP Error detected while processing function 45_AcceptSelection..ctrlp#acceptfile.._openfile:
Dave
  • 2,735
  • 8
  • 40
  • 44
3
votes
1 answer

How to set default search as file search for Vim plugin CtrlP?

I'm using CtrlP plugin for my vim for fuzzy file search. I generally work on a large Symfony project & searching is very inefficient & slow but I figured that if I press after it searches by file name than file path which is way faster &…
Rahul Gupta
  • 393
  • 3
  • 18