Skip to main content

Questions tagged [plugin-ctrlp]

Full path fuzzy file, buffer, mru, tag, ... finder for Vim

Filter by
Sorted by
Tagged with
1 vote
0 answers
275 views

How to debug change in command / key binding behavior (<c-p> / ctrl-p for ctrlp.vim vim plugin)?

I'm using the vim ctrlp plugin, and the <c-p> (Ctrl+p) key binding / command (which invokes :CtrlP) often goes back to the vim default of moving the cursor up a line. I can't figure out why ...
Rob Bednark's user avatar
3 votes
1 answer
1k views

How to work with multiple project folders in Vim?

I am often working with multiple projects at the same time. For example one main project and 5 related librairies. I have some issue to properly search in one project or multiple. I would like to: Be ...
Mio's user avatar
  • 433
2 votes
1 answer
269 views

Open netrw view of directory with Ctrl-P

Is it possible to use Ctrl-P to search for directories in addition to searching for files? I want to be able to search for directories in my project in whatever mode (CtrlP, CtrlPMRU, or other) and ...
lsimmons's user avatar
  • 175
0 votes
1 answer
92 views

How do I open ctrlp plugin file suggestions in Insert mode?

I'm using CtrlP plugin to switch to other files in Vim by pressing Ctrl-p. But this only works in normal mode. I want to trigger it by pressing the same set of keys in insert mode as well. How can I ...
Kartik Chauhan's user avatar
1 vote
1 answer
280 views

How to show only a specific file format in ctrlp results?

I am fairly new to Vim. I keep my notes in .md files and would like to access them with CtrlP from several different directories. I would like to set a specific filter on them, because now loading all ...
nocibambi's user avatar
  • 133
4 votes
0 answers
176 views

Cycle between modes in fzf.vim

I'm using fzf.vim instead of ctrlp.vim for quite some time now but there is one functionality that a miss quite a lot. In ctrlp.vim once you have the extension opened you can cycle between modes using ...
Svilen's user avatar
  • 73
0 votes
1 answer
1k views

how to set shortcut for CtrlPBuffer, just like ctrl-p for CtrlP

question for CtrlP users I have ctrl-p mapped to open file from the filesystem. I want to map ctrl-y to open a buffer that is already opened. how should I change my vimrc? does anyone know? Thanks!
eight3's user avatar
  • 101
1 vote
1 answer
928 views

How can I change the cursor moving on ctrlp?

I want to change the key mapping when I run CtrlP. For example, if I press ctrl+p to run CtrlP, type in something, and try to move the cursor to choose a file, I want to use ctrl+j to move down, and ...
Blaszard's user avatar
  • 565
3 votes
2 answers
1k views

How to setup vim for working in a very large directory?

I am trying to setup my development environment using vim and some plugins. My workspace root is a directory with very large number of sub-directories and files. I am going to be working on files ...
Punit Soni's user avatar
0 votes
1 answer
789 views

Let CtrlP show all files including the file being edited

If I open CtrlP in the standard "files" mode I can't find the currently opened file. I would like to change this behavior: I would like to see all files including the current opened file. I there a ...
Boris Brodski's user avatar
1 vote
0 answers
288 views

Vim Plugin Path Issue

I'm trying to get Vim all decked out with some fancy plugins on my work laptop but I am running into some issues. Using echo &rtp I can see that Vim will look in several directories for startup ...
AvacadoRancher's user avatar
2 votes
1 answer
123 views

CtrlPBuffer path before filename

I like using the CtrlP plugin's CtrlPBuffer command for quickly switching between buffers, as well as using CtrlP for navigating to files not yet opened. However, I have one annoyance I'd like to fix. ...
Mark's user avatar
  • 123
1 vote
1 answer
376 views

How to use ctrlp in conjunction with css and ctags

I've already configured ctags to index css files like documented here: vim-tagbar-css Also tagbar already works with configuration provided at: tagbar-css.vim Still CtrlP doesn't show any tags ...
Daniel's user avatar
  • 151
2 votes
0 answers
58 views

Possible to use CtrlP to interactively search file contents? [duplicate]

