ideavimrc | IntelliJ IDEA的VIM键位配置,快速配置USTC源
kandi X-RAY | ideavimrc Summary
kandi X-RAY | ideavimrc Summary
IntelliJ IDEA的VIM键位配置,快速配置USTC源
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ideavimrc
ideavimrc Key Features
ideavimrc Examples and Code Snippets
Community Discussions
Trending Discussions on ideavimrc
QUESTION
I have been looking at this :actionlist
dump for IdeaVim for a while now, and am unable to figure out which action corresponds to Open Recent
(project) in JetBrains. This is the specific action I am looking at:
I wanted to be able to reassign a based keystroke to this action in
~/.ideavimrc
. So, how exactly should I proceed?
ANSWER
Answered 2020-Mar-12 at 06:49The ID for the open recent
action is a bit unusual $LRU
. You should map the leader keystroke to :action $LRU
.
QUESTION
I'm trying to recreate some of https://github.com/tpope/vim-commentary function's in IdeaVim.
I've tried various mappings in my .ideavimrc
, like for example:
ANSWER
Answered 2019-Mar-01 at 10:14It seems IdeaVim contains a number of bugs that prevent the correct execution of this kind of mapping. Feel free to create an issue here.
The functionality of commentary extension is on review right now. You can track it's status here. You can join Early Access Program to receive updates as fast as it possible.
QUESTION
I'm using PyCharm2018.3.
I want to create some shortcut in my ~/.ideavimrc
But it seems that pycharm vim plugin don't support :call
command.
Here is my ~/.ideavimrc
ANSWER
Answered 2019-Dec-12 at 09:09IdeaVim doesn't fully support vim script. Here is a related issue: https://youtrack.jetbrains.com/issue/VIM-506
QUESTION
I'm used to using https://www.vim.org/scripts/script.php?script_id=2703 for replacing a text object in Vim and I'm now in the process of recreating some of this functionality in IdeaVim.
I'm using these mappings in my vimrc
:
ANSWER
Answered 2019-Mar-06 at 09:54You can map custom operators with :map-operator
, but this feature is not yet supported by IdeaVim.
You can create an issue if you like.
QUESTION
The nifty CTRL-G
on Mac, which selects the next occurence of a word, does not work when IdeaVim is activated. So for quite a while, I've just lived with disabling IdeaVim, every time that I want to do a multi-selection as such. But I use it more and more. Are there a work-around, to get it to work?
... Or can I do it VIM-style somehow?
Concrete example
If I have something like this:
...ANSWER
Answered 2019-Mar-23 at 11:53You can choose IDE
handler for conflicting mapping if you want to execute idea action instead of vim's one.
QUESTION
I'm trying to trigger (to use) the IdeaVim multi cursor plugin: https://github.com/JetBrains/ideavim#emulated-vim-plugins -> multiple-cursors
In the github docs we have commands: ,
,
,
g
to trigger/use this plugin, but I'm not able to make this plugin working at all...
I've added in my .ideavimrc set multiple-cursors
.
Am I missing something?
I'm using OSX (if that's important).
...ANSWER
Answered 2019-Mar-18 at 09:09OSX has special characters that are mapped to option+key. You should disable them using this for example.
After that write this text:
QUESTION
When in insert mode in IntelliJ, typing <
takes timeoutlen
time (defaults to 1000ms, which is sane and useful for many other commands; changing timeoutlen
to 10ms makes <
basically immediate).
When in insert mode in Vim, typing <
is immediate.
:imap <
shows me no results, either in IntelliJ or in Vim.
How can I determine why IntelliJ is delaying this keystroke? How do I fix this?
I have my ~/.ideavimrc symlinked to my ~/.vim/vimrc, but I don't have any plugins installed. I have some custom functions defined that don't seem to do anything, but none of them use the <
in their mappings.
When I type imap
in ideavim, I get this:
ANSWER
Answered 2018-Dec-06 at 17:52The problem is that IdeaVim doesn't understand the special key from your config and treats it literally as the key sequence
<
, M
, i
, ..., >
.
Feel free to file a bug to the IdeaVim issue tracker to either handle or ignore the key.
As a workaround, you can comment out this mapping or put it into a config file that is not sourced from ~/.ideavimrc.
QUESTION
I use the IdeaVim plugin in various JetBrains products, mostly Idea and RubyMine. I am also working on several PCs, and set up a new dev environment quite often.
I can keep most of my settings and installed plugins in sync quite well across installations by using my JetBrains Account and the Settings Sync plugin, but the Vim Emulation settings added by IdeaVim are not synced.
This means that I have to reconfigure the shortcut conflicts every time I use a new JetBrains IDE or move to a new machine - not too much work, but I would still like to avoid it.
I am aware that the IdeaVim plugin saves its settings (including the ones mentioned above) in the file ~/.IntelliJIdea2018.2/config/options/vim_settings.xml
, but this file is not synced by Settings Sync. I am also aware I can use .ideavimrc
to customize shortcuts (and I can sync that using some dotfile manager) but to my knowledge there is no way to configure the shortcut conflicts settings in that file.
Is there a way to sync the Vim shortcut handler settings as pictured from one machine to the other?
...ANSWER
Answered 2018-Dec-06 at 16:52The IDE Settings Sync plugin doesn't allow to sync settings of plugins such as IdeaVim. According to the docs, it syncs only the following settings of the IDE itself:
IDE themes, keymaps, color schemes, system settings, UI settings, menus and toolbars settings, project view settings, editor settings, code completion settings, parameter name hints, live templates, code styles, and the list of enabled and disabled plugins
Editor settings don't include custom plugins that work with the editor. The only thing about plugins that is synced is the list of the plugins itself.
Feel free to file a feature request at https://youtrack.jetbrains.com/issues/IDEA about synchronizing settings of plugins.
QUESTION
I want Cmd-A (the macOS Command key, plus A) to select all text in visual mode, so I can e.g. indent or delete it using vim commands, Just like it does in MacVim. By default, it selects all text, but vim commands don't work on it.
I've put the following in .ideavimrc
:
ANSWER
Answered 2018-Nov-09 at 14:42 mappings are not supported in IdeaVim yet. Feel free to vote for VIM-758 and contribute a fix to https://github.com/JetBrains/ideavim.
Edit: You can check your effective mappings in IdeaVim via :map
.
Edit 2: I've checked mappings in IdeaVim 0.50 in macOS. They do exactly what you want, but with
instead of
. In my experiment, I've remapped
dd
to Command-A via:
QUESTION
I made some changes to my .ideavimrc
and I want IntelliJ IdeaVim to reload the file. I can obviously close and reopen IntelliJ, but that sucks.
How can I re-source my .ideavimrc
without restarting IntelliJ?
ANSWER
Answered 2018-Mar-01 at 22:30In Intellij's code editor window while in command mode, type a colon, that opens up a mini bar at the bottom. Then type
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ideavimrc
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page