Most of my career I’ve been in windows environments using IntelliJ/Eclipse/Visual Studio. I’ve recently started working on a Mac for the fist time. So far, loving it. I’m also taking this opportunity to learn vim and make MacVim my main editor. Mostly I’m working with front end stuff (javascript/css) but I go back and forth to a java backend sometimes.
I’m really missing a few things from the big IDE’s and wondering if they are possible in Macvim:
1) Code Completion – shortcut to autocomplete a method I’m typing
2) Go to Declaration – I know gd will go to a declaration locally in a file, but what about over multiple files?
3) Navigate to file – I know you can use :tabnew ../somedir/somefile or just use a terminal console, but is there a quicker way to do this? (IntelliJ was Ctrl-Shift-N to navigate to file in a project)
I know doing this stuff might involve some form of indexing all your files and having an actual project. It might not really be possible. But, if anyone has suggestions I’d appreciate it. Thanks
Ctl-nwill complete for words used all currently open buffers. Get into the habit of hittingCtl-nwhile you type in insert mode. Seehelp: omnifuncto setup omnicomplete.Ctl-]jumps to a tag definition, andCtl-treturns to previous position in the tag stack. For info do:help tagsAlso lots more useful info in this question