I created a keyboard shortcut for Matchit: Jump Items to run on shift+5 (%) when editorTextFocus.
I diid this so that I could easily jump from opening to closing tag in HTML. I use VSCode in Vim mode where that key binding will jump from opening to closing brackets/braces/quotes/whatever by default.
My problem is that now I cannot get a percent sign to appear in my code as when I type it, the cursor jumps to the closest closing element (tag, brace, bracket, etc). When I removed that shortcut, not only does it not jump from opening to closing tag, it no longer works for braces/brackets/quotes/whatever. Not sure why that is since it is built into Vim and does not require Matchit.
Is there a way to specify that the key binding should not apply when my cursor is in insert mode? or is there a better way to configure things so that I get that functionality (jumping to closing tag, quotes, paren, brace, etc), but can also actually type the % character?
Related
I like VIM a lot because it kind of doubles the power of my keyboard in a way. It's either in insert or motion or whatever they call it mode.
Navigating through source code, typing code, while being able to keep my hands in the touch type position is great.
But when a dialog box is opened (eg. the one using ctrl+F12), if I have to select something other than the first one in the list, I am forced to have to move my right hand to the cursor keys.
Is there a way so that I can use J and K or else something with ctrl or alt or something, so that I can select an item while keeping my hands in the touch typing position?
You can redefine shortcuts for the Up, Down, Left, Right actions in File | Settings | Keymap (the regular keymap that has nothing to do with IdeaVim). IdeaVim provides Vim emulation only for code editors like file editors, interactive language consoles, etc.
Edit: I guess you can't use j and k since characters typed in the structure window are reserved for searching. But you can use Ctrl+N and Ctrl+P which is the same as the navigation shortcuts for pop-up windows in Vim.
Edit 2: You can't use Ctrl+N and Ctrl+P as well due to this bug in IntelliJ.
I am new to IntelliJ, and am having way too many problems with the editor. For example:
I expect Shift + Up to select text going up, or Shift + left to select text going left, but its just moving the cursor position without selection..
A lot of errors for example "function User(){" when I press enter I expect the other closing curly bracket to go down, sometimes it does, sometimes it just gives an error sound and doesn't do anything...
I am having the same issues even after closing and opening it again, is there a way to fix all these issues and just have normal keyboard keys like in other IDEs?
You can change the keymap in the settings.
Example: when you want to type single left quote, doublequote, bracket, curly bracket etc... at once right element is inserted by IDE automatically.
It was expected that simple ctrl+z combination would remove autocompletion but it wouldn't.
Because of that I have to press right arrow plus backspace and it slows down type performance significantly.
Is there related hotkey?
I'm using IDEA 14.
Using delete instead of -> and backspace you have single press of a key.
Alternatively, you can turn automatic insertion in settings:
When you open brackets, parenthesis, and so on, IPython Notebook automatically closes it, leaving the cursor inside, ready to type the arguments. After typing, is there any shortcut out of the brackets other than the arrow key? (It would be nice to use TAB or some other key closer than the right arrow).
I really like ideavim however I'm used to click Escape in order to... escape the current position into previous ones, sometimes its just closing the diff windows, and someone its just closing the current popup. However after installing ideavim it appears Escape is now used for exit edit mode, so what is my current replacement for my Escape button which will do the same operation Escape was doing without ideavim?
You can use <C-c> or <C-[>. See VIM-740 for more info.