With EasyMotion installed, we can use <Plug>(easymotion-bd-w) to jump to any word on the page.
Is there a way to configure my init.vim so that I don't have to press cw for ciw AFTER the jump?
It would be so cool if I can just 'jump there' and the word just cleared for me to type.
Related
In Eclipse I can highlight text in the editor such as "foobar" and then hit Ctrl+K, and Eclipse will automatically do a "find next" operation as if I had originally searched for "foobar". I don't have to do a separate "search" operation for the selected text. How do I do this in IntelliJ?
If I switch IntelliJ to Eclipse key mappings, indeed I can press Ctrl+K to invoke the "find next" operation. Unfortunately it ignores the selected text and instead searching again for the last text I searched for.
In other words, with Eclipse mappings in IntelliJ I still have to perform the following steps to do a Ctrl+K search for "foobar":
Select the text "foobar" in the editor.
Hit Ctrl+F for search; IntelliJ will pick up the selected text "foobar".
Hit <Enter> to search once for "foobar".
Hit <Esc> to exit search mode.
Finally hit Ctrl+K to search for the next occurrence of "foobar".
In Eclipse I only have to do this:
Select the text "foobar" in the editor.
Hit Ctrl+K to search for the next occurrence of "foobar" (regardless of what I searched for previously).
How can I get the same "search for next occurrence of selected text" functionality IntelliJ IDEA?
Try the Quick Find plugin, which appears to emulate the Eclipse functionality more closely than the "Next Occurrence of the Word at Caret" action. Caveat: I have not tried it myself.
I have some handy mappings set up in my ~/.ideavimrc some of which result in IntelliJ opening a new window/dialog box. For example the following line lets me type \t and it'll open IntelliJ's "jump to test" dialog box which lets me jump to an existing test or create a new test file:
:map \t :action GotoTest<CR>
This almost works great. The only issue is that when the dialog box pops up the focus is still on the editor window, not the dialog box. As a result I can't simply use the arrow keys to select my option and hit enter. Instead, I have to use the mouse. As a good code nerd, I abhor the mouse. So, how do I get the keyboard focus to change? Is this possible?
It's fixed in the master branch https://youtrack.jetbrains.com/issue/VIM-796, but the fix hasn't been released yet. You can download a CI build and help testing IdeaVim. See https://github.com/JetBrains/ideavim for more details.
Whenever I double click on words in IntelliJ, the editor highlights the word like I am expecting it to, and it also acts as if I am pressing the insert button to do Overtyping. If the word is selected and I move down via keypad, it starts to highlight everything from the end of the word and it is very infuriating. How can I disable this? I looked through the settings and I am not seeing anything that is related to double clicking and highlighted words.
I found a solution, there was a plugin that was installed along with the installation that is IdeaVim. After uninstalling that and I do not have the issue anymore
It's a very strange bug I have now .. For unidentified reason some keymaps doesn't work anymore. The two keymaps I have problems with for now are the one that give (€) and the one that give (}). My keyboard is Azerty and I have no problem elsewhere on my computer.
As you can see I cannot close the bracket or write (€) which is annoying .. I didn't touch anything and even a reinstallation of Intellij doesn't change this.
Also these keymaps are working on settings or console (inside Intellij) and maybe other part but not in the editor of course.
I hope someone heard about this strange behavior :/
I found the solution, I also have a french AZERTY keyboard. It's a problem of shortcut conflicts.
In Intellij 15.0.3 :
File / Settings / Keymap
At the right of the dialog you have a little "magnify icon" with the hint "Find Actions by short cut", click on it
A little dialog box will appear, just type the shortcut (for the close bracket AltGr+"}"). Intellij will show you the command, just right click on select "Remove Ctrl+Alt+Equal".
Same thing for the euro sign.
Here is a screen shot :
As we say in french "Un dessin vaut mieux qu'un long discours"
When I copy and paste string text into quotes Intellj always escapes certain characters like ", etc,. How can I disable this annoying feature?
You can use Ctrl+Alt+Shift+V (presumably ⌘+Alt / Option+Shift+V for OS X) to do Paste Simple (also available from the right-click context menu). This will paste your most recent clipboard content without escaping it.
Many other programs that offer "simple pasting" will use Ctrl+Shift+V instead, but in IntelliJ that opens an IntelliJ clipboard memory dialog, where you can choose previously copied text to paste.
Note that these are all default, but customizable, keyboard shortcuts.
I found the Ctrl + Shift + Alt + V combination a bit cumbersome, and after some digging I found an alternative solution that was more to my liking. I want to share it here in case it is useful to anyone else.
You can actually edit the key mappings for the paste simple command, and replace them with the standard Ctrl + V that most people are familiar with.
Simply go into File -> Settings -> Keymap and enter "paste" into the search box to bring up all the various paste commands. Double click "Paste Simple" and enter Ctrl + V for the shortcut.
You will be warned that the shortcut is currently assigned and you will be given the option to remove it. After doing so, you have pretty much replaced the annoying "enhanced paste" with the standard "simple paste".
Hope that helps someone out there :)
as of December 2019, at least in IntelliJ Ultimate 2019.3, there is a configuration option to disable this annoying behavior: Go to Editor --> Smart Keys --> Javascript and uncheck the "Escape text on paste in string literals" checkbox.