Thinking of moving from TextMate to vim for Rails dev. What do I need?

前端 未结 10 1778
暖寄归人
暖寄归人 2021-01-29 22:28

I do Ruby on Rails development pretty much exclusively. I currently develop in OS X using TextMate. I have a virtual machine running to emulate as closely as possible the enviro

相关标签:
10条回答
  • 2021-01-29 23:02

    And snipMate : TextMate-style snippets for Vim

    0 讨论(0)
  • 2021-01-29 23:02

    Search an entire project here.

    Code completion: Normally done with ctrl-X then ctrl-O while in insert mode.

    Git Integration: git.vim

    Project Tree: Nerdtree.vim

    Good luck

    0 讨论(0)
  • 2021-01-29 23:04

    I'm currently in a similar position to you (moving from TextMate to Vim)

    One really good resource is this:

    http://robots.thoughtbot.com/post/166073596/intro-rails-vim

    Good luck with it!

    0 讨论(0)
  • 2021-01-29 23:13

    You might want to start with my Ruby/Rails related vimfiles which includes support for rvm and git.

    0 讨论(0)
  • 2021-01-29 23:18

    The NERD Tree plugin gives you a collapsible project tree. Personally, I find that the netrw plugin is more than sufficient, and this usually comes installed with Vim. Whereas the NERD tree feels as though it tries to emulate the behaviour of other IDEs (and TextMate's project drawer), I feel that the netrw plugin does things the Vim way. I suggest you try both out, and see which one you prefer.

    The fugitive plugin provides a git interface to Vim (See Vimcasts: parts 1, 2, 3, 4 and 5).

    The ack plugin is great for searching an entire project. You'll want to read up on Vim's quickfix list to get the most out of this.

    TextMate's word completion is triggered with esc, and shift-esc. In Vim, you get similar autocomplete functionality using ctrl-n and ctrl-p in insert mode. Check :help ins-completion for (much!) more info.

    I am running a series of screencasts about learning Vim over at vimcasts.org. My background is with TextMate, but I've been using Vim fulltime for a while now. As I write this, I'm only 6 episodes in, but I do plan on covering each of the points you've raised in future episodes. I'll try and come back to edit this answer with links to the screencasts as they become available.

    0 讨论(0)
  • 2021-01-29 23:18

    For file navigation is simply love CommandT
    This functions very much the same as the beloved commandT function in textmate.

    0 讨论(0)
提交回复
热议问题