Is it possible to have the CtrlP plugin call out to grep? (git-grep in this case, although I don't expect it makes a big difference). So it searches the file contents instead of simply listing the ...
ideasman42's user avatar
  • 3,763
1 vote
0 answers
161 views

Can ctrlp work in white list mode?

Ctrlp provides a way to ignore some files or folders: " ctrlp configuraation let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/](\.git|\.sql|\.hg|\.svn|vendor|var|sass|bin|app|web)$', \ 'file': '\v\....
sensorario's user avatar
6 votes
2 answers
268 views

Identify if a buffer is CtrlP or not

I use a autocmd to display current tag via Tabgar plugin like this: autocmd CursorHold * call TagbarCurrentTag However, after I open CtrlP with :CtrlP for a while, the Tagbar's output No current tag ...
tamlok's user avatar
  • 851
7 votes
1 answer
910 views

CTRL-P very slow when files are not found

Sometimes I mis-spell the name of a file. So let's say I have a file called ThisIsAFileName and I start typing ThisS... The moment I misspell the filename (and there are no hits whatsoever), CTRL-P ...
user32421's user avatar
  • 171
10 votes
5 answers
2k views

Stop CtrlP from opening in NERDTree

I use both CtrlP and NERDTree in my Vim. When I open a file using the CtrlP search feature, it sometimes opens in the NERDTree window (and always if the NERD window is the active one). How can I stop ...
Sheharyar's user avatar
  • 761
6 votes
2 answers
655 views

Is there a way to insert a path of the file instead of opening it with CtrlP plugin?

I'm using ctrlpvim/ctrlp.vim to open files by fuzzy search. Is there a way to get the full path of the searched file and insert it under cursor, instead of opening it?
whitesiroi's user avatar
1 vote
0 answers
404 views

Split window & Fuzzy finder path with Nerdtree

Say I have one window open displaying folder foo. Then I open a new window by doing :vs ~/bar. Then I get a Nerdtree, and when using Ctrlp's fuzzyfinder by doing ,,. I expect the files displayed to be ...
dan-klasson's user avatar
4 votes
1 answer
3k views

On Linux, vim would search #include files automatically for auto-completion but on Windows not

I use vim on Linux and Windows. Strangely, on Linux (Ubuntu), when I write C/C++ code, vim would search the included file for auto-completion (Ctrl-P), even if I don't add anything related in my ....
walkerlala's user avatar
10 votes
1 answer
4k views

Paste from clipboard into CtrlP input in GVim

Using CtrlP with GVim I often need to open a file with the name from the system clipboard (on Windows). So my workflow should be: Ctrl+P {somehow paste name from the clipboard} Select file and open ...
Boris Brodski's user avatar
4 votes
1 answer
689 views

CtrlP should never index particular directories

My projects are in: /home/user/projectA /home/user/projectB However, at times I hit CtrlP and I haven't opened a file in a particular project, so my working directory is /home/user. CtrlP starts ...
user's user avatar
  • 143
5 votes
1 answer
603 views

Problems with paths that includes swedish characters

Update I've now also tried this on my Arch setup and everything works fine there. vim --version on that machine says: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 28 2015 08:49:36) Included ...
Oskar Persson's user avatar
4 votes
1 answer
2k views

When I press ctrl-p and autocomplete a word, is there a way to immediately jump into normal mode by pressing escape without canceling the selection?

I use ctrl-p (and SuperTab with it), quite often to do autocompletion. But what happens quite often is that I press tab to autocomplete, I get the match I want, and then I have to go into normal mode. ...
whatoncewaslost's user avatar
0 votes
1 answer
137 views

How do I prevent ctrlp plugin from changing the default spell location?

After installing ctrlp via pathogen, my default spelling dictionary is located at: ~/.vim/bundle/ctrlp.vim/spell Instead of its previous location: ~/.vim/spell While I can always dig into the root ...
ideasman42's user avatar
  • 3,763
21 votes
2 answers
15k views

How to use Ctrl-P to interactively search file contents for all files in a project?

I tried today to perform a search on every files of a project. I use Ctrl-P and search on lines like so : But the result of the search is only on the previously opened file. Here I open only main....
nobe4's user avatar
  • 16.1k
1 vote
2 answers
2k views

Prevent CtrlP from indexing parent directories

I'm sure this will have been asked before, but I can't seem to find a solution. I tend to open Vim from the root of my project, let's say: ~/dev/project/ Which looks something like: project/ | - ...
Dan Prince's user avatar
2 votes
1 answer
650 views

CtrlP searches entire machine

I use CtrlP with vim, installed it with Plug and have it set up mostly to default settings. Whenever I use the plugin though, it seems to search through all my files on my entire machine. So instead ...
Martijn Arts's user avatar
4 votes
1 answer
1k views

How to add multiple git projects to Ctrl-P search path?

The main project I work on is split up into multiple git projects. I'd like to be able to Ctrl-P search for files in a different project than the one I'm currently in, but as far as I can tell, I can'...
kash's user avatar
  • 43
12 votes
2 answers
2k views

How can I make ctrlp do better filename matching?

My project has these files: $ find . -type f -and -name 'peop*' ./app/assets/stylesheets/admin/sections/people.css.sass ./app/controllers/admin/people_controller.rb As I got tired of typing :e app/...
Martin Tournoij's user avatar