mangooreo.blogg.se

Textmate ruby on rails tutorial
Textmate ruby on rails tutorial










  1. #Textmate ruby on rails tutorial plus#
  2. #Textmate ruby on rails tutorial windows#

These are just a few of the things I love: I fall in love with new Vim features every day. That said, this has been a surprisingly minor annoyance so far, far outweighed by other things. I'm guessing this is another case of "different but very powerful", but the transition is harsh. An expression like \bfoo\b becomes, and that's assuming you've customized Vim to use "very magic" mode for search – otherwise you have to specify that ( \v) or escape the brackets ( \). Then again, I rarely used that in TextMate because its project search gets unusably slow for large projects.įurthermore, when you use Vim's commands to search or search-and-replace within a single document, you have to use a weird regular expression flavor. I've yet to find a project search-and-replace solution I like. The list of results is not displayed as nicely as in TextMate. On the minus side, having to quote a multi-word search term is a little annoying.

#Textmate ruby on rails tutorial plus#

On the plus side, typing :Ack "search term" app/models (Janus lets you hit ⇧⌘F to produce :Ack) to limit your search to a certain directory is very nice. Project search is Vim's Achilles' heel, in my opinion. So if you're looking for my_controller/ and not the other dozen files, just filter with something like my/sh.įor searching in a project, there's the Ack.vim plugin. Unlike TextMate, it lets you filter by directory, not just filename. Instead of ⌘T you have the Command-T plugin. It is completely keyboard-driven, with commands like o to open a directory, O to recursively open, p to go to parent directory, P for root. You can move it around like any other Vim split. Janus includes the NERDTree plugin which is similar to the TextMate drawer. will jump to the position where the last change was made, and more. But then you have both file-local and global marks, can list marks, have various automatic marks such that e.g. This is about the feature set of TextMate, except that bookmarks have names. They're generally fairly easy to use in the way you would in TextMate, but have a lot more power if you want to take things to the next level.Īs an example, mm will insert a bookmark named "m" and 'm will jump back to it. You have things like snippets, auto-balancing quotes, folds, macros, bookmarks. There is a mvim command-line binary much like mate. MacVim with Janus has a lot of the features TextMate is known for. Placing the caret by mouse is easy, but there is probably a Vim command that will get you there faster without your hands leaving the keyboard. And while the Vim model of copy and paste is confusing at first, with deletions being "copied" as well, and everything going into various registers, you should eventually try it out. You can position your caret with the mouse, or drag to resize splits.ĭo beware, though – if you get into the habit of saving with ⌘S, you will be very annoyed when you use command-line Vim in Terminal.app and constantly trigger "Export Text As…" instead. MacVim gives you OS X features like ⌘S to save, ⌘C and ⌘V for copy and paste, a proxy icon in the menu bar to drag-and-drop or right-click for the folder hierarchy, a dot in the red "close" button to indicate unsaved changes. I highly recommend everyone using TextMate to try MacVim with Janus. I was on the fence for a few weeks, but as I've learned Vim better, used more features and customized it further, I now feel at least as productive as I did in TextMate, and with much more room to grow. I've now been using Vim as my main editor for just over a month, following that method. Then as you learn Vim better, you can shed the training wheels. Instead, use MacVim and various plugins so you can start out closer to where you are now.

textmate ruby on rails tutorial

Coming from TextMate and starting out with plain Vim means starting out unproductive. In "Everyone Who Tried to Convince Me to use Vim was Wrong", Yehuda Katz, co-author of Janus (and Ruby on Rails, jQuery etc), echoes my experience. He describes a setup with MacVim, a port of Vim that is well-integrated with OS X and Janus, a "MacVim distro", or set of plugins and ready-made configurations. Then about a month ago, I read Daniel Fischer's "A Starting Guide to VIM from TextMate".

textmate ruby on rails tutorial

I'd feel unproductive enough that I couldn't make myself continue. You can have both these things in Vim, but they were tricky to set up or to grasp. In TextMate, I would use ⌘T to quickly jump to a deeply-nested file by name, or use project-wide search to get it by content. It was less about the weird modal model (slicing and dicing text in command mode, writing new text in insert mode) and more that I couldn't get to the right file fast enough. So I tried Vim a few times, but never lasted the day.

#Textmate ruby on rails tutorial windows#

At work my Vim-wielding colleagues split windows with abandon.

textmate ruby on rails tutorial

Every now and then there's a blog post about someone switching from TextMate and loving it. Then of late I became increasingly curious about Vim. I switched from Windows to OS X four years ago mostly because of TextMate.












Textmate ruby on rails tutorial