Ctrl-P does something that I wanted Command-T to do for a long, long time: if you invoke it and select a file that is already open in an existing window somewhere, rather than open a new window for that file, it will switch to the already-opened one.<p>You can change how this works, too: look up ctrlp_switch_buffer in the docs.
I use vim for coding just about every day, and as a rule, I try not to install plugins unless I <i>really</i> need/want it. Reason being is if, on occasion, I need to do a little editing inside an ec2 instance, or whatever, I don't want to type `vi` at the shell and get a different editor than the one I use every day. So I try to keep it as stock as possible, while allowing enough customization to be productive and comfortable.<p>Anyway, that said, Ctrl-P makes the cut. :)
I've used this plugin since I discovered it. It replaced fuzzy finder for me.<p>It is MUCH better.<p>My killer feature: it will automatically avoid opening files in <i>special</i> buffers. I.e. if you ru. It inside the NERDtree window, it won't load there but rather will load the file in the middle buffer.<p>Other than this it has loads of other things that make it much better.
I didn't write it but I thought HNers would be interested.<p>Send praise to <a href="https://github.com/kien" rel="nofollow">https://github.com/kien</a>!
<a href="https://github.com/wincent/Command-T" rel="nofollow">https://github.com/wincent/Command-T</a><p>Is also quite good.<p>It would cool to have a performance comparison
It seems fast enough to use on mozilla-central (the Firefox repo), which is huge.<p>I can't find some files, though. If I type :<p>ctrp+p, mediaelement, it should find content/html/content/src/nsHTMLMediaElement.cpp, and it does not. I tried to set the maximum depth, but it didn't work. In fact, it does not match content/html/content files.<p>Another thing that I find annoying, is that when I remove multiple characters, it does its matching thing again, and because I type the backspace pretty fast, it kind of locks up for a second or so.<p>Anyway, other the couple quirks mentionned, excellent plugin, works out of the box.
Can somebody please point out the differences with a customized FuzzyFinder?<p>As I have it I get fuzzy completion from the root folder, opening splits with <c-j> and <c-k>, opening tabs with the file with <c-l>, deleting buffers from the list with <c-]>, and such.<p>Is there any difference or improvement one should try? Genuine question, I am really curious. It would be great to see a comparative between FuzzyFinder, Command-T and Ctrl-P...<p>ps: fuzz config is like this in vimrc:<p><pre><code> " Fuzzy Finder
nnoremap <leader>fr :FufRenewCache<CR>
nnoremap <leader>ff :FufFile **/<CR>
nnoremap <leader>ff :FufFile **/<CR>
nnoremap <leader>fg ye :FufFile **/<C-r>"<CR>
vnoremap <leader>fg y :FufFile **/<C-r>"<CR>
nnoremap <leader>fb :FufBuffer<CR>
nnoremap <leader>fd :FufDirWithCurrentBufferDir<CR>
nnoremap <leader>fl :FufLine<CR>
</code></pre>
(Ignore the maps, thats how I like it)<p>Edit: I would like to point out that I have skimmed several times through the docs of Fuzzy Finder and there are several options I dont even use/grasp, so more knowledge and tips on Fuzzy Finder would be appreciated also
After 2 weeks of using Sublime I just did this:<p>rm -rf /Applications/Sublime\ Text\ 2.app/<p>I will never neglect you again VIM. You've been so good to all of us.
Hitting Ctrl-F or :ControlTFlush so I can open a file that Rails or Git or whatever added to the project directory is one of my biggest issues with Command-T. Sublime Text 2 gets it right, but it's Vim compatibility mode isn't quite there yet.<p>Will this automatically update its cache as new files are added?
I have this installed as it comes with Janus (<a href="https://github.com/carlhuda/janus" rel="nofollow">https://github.com/carlhuda/janus</a>), and it's excellent. I tried to get Command-T to work in the past and failed, but this works with no problems, and is incredibly useful.
Protip for python hackers: "set wildignore+=*.pyc" in your .vimrc so Ctrl-P won't pick up all the .pyc files. It's pretty annoying to get every file you search for 2x, and then get a bunch of binary junk if you pick the wrong one. :-P
I regularly use Ctrl-P and Command-T regularly. Ctrl-P seems to work well for smaller projects. It is faster than Command-T, but it often fails to find files accurately on larger projects. It searches in hidden/ignored directories that Command-T automatically ignores. I like the fact that you don't have to have vim compiled with ruby support to use Ctrl-P which is great when working on remote machines. I feel like Ctrl-P is close to being a drop-in replacement for Command-T, but it is not quite there yet. When Ctrl-P's match results are the same as Command-T's, I'll stop using Command-T.
If you're on Ubuntu and do not want to build vim with Ruby support, but still want to use Command-T for some reason, install vim-nox.<p>That being said, ctrlp is less of a headache since it's pure vimscript like the headline says.
Anybody have an opinion on ctrlp vs LustyExplorer? <a href="http://www.vim.org/scripts/script.php?script_id=1890" rel="nofollow">http://www.vim.org/scripts/script.php?script_id=1890</a>
It was this feature which made me switch full-time to Sublime Text in the end - Command-T was just too slow in comparison so I decided the Vim emulation in Sublime was good enough for the commands I used, which are just the basics really - arguable how much of a speed difference it makes almost but it's too ingrained in muscle memory now! :wq
I love Ctrl-P! You can use Ctrl-B to search only open buffers.<p>Ctrl-P is the recommended find plugin from the janus vim distribution: <a href="https://github.com/carlhuda/janus" rel="nofollow">https://github.com/carlhuda/janus</a>
I use most of the other plugins from there and will be trying out the others.
Love this plugin, makes vimming so much nicer and is my favorite file/buffer manager. I like you you can optionally keep the cache so when you reopen there isn't that delay for checking the directory tree too. let g:ctrlp_clear_cache_on_exit=0<p>Thanks to kien for making it!
Very Awesome! Commmand-T (vim plugin) has been an essental part of my workflow for years now. I can't live without it. The biggest thorn for setting up a new host is having to procure VIM with Ruby support. Thank you so much for doing this!
It's truly a great tool. I installed it yesterday as an alternative to CTRL-T as I didn't want to install ruby system wide.<p>It will also allow you to quickly move between buffers with CTRL-P then CTRL-B to select buffers.
Thanks for posting this!<p>I've been a longtime FuzzyFinder and Command-T user but both have pretty nasty warts. Crossing my fingers that this will finally be the one to do it right.
> Written in pure Vimscript<p>I'm so sorry :P<p>In all seriousness, this looks like a good contender to Command-T judging by a cursory glance through the README. I'll have to give it a shot.