Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Gordon Child
    @gordolio

    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
    Looks like there's a gist with a list of everything... https://gist.github.com/zchee/9c78f91cc5ad771c1f5d
    1 reply
    Gordon Child
    @gordolio
    The action was ShowReformatFileDialog, but more appropriate action is ReformatCode
    K85
    @K85
    Hi there, can anyone tell me how to make my IDE's screen scroll smoothly ?
    I have enable the IDE's "Smooth Scroll" Option. However, this only works when I disable IdeaVim plugin.
    When I enable IdeaVim plugin, and scroll the screen by Ctrl+D / Ctrl + U or any jump, it's not smooth scrolling.
    4 replies
    Joe
    @foxjazz1_gitlab
    is there an easy way to disable vim via commandline
    @woodgear
    hi all,is there some way to call intention action such as 'add format string argument' via ideavim?
    renierG
    @renierG
    Probably way to early to ask, but will ideavim be compatible with fleet?
    Lee Turner
    @leeturner
    I asked earlier and it isn’t supported yet but work is in progress- https://twitter.com/ideavim/status/1465282535534047234
    1 reply
    LintaoAmons
    @LintaoAmons

    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
    5 replies
    Jamie Asefa
    @j-asefa
    Hi, quick question about IdeaVIM updates: when we download an update to IdeaVIM - do we download via a direct connection from JetBrains or from another hosted service?
    Piotr Mikulski
    @pmnoxx
    What is the best way to enable logger:
    I want to get output of if (logger.isDebugEnabled()) { logger.debug("found file: " + found); }
    LintaoAmons
    @LintaoAmons

    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?

    2 replies
    Artur Dumchev
    @Liverm0r

    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

    2 replies
    yairf-s1
    @yairf-s1
    Hey all, im trying to understand something, i read on github that vim-plug is supported, but when i try to use it, i get "Unknown function: end", anyone dealt with that one?
    1 reply
    image.png
    Joachim Ansorg
    @j_ansorg_twitter
    Hi, GitHub Copilot has some support for IdeaVim, but has a bug that inlay hints are not removed when a user switches out of insert mode.
    Is it somehow possible to detect when this happens? I only could find com.maddyhome.idea.vim.listener.VimInsertListener, which is when insert mode starts, but not when it ends. Thanks!
    https://github.com/github/feedback/discussions/7863#discussioncomment-2051452
    Joachim Ansorg
    @j_ansorg_twitter
    Alternatively, is there a way to call the equivalent of the "leave insert mode" action programmatically? I'm seeing Editor.exitInsertMode but it's unclear how the needed OperatorArguments should be created.
    Saleh Muhammed
    @salehmu__twitter
    Hello there
    Can anyone write me the proper .idearc command to set auto-format on file save?
    2 replies
    Daniel
    @zazu7765
    hi!
    my ideavim doesn't load plugins like surround / nerdtree for some reason
    i have them as set surround and set NERDTree
    2 replies
    zido
    @zidoshare
    image.png
    I set 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.
    1 reply
    Overloader
    @Overloader_gitlab
    Alright, I would love there to be an lightline style bar on the bottom of the editor window but as I understand it you cant install plugins, right?
    1 reply
    Myshko Dm
    @dmytruek:matrix.org
    [m]
    What action name corresponds to "Rebuild Project" in Android Studio? smt like:
    map <leader>b <Action>(RebuildProjectOrSmtIdk)
    but none of this work: Build, Rebuild, BuildProject, RebuildProject :(
    4 replies
    chzchzchzchz
    @chzchzchzchz:matrix.org
    [m]
    hello guys, help me, how to disable filtering in Project Tool Window? after activation I can't switch to NerdTree keybindings
    chzchzchzchz
    @chzchzchzchz:matrix.org
    [m]
    Is it possibe to get space key to work as leaderkey everywhere, not only in editor?
    1 reply
    Saša Janiška
    @gour
    morning
    i'm told about https://intellij-asciidoc-plugin.ahus1.de/ plugin for writing AsciiDoc and wonder if I could use it with this plugin? i'm still not JetBrains user, but consider I could buy a license for PhpStorm. would everything still work?
    3 replies
    LintaoAmons
    @LintaoAmons
    I found that I can't assign <leader>sm to an action. It seems like that s can't be the start char after <leader>, it will always be treated as vim's default function, and no matter if the <leader> was pressed or not? Is that right?
    12 replies
    Cassiel-girl
    @Cassiel-girl
    .ideavim "sethandler <:e> n:ide i:vim"
    I want to run "show history" command in pycharm when I press ":e" in normal mode.
    but when I press ":e" in insert mode, I want to input ":e" two character.
    how to implement it?
    3 replies
    Duncan Beaton
    @dunckr
    Hey I had two issues (Github.Open.In.Browser, RunClass) since the last release and they are now both fixed with the VIM update today. Thank you!
    Cassiel-girl
    @Cassiel-girl
    imap <C-f> Right
    I want to move the cursor one position to the right after pressing the ctrl+f shortcut, but the above setting inserts the "Right" string at the cursor.
    4 replies
    Cassiel-girl
    @Cassiel-girl
    imap <C-k> :action EditorDeleteLine
    2 replies
    How to implement Pycharm's EditorDeleteLine command after pressing ctrl+k.
    Cassiel-girl
    @Cassiel-girl
    In normal mode, how to implement run pycharm command cmd1 when you press TAB for the first time, pycharm command cmd2 when you press TAB for the second time, and pycharm command 1 when you press TAB for the third time, loop
    5 replies
    Cassiel-girl
    @Cassiel-girl
    Why does the cursor not move down when I keep pressing j in pycharm, but the cursor only moves down when I press j and then release j?
    Cassiel-girl
    @Cassiel-girl
    who can help me?
    Matt Ellis
    @citizenmatt

    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
    3 replies
    Sean
    @seantwie03
    I really like this plugin. Massive Thank You to all the maintainers and contributors!
    Chad Stovern
    @chadhs
    Has anyone been able to achieve the behavior of YouCompleteMe in IdeaVIM? My goal is to be able to cycle through AutoComplete candidates using tab and have it complete the text. In emac/evil land the popular Company autocompletion has a setting to match YouCompleteMe called company-tng for "tab n go".
    3 replies
    artificial-user
    @artificial-user:matrix.org
    [m]
    Hi! Not sure if this is the right place, but none of my keys on my keyboard work with IdeaVim version 1.10.2 in PyCharm version 2022.1.1 (professional edition) on macOS Monterey (had no luck in finding a related issue / resolution online). The cursor (in visual mode) does not react / move at all to any key. I have a .vimrc file as well, but not sure if that matters. Any help would be appreciated!
    2 replies
    Gregory Klyushnikov
    @grishk:matrix.org
    [m]
    Did something change about indents (>> 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.
    1 reply
    Gregory Klyushnikov
    @grishk:matrix.org
    [m]