I went to bed at half past five last night and went crazy about configuring the vim environment. Finally, I finally completed the fantastic Ruby on Rails development tool. I have installed vim-Ruby in this Vim environment. Of course, you need to install it yourself. A simple command is provided below Ubuntu:
Sudo apt-Get install vim-Ruby
However, it seems that if your vim version is 7.0, Ruby is supported by default.
Then I integrated rubycomplete. Vim, rails. Vim, project. Vim, and a tool that imitates textmate to automatically complete input. After the configuration is complete, let me talk about the functions of the ROR Development Editor:
1. syntax highlighting, including the proprietary keyword of rails
2. Auto-completion. If you want to enter link_to, you only need to enter Li and press Ctrl + X, CTRL + O to obtain the Completion list. Select your own.
3. The template will enter. you can press the tab key value of forin to get the ruby for in syntax.
4. Automatic completion of rhtml. For example, if I enter it in rhtml, TD will get <TD> </TD>. For more information, see helptags: HTML.
5. complete Project support. In Vim standard mode, input: rproject will open a test bar on the left of VIM, which contains the directory tree of all rails projects. The effect is similar to textmate.
6. Integrated with rserver to enable the server, rserver! Disable the server. Rgen is equivalent to rails's generate, rmodel, rlayout, rcontroller, and other commands, which are equivalent to rails's intended commands. For a list of specific functions, see rails. vim.
In addition, many functions cannot be written at the moment. Quick installation:
In fact, it is very simple to install Vim vim-Ruby IN THE SYSTEM
Then, put my configuration package under/home/username, which is to put the plug-in/home/username /. in Vim/, click OK. put vimrc under/home/username.
Because the package is too big, please send me an email or leave a message to ask for it.
Email: prolibertine # gmail.com