
Git clone https:/ //misterbuckley /vim-definitiveĪnd add new shortcut to vimrc (you can of course set own shourtcut): nnoremap d :FindDefinition command-t It is really useful and a lot of Rubist use RubyMine mainly because of this feature. This hot plugin make that you can move to method definition with '\'+'d' Git clone https:/ //vim-ruby/vim-rubyĪnd make sure that these lines are at your vimrc: set nocompatible Vim-ruby provides Ruby syntax support for vim. It's better now, don't you think? vim-ruby Then I installed new theme for iTerm and added these lines to bash_profile: vim ~ /.bash_profile export TERM=xterm- 256color I added this to vimrc: let base16colorspace= 256 Your terminal can have problem with 256 colours :) For example my iTerm2 support only 8 colours by default.
#Rubymine vim windows#
Git clone https:/ //scrooloose /nerdtreeĪnd edit your vim config file to add shortcut and basic configuration: vim ~ /.vimrc map :NERDTreeToggleĪutocmd bufenter * if (winnr( "$") = 1 & exists( "b:NERDTree") & b:NERDTree.isTabTree()) | q | endifĪfter that reset your VIM and voila! You can swith between windows using CTRL+W and show/hide tree usign CTRL+O.Īn interesting feature is opening the file using the 'i' button on the split screen or just 't' for open file in new tab (and swith tabs with 'gt'/'gT') I chose several plugins that replace the main RubyMine features: The Nerd Tree
#Rubymine vim install#
Thanks to that you will be able to install new plugins. First of all, you have to install Pathogen: mkdir -p ~ /.vim/autoload ~ /.vim/bundle & \Ĭurl -LSso ~ /.vim/autoload /pathogen.vim https:/ /tpo.pe/pathogen.vim Standard VIM is, as I said before, poor - it looks very simple at first glance. For people using Atom or Sublime - you can also install such plugins for them. Sounds great? I think it is the best way to learn VIM. This plugin emulates VIM in Rubymine, so thanks to that I had RubyMine environment and VIM inside it. So, I got to know the basics of VIM, but it was still not enough to use it at work. You can enter 'vimtutor' in the terminal and check:

I started from VIM tutor - there are some built-in lessons about VIM. In my opinion, there is no point in keeping this powerful tool just for these features, so I started thinking about VIM.

The second reason for my decision was, that I was using only a few RubyMine features. When I ran the RM and docker containers - my RAM memory was filling up quickly, which made my computer slower. However, it has a disadvantage (for me) - it consumes quite a lot of memory. It's great, probably the best IDE for Ruby developers. Magic is hidden - we only need to turn it on! It's a fact - my default VIM offered only 8 colours. In times of great and powerful IDEs - VIM looks poor.
