Recently I want to write scala code. I originally wanted to use its Eclipse plug-in. But Scala is a newer language, and the Eclipse plug-in's complementing function is too weak (or is it not configured properly ?), So switch to vim.
Nerdtree:
Http://www.vim.org/scripts/script.php? Script_id = 1, 1658
You can browse the project file in a tree, and then select the specified file to open and edit, similar to the eclipse resource browser.
Of course, the netrw provided by VIM also provides the file browsing function, but it can only view one directory at the same time.
Trigger with command nerdtree
Autocomplpop:
Http://www.vim.org/scripts/script.php? Script_id = 1, 1879
It is equivalent to Nb plug-ins. I have always liked scite auto-completion because it can automatically pop up when there is only one candidate word. This plug-in allows Vim to automatically pop up the completion window, which is equivalent to pressing Ctrl-N at any time. In addition, it is completed by using the word token in all opened buffers, which does not require too high CPU usage and is very practical.
Snipmate:
Http://www.vim.org/scripts/script.php? Script_id = 1, 2540
Add code snippets like textmate to vim. Trigger with the tab key.
When it comes to code snippets, many people use built-in functions of the editor, such as Eclipse code snippets, VIM plug-in, or map definition. If we change our mindset: Why don't we use external software?
I recommend using autohotkey (http://www.autohotkey.com/) to work with keyboard macro tools at the input level. Unfortunately, it can only be used on Windows.
The function we want is nothing more than typing P, then pressing the tab, and then turning it into <p> </P>, and the cursor is still in the middle, and so on. Autohotkey's hot string can do this well. It can bind a key sequence to a string for triggering. In addition, you only need to define it once in autohotkey, and you can use vim, Eclipse, Notepad ...... Use it in all text editors-because it works in the input method mode.
But I still need to use snipmate because autohotkey does not support code snippets with variables well-it is not specially designed for programming after all.
Some people also recommend the vim plug-in bufexplorer or minibufexplorer to browse the current buffer. Because gvim is used in Windows, you can use the menu to browse the current buffer, so you don't need it.
By the way, obtain my vim session file:
Cd e:/Java/projects/ptrends </P> <p> set guifont = inconsolata: H11: cansi <br/> colorscheme evening <br/> set Ts = 4 <br/> set shiftwidth = 4 </P> <p> edit src/main/Scala/Bootstrap/liftweb /boot. scala </P> <p> nerdtree
Each time a session file is loaded, these commands can be automatically executed, which is equivalent to the Eclipse project file. With these features, it is much easier to compile and manage a project using vim.
Related logs:
My autohotkey Script: http://blog.csdn.net/shell_picker/archive/2010/09/02/5860073.aspx