Questions tagged [plugin-ctrlp]

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

Filter by
Sorted by
Tagged with
2
votes
0answers
41 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 ...
0
votes
0answers
46 views

Ctrlp and neovim

I recently switched to neovim. I was using CtrlP plugin. But whenever I fire it up on neovim, it starts spitting out weird symbols which makes my tmux glitch. I have added the following to my init.vim ...
0
votes
1answer
33 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!
1
vote
1answer
219 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 ...
2
votes
2answers
228 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 ...
0
votes
1answer
237 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 ...
1
vote
0answers
124 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 ...
2
votes
1answer
56 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. ...
1
vote
1answer
238 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 ...
2
votes
0answers
41 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 ...
0
votes
0answers
103 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\....
6
votes
2answers
144 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 ...
7
votes
1answer
339 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 ...
8
votes
5answers
1k 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 ...
6
votes
2answers
276 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?
1
vote
0answers
243 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 ...
4
votes
1answer
1k 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 ....
6
votes
1answer
2k 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 ...
3
votes
1answer
532 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 ...
5
votes
1answer
550 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 ...
4
votes
1answer
673 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. ...
0
votes
1answer
103 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 ...
15
votes
2answers
6k 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....
1
vote
2answers
1k 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/ | - ...
2
votes
1answer
384 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 ...
3
votes
1answer
825 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'...
10
votes
2answers
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/...