Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    itadder
    @itadder
    How do I get Surround With or By to work with IDEVIM
    Crtrl ALT T does not work
    1 reply
    itadder
    @itadder
    Hi
    IS thier a vim way to for excel wrap a select statement in datagrip with ()
    hi
    I am here
    surrond with
    maxwillx
    @yueyingjuesha
    Hi, I found intellij use one global navigation history(jump history) across multiple split window(I map ctrl-o to Action :Back), not like vim which treat navigation history seperately per split. Is there any method I can do to hack to treat each split window's jump history seperately?
    1 reply
    Aasutosh Jha
    @aasutossh
    use ideavim shortcuts when no tab is opened? ideavim mappings works fine when an editor tab is open but won't work when there is no tab opened.
    2 replies
    Aasutosh Jha
    @aasutossh
    the action Back doesn't work properly. It just loops in the same two locations.
    but Ctrl + Alt + Left arrow key works for multiple files.
    action Forward doesn't even work.
    Matt Ellis
    @citizenmatt
    Check out https://youtrack.jetbrains.com/issue/VIM-2225. I suspect the mapping syntax you’re using could be updated.
    Aasutosh Jha
    @aasutossh
    Thank you so much @citizenmatt , newer syntax worked. nmap <C-O> <Action>(Back)
    K Wolf
    @wolfisdev_gitlab
    Hi, is there a way to globally prioritize keybindings defined in .ideavimrc over the keybindings of the IDE's keymap? How to you guys resolve conflicting keybindings?
    3 replies
    Michal Placek
    @MichalPlacek

    @AlexPl292
    Hi Alex
    Yor comment for VIM-1476:
    "Actually, it looks like this case is a bit more complicated than expected. Because at the moment lastKeys contain a list of "raw" commands, so in case if user types ab then presses left arrow and types c (acb in the result), we should also process this left arrow for correct . register representation. But since in IdeaVim dot register has only representation purpost, I guess this small inconsistency can be ignored at the moment."

    Is there a task for this?
    I would try to fix it.

    1 reply
    Jacob Bosco
    @Jacob3075
    Hi, I am using ideavim on IDEA and i have a mapping for the "f" key but it does not get applied when the project is opened, I have to go the rc file and make some changes so that I can source the file manually, after the manual source it works. So far I have noticed this only for the "f" and "t" keys. Does anyone know how to fix this?
    8 replies
    shico
    @shico:matrix.org
    [m]
    I have my leader key set to space, and one mapping doesn't work when I start intellij which is <Leader><Leader>. All the other mappings work except this one, I have to source my .ideavimrc file in order to get that mapping working.
    euri10
    @euri10:matrix.bartab.fr
    [m]
    greetings, anyone would have an idea how this leader key could work in ideavim
    nmap <silent><Leader>g :call setbufvar(winbufnr(popup_atcursor(split(system("git log -n 1 -L " . line(".") . ",+1:" . expand("%:p")), "\n"), { "padding": [1,1,1,1], "pos": "botleft", "wrap": 0 })), "&filetype", "git")<CR>
    it currently does nothing, other leader key mappings work fine, unfortunaltely this is my most-used and favorite in vim and I can't make it work here
    4 replies
    euri10
    @euri10:matrix.bartab.fr
    [m]
    sure, when you are on a file that is "gitted" and press leader g on any line, then it popups a small window with the git commit where that line was added
    it's basically doing git log --max-count=1 -L 364,+1:services/sfjapi/tests/conftest.py in that case
    but inside the editor
    Lee Turner
    @leeturner
    git-blame.png
    Can't seem to attach this image to the thread so will post it here . This is the GitToolBox git blame dialog
    euri10
    @euri10:matrix.bartab.fr
    [m]
    yep, git blame -L 364,+1 services/sfjapi/tests/conftest.py would output dde5debe (euri10 2021-02-28 15:05:38 +0100 364) job = ArqJob(job_id=job_id, redis=arq_redis) while git log --max-count=1 -L 364,+1:services/sfjapi/tests/conftest.py would be more complete and look like
    commit dde5debe1aa8579376834402abed88ab6f52d6b5
    Author: euri10 <benoit.barthelet@gmail.com>
    Date:   Sun Feb 28 15:05:38 2021 +0100
    
        Passing test with seperated lake update : it happens in its own fixture after upload_ls
    
    diff --git a/services/sfjapi/tests/conftest.py b/services/sfjapi/tests/conftest.py
    --- a/services/sfjapi/tests/conftest.py
    +++ b/services/sfjapi/tests/conftest.py
    @@ -362,0 +363,1 @@
    +    job = ArqJob(job_id=job_id, redis=arq_redis)
    I did not know that plugin , will try it, I tend to prefer using defaults but :)
    3 replies
    NEUKhoaLe
    @NEUKhoaLe
    can anyone tell me how to remap Escape on ideavim
    1 reply
    ryandanielspmc
    @ryandanielspmc

    Is it possible to express the escape key from from a mapping such as:

    nnoremap <leader>1 iprintln("======")(...escape here...)

    In actual Vim I would do this by typing ctrl-v then the escape key, but this does not seem to work in IdeaVim. Is there another way to do this?

    2 replies
    Pavel Gorgolevskiy
    @mechos3d
    Hi all !

    External filters do not seem to work for me in Idea
    In vim we can filter text through external script like this:

    Having a cursor on a line like this:

    something

    I execute command:

    :.! echo __$(cat)__

    And get a line:

    __something__

    In Idea this doesn't seem to work.

    :.! echo __$(cat)__
    just returns the string __$(cat)__ as is.

    :.! echo foo or :.! cat or :.! ls work like expected though - they insert the results of these commands

    But for example:
    This works in vim:

    :.! ruby -e 'puts 777'

    (it will insert 777 at current line)
    But in Idea it just deletes current line for some reason.

    14 replies
    Edward Amons
    @Edwardlin-zlt
    image.png

    image.png

    How you guys select the whole block using vim shortcuts when cursor at any place inside the block

    5 replies
    Michal Placek
    @MichalPlacek
    @AlexPl292
    Hi Alex,
    Finally I have some free time.
    I was looking at VIM-1062.
    I think i`m able to do this task.
    The way "bd" and "bdX" is supposed to work is obvious.
    I have question to "bn" and "bp":
    next and previous should be taken from buffer list or from tabs order ?
    3 replies
    Luka
    @cimpresovec
    Hello everyone. I just got the plugin updated and tried the new global mode, but it looks like it doesn't support executing macros?
    Or am I using it wrong?
    I tried something like %g/pattern/normal @q
    3 replies
    Farid MUSA
    @mmtechslv

    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!

    Farid MUSA
    @mmtechslv

    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*//'

    Michal Placek
    @MichalPlacek
    I was made pull request JetBrains/ideavim#334
    Teamcity reported that GlobalHandlerTest has failed.
    I ran local tests and found the tests to be very unstable.
    On repeat invocation, the number of failed tests varied between 91-93.
    Is anyone already researching why this is happening?
    Geoffrey van Wyk
    @geoffreyvanwyk
    I want to assign a mapping for the Refactor > Rename... action. How can I find out what its one-word name is? For example, the one-word name for Navigate > File... is GotoFile.
    5 replies
    Sebastian Nielsen
    @Sebastian-Nielsen
    Can anyone else map ctrl+j? It doesn't work for me:
    nmap <C-j> asdf
    8 replies
    Sebastian Nielsen
    @Sebastian-Nielsen
    Is it bugged?
    Sebastian Nielsen
    @Sebastian-Nielsen
    jonatanprins
    @jonatanprins
    Exciting secret discussion
    Eduardo Assis
    @edassis
    Hello everyone,
    What is the command to open "Find in Files" using the leader key?
    8 replies
    Lee Turner
    @leeturner
    I just realised that IdeaVim is no longer displaying relative line numbers for me. These were usually pulled in from having 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 ?
    3 replies
    Spencer Williams
    @spencerwi
    Apologies if this has been asked before, but do custom commands (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)
    Ariel Viera
    @avierax
    hi, how do i expand selection in ideavim
    2 replies
    Jonathan Jacobs
    @jonathanj
    Is it possible to have a binding that calls FindInPath so that the mode is set to "Scope: Open files", without having to manually change the UI?
    1 reply