![]() ![]() For more about the matching do :h starstar. When you find the one you want press enter to complete the command and edit the file. ![]() If there is more than one match you can cycle through them with the TAB key. Before you read any of this I will caveat with the fact that Vim is perfectly adequate for modern JavaScript development without plugins. This will search down from the libfoo directory to find a file that matches. gf : Go To File, open the file with the file name under the cursor. Configuring Vim and comparisons of JavaScript-specific Vim plugins. vim file.c +10 : Open file.c directly at line 10 (doesnt work with vi, only vim ). If you just enter :find filename, Vim will directly open the first file found in your path matching 'filename'. Setting up Vim for JavaScript development. 3 In part of a plugin I'm slowly building, I use to get the file pointed by the word under the cursor and then do something if it points to a directory, or open the file pointed to otherwise (so unless the word under the cursors points to a directory, it's supposed to behave exactly like gf ).Just create a ~/.ideavimrc and fill it with some features. Vim offers several commands for searching for files by name: :find, :sfind, :tabfind on the command-line, several normal-mode commands like gf, and others. Provides a list of Vim keyboard mode keybindings for Windows / Linux operating systems. :actionlist gives a complete listing of commands that IntelliJ supports, and we can build an amazing config, that works almost like our VIM config and defines mappings for these commands. Once you get used to this, you never look back, so much nicer!Īllright, so after turning on the Vim plugin, what's next? Okay but how can we get the most out of our IntelliJ workflow? By making it like Vim!īut first of all: Enter Distraction Free Mode. This post is aimed to give some inspiration how you can set up you. Last change: 2009 Nov 07 VIM REFERENCE MANUAL by Bram Moolenaar Tips and ideas. IntelliJ is releasing amazing features from time to time though, e.g. Sometimes I am a very happy (metals) user, sometimes things just do not work out and I need to fall back to IntelliJ.Įspecially bigger refactorings or renamings are super smooth in IntelliJ, on the other hand Vim with Metals feels quite mature by now and can handle most. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |