Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I used to use a combination of tabs and multiple gvim instances, keeping groups of related files as tabs in each instance. So long as I didn't end up with too many tabs in one instance, the tab bar shows you the name of each file you're editing at a glance.</p> <p>Then I read a post by Jamis Buck on how he switched <a href="http://weblog.jamisbuck.org/2008/10/10/coming-home-to-vim" rel="noreferrer">from TextMate back to vim</a>, and learned some great tricks:</p> <ul> <li>Ctrl-w s and Ctrl-w v to split the current window</li> <li>Ctrl-6 to switch back and forth between two buffers in the same window.</li> <li>the awesome <a href="http://www.vim.org/scripts/script.php?script_id=1984" rel="noreferrer">fuzzyfinder.vim</a> which gives you autocompleting search of files in your current directory or of buffers you currently have open</li> <li>Jamis' own <a href="http://github.com/jamis/fuzzy_file_finder/tree/master" rel="noreferrer">fuzzy_file_finder</a> and <a href="http://github.com/jamis/fuzzyfinder_textmate/tree/master" rel="noreferrer">fuzzyfinder_textmate</a>, which slightly modify how fuzzyfinder works to behave more like a similar feature in TextMate (as far as I can tell, the difference is that it matches anywhere in the filename instead of only from the start). Watch <a href="http://s3.amazonaws.com/buckblog/videos/fuzzyfinder_textmate.mov" rel="noreferrer">this video</a> to see it in action.</li> </ul> <p>Now I just have one gvim instance, maximised, and split it into multiple windows so I can see several files at once. I bound Ctrl-F to fuzzyfinder_textmate, so now if I type (say) Ctrl-F <code>mod/usob</code> it opens up app/models/user_observer.rb. I almost never bother with tabs any more.</p> <p><strong>Update 2010/08/07</strong></p> <p>While fuzzyfinder_textmate remains awesome, as Casey points out in the comments, it's no longer maintained. Also, it (and/or fuzzyfinder.vim) gets a bit slow and unstable when working with large projects (lots of directories or files), so I've been looking for an alternative.</p> <p>Fortunately, there seems to be a very nice alternative in the form of <a href="http://wincent.com" rel="noreferrer">Wincent Colaiuta</a>'s <a href="https://wincent.com/products/command-t/" rel="noreferrer">Command-T plugin</a>. This has very similar (if not slightly better) behaviour to fuzzyfinder_textmate, but is noticeably faster; it also has nice features like being able to open the found file in a split or vertical split. Thanks (and upvotes!) to David Rivers for pointing to it.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload