CtrlP is a vim plugin which allows fast switching of buffers and files.
Questions tagged [ctrlp]
87 questions
3
votes
2 answers
Open all selected files as hidden buffer?
Is there a way Ctrl-P can open all selected files as hidden buffer?
This is how I tried to load files into my buffer:
(opens Ctrl-P in file mode)
a (marks all files in the match…

wolfv
- 971
- 12
- 20
3
votes
4 answers
How to get add folder to Projects (like Sublime Text) in VIM?
I just switched from Sublime Text to GVIM (on Windows). I am still debating whether I should continue ST or move completely to VIM. One feature that I desperately need (or miss) are
Ctrl+P to go to any file that I want in my list of folders.…

NotepadPlusPlus PRO
- 987
- 1
- 8
- 21
2
votes
3 answers
Ignore custom directories in ctrlp.vim
I want to ignore dist, .git directories for ctrlp.vim. And my .vimrc configure is below:
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/](\.git|dist)$'
}
I have two questions:
It does not ignore the dist directory.
What is the \v mean in…

soarinblue
- 1,517
- 3
- 21
- 30
2
votes
1 answer
Get user input after opening window
How do I get user input (so that I can filter some items) after opening a new window (which has the items)? I wanted something similar to CtrlP or CtrlSpace. I tried to look at their code, but failed to identify where they do it.
The way I am…

yZaph
- 169
- 1
- 10
2
votes
1 answer
how to open multiple files in CtrlP split in a new window
Assume I have a set of related files (say .C implementation file and .h header file). I would like to open both of these in a new window on search but they should be split(horizontally/vertically) so that I can view them together. What is the…

Balu
- 219
- 2
- 8
2
votes
2 answers
ctrlp :CtrlPTag search slow
Im using ctrlp.vim and I'm trying to use the :CtrlPTag feature. I setup ctags using the instructions from this blog post:
https://blog.sensible.io/2014/05/09/supercharge-your-vim-into-ide-with-ctags.html
I've generated a ctags file for my Rails…

mawaldne
- 3,919
- 6
- 31
- 37
2
votes
2 answers
In CtrlP, how to set the `mru` mode as the default mode?
The CtrlP's default file mode is too slow when I open CtrlP in the root of my $HOME dir. it is due to that there are too much files and dirs in my home dir.
I have speeded up the scanning according to this answer by using ag command instead.…

Douglas Su
- 3,214
- 7
- 29
- 58
2
votes
2 answers
How can I search a fuzzy order in CtrlP
In other editors like sublime, if I search for usermodel it will match the path of models/users.ex, however in CtrlP if I do the same query it will fail. I have to remember to search the path modeluser to make the match.
Is there a way to tweak this…

SkinnyG33k
- 1,721
- 4
- 23
- 30
2
votes
1 answer
How to customize the mappings inside CtrlP's prompt - VIM
I'm using ctrlP plugin.
According to the ctrlp's doc I should be able to remap like this
let g:ctrlp_prompt_mappings = { 'PrtSelectMove("k")': ['', ''] }
let g:ctrlp_prompt_mappings = { 'PrtSelectMove("j")': ['', ''] }
let…

whitesiroi
- 2,725
- 4
- 30
- 64
2
votes
0 answers
Ctrlp custom ignore regular expression
Documentation of Ctrlp has example of ignoring folders:
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'.
And the one that is currently used locally and works (default config files from dotfiles):
let g:ctrlp_custom_ignore =…

kovpack
- 4,905
- 8
- 38
- 55
2
votes
1 answer
Ctrlp find in project
So after adding this to CtrlP, I know how a fast file searcher.
let g:ctrlp_user_command = 'ag %s -i --nocolor --nogroup --hidden
\ --ignore .git
\ --ignore .svn
\ --ignore .hg
\ --ignore .DS_Store
\ --ignore "**/*.pyc"
\ -g…

mhartington
- 6,905
- 4
- 40
- 75
2
votes
1 answer
vim plugin tacahiroy/ctrlp-funky not finding files?
If I open up vim and use ctrl-p, and type in a file I am looking for:
"fancy_service.js"
my fancy_service.js file does not show up in the results...
Yet if I type in:
"assets/fancy_service.js"
then I see the…

patrick
- 9,290
- 13
- 61
- 112
2
votes
2 answers
CtrlP for gvim does not find my files, max_files parameter is set
For the life of me, I can't get CtrlP to work with my setup.
I have a verilog environment with *.sv, *.v and *.tv files. I don't have a .git, .zip etc as far as I know.
I have a my.ctrlp file in my project root directory.
Here's my config:
let…

Montastic
- 73
- 6
2
votes
3 answers
Vim - CtrlP (or pathogen) loads only help pages?
i'm newbie on Vim and now I have problem:
I have installed Pathogen and CtrlP scripts on my vim. But CtrlP doesn't load properly any CtrlP's command or shortcut doesn't work, only help pages work.
It says that :CtrlP is not editor command and…

Mitja Karhusaari
- 31
- 1
- 5
1
vote
1 answer
ctrlp custom ignore not working as expected
I have a super simple entry for ctrlp_custom_ignore in my .vimrc:
let g:ctrlp_custom_ignore = 'doc'
However, it's not working. Files inside doc still show up in my searches. How can I fix this?

Jason Swett
- 43,526
- 67
- 220
- 351