ShowReformatFileDialog
, but more appropriate action is ReformatCode
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!set surround
and set NERDTree
map <leader>e :NERDTreeToggle<CR>
but I can't use <leader>e to toggle nerdtree. because I typed <leader>e which triggered the display of the search box.
map <leader>b <Action>(RebuildProjectOrSmtIdk)
Are you on Mac? Mac has a “press and hold” feature for accents - e.g. pressing and holding a
shows a popup with different accented a
characters - à
, á
, etc. This means by default, pressing and holding j
won’t repeat the character (same in other apps). You can disable this, both system wide and per-application.
Globally:
defaults write -g ApplePressAndHoldEnabled -bool false
Per-application is a bit trickier, because you need to know the app ID.
defaults read | egrep -o 'com\.jetbrains\.\w+' | sort —unique
Should list all JetBrains related app IDs, so you should then be able to do:
defaults write com.jetbrains.pycharm ApplePressAndHoldEnabled -bool false
>>
command) recently? All my projects use tab indents. IdeaVim keeps inserting spaces sometimes when I do >>
. Sometimes it's one space, sometimes more, but always fewer than 4. Is it a bug, or is it a new feature that I need to disable? I don't want half-indented anything. If I wanted that, I would not have been using tabs in the first place.