Questions tagged [ctrlp]

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

87 questions
30
votes
5 answers

Slow performance on CtrlP , it doesn't work to ignore some folders

I tried to ignore the vendor by adding the following setting in .vimrc and I start my ctrlP by typing ff map ff :CtrlP<.> However, it still tried to index all the files under the zeus folder including vendor folder. But after finishing index,…
newBike
  • 14,385
  • 29
  • 109
  • 192
25
votes
1 answer

Use ag in ctrlp + vim

I want to use ag (silver searcher) with ctrlp and vim. I have this in my .vimrc: if executable("ag") set grepprg=ag\ --nogroup\ --nocolor let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' endif let g:ctrlp_show_hidden = 1 set…
Richard
  • 3,839
  • 5
  • 28
  • 34
21
votes
5 answers

ctrlp still searches the ignored directory

I tried to put ignored setting in .vimrc But when I used the ctrlp to search under rails app folder It still search the vendor folder, so it took lots of time. But when the search was done, I couldn't search anything under the vendor It was so…
newBike
  • 14,385
  • 29
  • 109
  • 192
19
votes
1 answer

How to re-index CtrlP Vim plugin?

I've been using CtrlP for a while now, but I still haven't figured out how to re-index it. So whenever I want to create a new file I have to close all existing vim sessions, create the file, and then re-open them back. Otherwise the new file won't…
Vlad
  • 8,038
  • 14
  • 60
  • 92
16
votes
2 answers

Ctrl-p can't find my file?

The following is my ctr-p config: let g:ctrlp_map = 't' let g:ctrlp_match_window_bottom = 0 let g:ctrlp_match_window_reversed = 0 let g:ctrlp_working_path_mode = 'ra' let g:ctrlp_root_markers = ['.ctrlp'] let g:ctrlp_dotfiles = 0 …
harris
  • 1,473
  • 1
  • 17
  • 26
13
votes
3 answers

Installing ctrlp in VIM using vundle

I'm using vundle as my plugin manager for vim. However I'm having trouble installing ctrlp plugin. When I execute :BundleInstall ctrlp, it outputs the following log with a fatal error: [131003 09:39:27] Bundle kien/ctrlp [131003 09:39:27] $ git…
rfc1484
  • 9,441
  • 16
  • 72
  • 123
11
votes
1 answer

How to make CtrlP's search directory change according to NerdTree's root?

I want my CtrlP search directory to dynamically change anytime I change NerdTree's root directory. How does plugin to plugin communication work in vim?
Rasteril
  • 605
  • 1
  • 5
  • 16
10
votes
2 answers

CtrlP: ignore files in subdirectory within a git repo

For my repo, suppose it's called top top\ .gitignore foo\ bar\ I want CtrlP to list files that are Under foo\ Is not ignored by .gitignore defined in top\ If I cd into top\foo\, and open vim from there, 1 would be satisfied but not 2. If…
octref
  • 6,521
  • 7
  • 28
  • 44
9
votes
2 answers

How do I configure ctrlp to work correctly with ag outside of a git repo?

I use ag with ctrlp, as suggested here: if executable('ag') set grepprg=ag\ --nogroup\ --nocolor let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' let g:ctrlp_use_caching = 0 else let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$' let…
Sasgorilla
  • 2,403
  • 2
  • 29
  • 56
8
votes
1 answer

Ignore .git directory in ctrlp.vim

In my .vimrc I have some custom ingores for ctrlp.vim. There are a few directories I want to ignore that start with a dot: .git is a good example. By having .git in the ignores, I also ignore individual files like git.sh. I only want to ignore .git.…
rb-
  • 2,315
  • 29
  • 41
8
votes
1 answer

Vim Ctrlp not parsing Ag (silver search) --ignore option correctly

When using ag on the command line, like so: $> ag . --ignore="*node_modules/*/node_modules" -l --nocolor -f -U -g "" I am able to avoid searching through any node_modules directories more than one level deep in my node services, which is the desired…
user1797466
  • 507
  • 6
  • 14
6
votes
2 answers

How to yank a CtrlP match result in vim

Is it possible to copy a search result form the ctrlP match window? With one can focus the match window but it doesn't seem posible to yank from there. I often have to search for files that I need in my scripts, but I only remember their…
chriad
  • 1,392
  • 15
  • 22
6
votes
4 answers

Vim language: send current word to CtrlP

I know how to use CtrlP. I type ctrl+p, then I start to write file name, ... and so on. But, ... I am very lazy developer. I want to directly send to CtrlP current word. I know how to get current word: let l:currentWord = expand('') In Vim…
sensorario
  • 20,262
  • 30
  • 97
  • 159
6
votes
4 answers

How do you work with large projects in VIM

I have large projects with many levels of folders. Some files are named the same and depending on the folder name their function vary. For example /admin/action1.php /action1.php First one would refer to administrative tasks and second one would…
BlueNile
  • 391
  • 1
  • 5
  • 12
5
votes
1 answer

How do i get ctrlpbuftag to work?

So I've been experimenting with Vim, switching over from Sublime. I wanted a feature in vim similar to that of ctrl R in Sublime, which would show me a list of functions in the current document, and narrow it down as I keep typing. Sublime code-like…
Vinu K S
  • 783
  • 1
  • 8
  • 18
1
2 3 4 5 6