%g/pattern/normal @q
Hello everyone,
I assigned a new macro in ~/.ideavimrc file but for some reason, it does not work. The macro works when I source the ~/.ideavimrc file in separate VIM but does not work in PyCharm. What could be the cause of this? Maybe it's a bug?
Macro: let @z = ':%s/"""_.{-}"""_s*//'
Thanks!
Hello everyone,
I assigned a new macro in ~/.ideavimrc file but for some reason, it does not work. The macro works when I source the ~/.ideavimrc file in separate VIM but does not work in PyCharm. What could be the cause of this? Maybe it's a bug?Macro: let @z = ':%s/"""_.{-}"""_s*//'
Thanks!
Ok, its solved! I had a mistake in the regex pattern. It should have been: let @z = ':%s/"""_.{-}"""_s*//'
source ~/.vimrc
at the top of my .ideavimrc
but this no longer seems to work. This must have been one of the resent upgrades but I just didn't notice it. Do I now need to specify this in my .ideavimrc
?
command! MyCommand <action>(Whatever.Action)
) support ranges? I'm trying to make my "actual-vim" and IdeaVim setups as similar as possible to one another, and I use the '<,'>GBrowse
command provided by fugitive.vim a lot in actual vim, so I'd like to define a similar range-accepting command in my .ideavimrc
to map it to the Github.Open.In.Browser
IDE action, but whenever I try command! -range GBrowse <action>(Github.Open.In.Browser)
, IdeaVim complains that "custom commands must begin with an uppercase letter" (which leads me to believe that it's not accepting the -range
option)
nnoremap <c-j> <Esc>
and inoremap <c-j> <Esc>
in IdeaVim in Rider. The mapping works in principle, but it doesn't close the autocomplete window. If I also bind "Escape" in the IDE settings to Ctrl+J, it does work to close the completion popup, but I have to press it twice to then also leave insert mode.Hello, I would like to create a custom command in my .ideavimrc. How can I find the list of menu commands that are supported. In Vim I have a :Tidy
command that reformats files. In my .ideavimrc I have
command! Tidy action ReformatFile
When I enter :Tidy
, the status bar indicates
VIM - Action not found: ReformatFile
Hi, buddies~ I want to remap the multiple-cursor plugin and tried this config.
But this won't work. I don't know how to toggle on this multiple-cursor function.
set vim-multiple-cursors
" Remap multiple-cursors shortcuts for Mac
nmap <C-n> <Plug>NextWholeOccurrence
xmap <C-n> <Plug>NextWholeOccurrence
nmap g<C-n> <Plug>NextOccurrence
xmap g<C-n> <Plug>NextOccurrence
nmap <C-x> <Plug>SkipOccurrence
xmap <C-x> <Plug>SkipOccurrence
nmap <C-p> <Plug>RemoveOccurrence
xmap <C-p> <Plug>RemoveOccurrence
if (logger.isDebugEnabled()) {
logger.debug("found file: " + found);
}
About mark.
I know that I can use uppercase to go to the marked place wherever what file I'm currently in.
If I mark use lowercase letter, it will only able to jump to place inside the same file.
Can I change this to I mark use lowercase, and can jump back to the marked place wherever files I'm in?
Hey, guys! I wonder how can I use plugin features in my own plugin?
I am trying to implement selection/deleting/yand with 'f' — like 'vaf', so it would select any form under the cursor (like {...} or "..."). I wasn't able to achieve this with ideavimscript so I am trying to write my code with LivePlugin.
With some lines of code I could put my cursor on the beginning of the current form
val action = actionManager.getAction(":cursive.actions.paredit/backward-up")
action.actionPerformed(event)
The only thing left to do is to say 'v%' in vim, but I can't figure out how to do it from code.
I can't find IdeaVim plugin
val plugin = PluginManager.getInstance().findEnabledPlugin(PluginId.getId("VimPlugin"))
May be someone have an experience with this, any advice will be appreciated
com.maddyhome.idea.vim.listener.VimInsertListener
, which is when insert mode starts, but not when it ends. Thanks!