Re:Coming Home to Vim
by bcrescimanno on Monday July 09, 2012 @03:45PM
(#4220027)
Nice tip on the Ctrl-P link; but I'm curious, is there anywhere that sums up why Ctrl-P would be preferred over Command-T? Aside from being written in pure Vimscript, I haven't seen anything touting any specific advantages or disadvantages in a head-to-head.
[ Parent
| on HN ]
Re:Coming Home to Vim
by johncoltrane on Monday July 09, 2012 @04:30PM
(#4220227)
Just for you:
| Command-T | CtrlP
-----------------------------------------+-----------+--------------------
files | OK | OK
-----------------------------------------+-----------+--------------------
buffers | OK | OK
-----------------------------------------+-----------+--------------------
tags | OK | OK
-----------------------------------------+-----------+--------------------
jumps | OK |
-----------------------------------------+-----------+--------------------
lines (vimgrep) | | OK
-----------------------------------------+-----------+--------------------
MRU files | | OK
-----------------------------------------+-----------+--------------------
mixed | | OK (new, untested)
-----------------------------------------+-----------+--------------------
open in tab | OK | OK
-----------------------------------------+-----------+--------------------
open in vsplit | OK | OK
-----------------------------------------+-----------+--------------------
open in hsplit | OK | OK
-----------------------------------------+-----------+--------------------
open multiple items | | OK
-----------------------------------------+-----------+--------------------
matches with filenames | OK | OK
-----------------------------------------+-----------+--------------------
matches with filepaths | OK | OK
-----------------------------------------+-----------+--------------------
execute command on opened file | | OK
-----------------------------------------+-----------+--------------------
create new file and parent directories | | OK
-----------------------------------------+-----------+--------------------
project root finder based on VCS | | OK
-----------------------------------------+-----------+--------------------
I'd say that both are quite close in terms of features. CtrlP's strong points for me are:* no dependencies
* project root finder
* overall UX
The "lines" feature (fuzzy incremental search across buffers ) is also very nice:
Re:Coming Home to Vim
by bcrescimanno on Monday July 09, 2012 @04:35PM
(#4220254)
John Coltrane wins the points--way more than I expected (a link to a quick summary would have done fine)--thanks for the detailed look!
Re:Coming Home to Vim
by johncoltrane on Monday July 09, 2012 @04:45PM
(#4220305)
You are welcome.
Re:Coming Home to Vim
by johncoltrane on Friday July 20, 2012 @05:59AM
(#4270114)
I should add that CtrlP is getting better and better over time. Some new (to me, at least) features:
* Bookmarking
* Quickfix mode
* Undo mode
* Change mode
* RTS mode
`:CtrlPBufferTag` is a killer.
This plugin seriously rocks.
Command-T is known to be quite the pain in setting up.
Re:Coming Home to Vim
by bcrescimanno on Monday July 09, 2012 @04:37PM
(#4220265)
It's a pain if you don't have a version of Vim compiled with Ruby support; I was just wondering if there was anything beyond the language choice that made is superior (or inferior).