My favorite IdeaVim features (IntelliJ)

แชร์
ฝัง

ความคิดเห็น • 64

  • @macojaune
    @macojaune 2 ปีที่แล้ว +1

    Thank you for this, I'm curious about vim to keep my hands on my keyboard but don't want to lose my fav Webstorm features

  • @tearsinrain2049
    @tearsinrain2049 3 ปีที่แล้ว +10

    More of this kind of content please!

  • @tobi5106
    @tobi5106 27 วันที่ผ่านมา

    Regarding the last issue, or general improved mobility and making the full os more vim-like: mapping `right alt` / `right cmd` with h j k l to left down up right really helps.

  • @filippkotenko851
    @filippkotenko851 2 ปีที่แล้ว +1

    thank you! its good review

  • @breakersun
    @breakersun 2 ปีที่แล้ว +1

    I'm using windows, seems the ctrl + ] to escape with the popout menu doesn't work. doesn't anyone have the same problem?

  • @jiaxushen9881
    @jiaxushen9881 2 ปีที่แล้ว +22

    if you post those short cuts on screen, its so easier for us to know how Vim works, not staring at flashing keyboard on right top corner.

  • @sachindraragul1094
    @sachindraragul1094 ปีที่แล้ว +1

    Actually I'm practising VIM through webstorm with Ideavim. Thanks for the video

    • @ivankuts
      @ivankuts 6 หลายเดือนก่อน

      Hey, I assume you use prettier with refactor code on save, do you know how to enable that auto save in IdeaVim?

    • @sachindraragul1094
      @sachindraragul1094 6 หลายเดือนก่อน

      ​@@ivankuts i don't feel the need to use webstorm these days. Vscode is good enough.

  • @jantonisito
    @jantonisito 2 ปีที่แล้ว

    Nice tutorial. The 'ideajoin' does not seem to work on CLion with Rust plugin. Is there any way I can get mode indicator (Normal/Insert/Visual) anywhere on status line?

    • @Luxalpa
      @Luxalpa ปีที่แล้ว +1

      Rust plugin needs to support any sort of refactor actions itself. Unfortunately it's also not written in Rust but in Java :/ But you could see if there's an open issue on their github (it's open source)

  • @jonnycoddington1883
    @jonnycoddington1883 10 หลายเดือนก่อน +1

    Hi Sebastian, thanks for making this video! I'm in the process of setting-up and learning IdeaVim and your tips have been super helpful. I have one question about the IDEA auto-closing braces, I was wondering if you could help.
    For example, lets say I was to write the following code and right now I am in insert mode at the end of the semi colon. If I then wanted to add an else statement to this block, currently I am going back into normal mode, pressing 'w' and then 'a', and then continuing with the statement. Is there a way to do this without having to press 3 keys in a row? Maybe I'm missing something...
    if (condition) {
    doSomething();
    }

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  10 หลายเดือนก่อน

      Hi, thanks for your kind words!
      Good question, I'd say, probably no.. if your cursor is in the line above, it's very likely the quickest to just jump a line down and continue, similar to what you've described by switching into normal mode... At least I don't see any other quicker way. There might be an IDE suggestion (sth like "add else block"), but that is likely also not possible to trigger in less than 3 keystrokes.

    • @vikingthedude
      @vikingthedude 9 หลายเดือนก่อน

      I would do "jA" and then start typing. That would be the canonical way of going down a line followed by appending new text at the end. Once you get used to these things, the number of keys doesn't really matter. It's more muscle memory and mnemonics

  • @CesarGomez-mi8gg
    @CesarGomez-mi8gg ปีที่แล้ว

    How did you get that smooth scroll when pressing j or k. I need to repetitevely press those keys in order to move up and down. I spent 2 weeks trying to get my NVIM setup and I just gave up lol. I'm hoping to at least get the vim motions working in this IDE.

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  ปีที่แล้ว

      Good question, I basically have the standard setup of the IdeaVim plugin, plus these settings in my .ideavimrc: github.com/sdaschner/dotfiles/blob/master/.ideavimrc

  • @MrJaakuza
    @MrJaakuza 3 ปีที่แล้ว +1

    Awesome! Thanks alot

  • @Gribozhuy
    @Gribozhuy ปีที่แล้ว +1

    I’m also installed this pack after your video, but last two week I’m stacking in the first opened document and don’t know how to exit.

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  ปีที่แล้ว

      What do you mean with exit? You can still use the IDE in the same way after installing IdeaVim, even with your mouse in case your keyboard is trapped somewhere.

  • @TomerBenDavid
    @TomerBenDavid ปีที่แล้ว

    How did you move from code editor to the file explorer? Which shortcut?

  • @karamkassem9821
    @karamkassem9821 2 ปีที่แล้ว

    Best explanation ever good job

  • @tony-ma
    @tony-ma 2 ปีที่แล้ว

    Hi when I joining thwo line with Shift+j, it doesn't remove {} and also doesn't join the if conditions. Is there any extra configure required?

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  2 ปีที่แล้ว +1

      Yes, you need to `set ideajoin`, as described here: blog.sebastian-daschner.com/entries/my-favorite-ideavim-features

    • @tony-ma
      @tony-ma 2 ปีที่แล้ว +1

      @@SebastianDaschnerIT applylied set ideajoin but still not working ☹️

  • @Futteman
    @Futteman 2 ปีที่แล้ว +1

    thank you for some content, I am struggling a little bit with figuring out my keybindings.
    Like should I use ctrl + w for extend select, or just ctrl + w in for VIM.
    Would you mind sharing your keybindings :)?

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  2 ปีที่แล้ว +2

      Yes, I've set almost all of them to IDE (except Shift+Enter / Ctrl+; / Ctrl+Shift+; / Ctrl+L). I'd recommend to set most of them to IDE since you do want the IDE bindings, unless you *really* need something as VIM action :)

  • @prueba3413
    @prueba3413 2 หลายเดือนก่อน

    Thanks for the video Sebastian, I have been using IdeaVim, and there is something that bothers me alot, I cant find a way to remap the "Enter" to accept modifications of the code in some popups from the IDE, I Would like to accept those popups with ctrl+m , but I didnt find the way to remap Enter in the context of the popups, It would be very helpful if you can tellme some tip to deal with this

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  2 หลายเดือนก่อน

      Hey, very likely the way to go for this is to map the IdeaVim actions to a Vim binding, as described here blog.sebastian-daschner.com/entries/intellij-actions-ideavim
      You can find out the available actions with `:actionlist `, maybe something like `:action QuickActionPopup` for your case that then you can map to a key

    • @prueba3413
      @prueba3413 2 หลายเดือนก่อน

      ​@@SebastianDaschnerIT Thank you very much for your answer, I use several mappings like QuickActionPopup, or others in my ideavimrc, the problem is that the popups opened by this actions cant be navigated in a vim like manner, and every time I want to accept an option inside the popup, I have to use the Enter key, so I have to move my right hand out of hjkl, which is hindering my flow, atm I didnt find a way to remap this.
      Edit: activating the action tracker, to check what events are activated, doesnt show anything when 'Pressing Enter to chose an option inside a popup'

  • @SM-te2xw
    @SM-te2xw 2 ปีที่แล้ว +1

    gooD explanation! How can you show your keystroke on the screen? Which program you are using?

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  2 ปีที่แล้ว

      I'm using key-mon: github.com/scottkirkwood/key-mon

    • @SM-te2xw
      @SM-te2xw 2 ปีที่แล้ว

      @@SebastianDaschnerIT Thanks so much!

  • @user-yb4jd5jv2f
    @user-yb4jd5jv2f 2 ปีที่แล้ว

    Thanks for tips

  • @arjay_2002
    @arjay_2002 3 ปีที่แล้ว +2

    Settings plz

  • @mateuszj9488
    @mateuszj9488 9 หลายเดือนก่อน +3

    I'd love to see a video that could convince IDEA power-users to use vim motions (because switching to nvim is a no-go for enterprise Java developers I suppose). Is this a +5% to productivity game or maybe more? You still have to use IDE-specific refactoring shortcuts and the navigation ones are awesome. I'd like to see some real productivity boosters having no IDEA counterpart etc. Avoiding using arrow keys is already a good thing, but I'd like to get a bit more than that.
    This could be done only by someone who knows both worlds very well. I'm quite curious about that.
    Thank you for awesome content :)

    • @TheRich107
      @TheRich107 2 หลายเดือนก่อน

      What about nvim makes it hard for java developers (asking because I don't code in java)

  • @programacion3694
    @programacion3694 3 หลายเดือนก่อน +1

    buen video.

  • @alielarfaoui4341
    @alielarfaoui4341 10 วันที่ผ่านมา +1

    Thank you

  • @ahmedifhaam2669
    @ahmedifhaam2669 ปีที่แล้ว

    where do i find or put the .ideavimrc file ?

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  ปีที่แล้ว

      It resides in your home directory (~), just like the .vimrc file

  • @pjguitar15
    @pjguitar15 2 ปีที่แล้ว

    How long does it take to get use to vim?

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  2 ปีที่แล้ว

      It took me about 2 weeks to get me to a speed where it wouldn't hinder me anymore, and from then on I gradually became faster and faster compared to non-Vim before.

  • @p.shpyro
    @p.shpyro ปีที่แล้ว

    Nice video, but using the IdeaVim I've noticed I can't use capital U to return the line to its original state.

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  ปีที่แล้ว

      Oh ok interesting, I actually never used capital U :)

    • @p.shpyro
      @p.shpyro ปีที่แล้ว

      @@SebastianDaschnerIT yes, it's quite rarely used command

    • @p.shpyro
      @p.shpyro ปีที่แล้ว

      @@SebastianDaschnerIT how do you create new classes or files using IdeaVim?
      Do you use
      :action NewFile
      :action NewClass
      ?
      Or you use alt+1 and then via alt+insert do these actions?

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  ปีที่แล้ว

      I usually use the latter (so basically the context menu, but triggered via keyboard), that's the fastest for me. What about you, do you prefer an IdeaVim action?

  • @gayashanbc
    @gayashanbc 2 ปีที่แล้ว +3

    Great video
    Can you kindly share your ideavimrc file?

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  2 ปีที่แล้ว +2

      Sure, you'll find that on the description page: blog.sebastian-daschner.com/entries/my-favorite-ideavim-features
      Or direct link: github.com/sdaschner/dotfiles/blob/master/.ideavimrc

    • @gustavobzha
      @gustavobzha 2 ปีที่แล้ว

      @@SebastianDaschnerIT I always had this doubt, where I have to put .ideavimrc file?

  • @p.shpyro
    @p.shpyro ปีที่แล้ว +1

    I recommend good app for Android: Vim master, really helpful

  • @mikchannel
    @mikchannel 3 ปีที่แล้ว

    I still can't understand why it's more convenient than pure IDEA with shortcuts and postfix completions.

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  3 ปีที่แล้ว +1

      IMO Vim offers much more flexibility on where to jump and how to modify text. It includes many movement actions, such as "word forward", "word backward", "line up/down", etc. and combining that with editing text is very effective - when editing text in general, not just in an IDE.

    • @mikchannel
      @mikchannel 3 ปีที่แล้ว

      @@SebastianDaschnerIT Maybe, but IDEA has shortcuts for "word forward", "word backward", "line up/down" (Option + →, Option+←, ↑, ↓) and usually I use IDEA as IDE and not as plain text editor...

    • @rodrigosantacruzortega8890
      @rodrigosantacruzortega8890 3 ปีที่แล้ว +1

      @@mikchannel It is not just about word movement. You can change/select/delete text inside quotes, braces, parenthesis very easily. You can repeat actions with one key. You would have to give vim a try to understand why it's the best text editor (not IDE). So, vim+jetbrains powerful IDE = perfection.

    • @AbhijithVMohan
      @AbhijithVMohan 3 ปีที่แล้ว +1

      With vim, you can combine verbs and objects. Like if you're within a string and want to change it, it'll be ci" if instead i wanted to copy(yank) its content, it would be yi", to delete it would be di". c, y, d etc are like verbs here and i" is an object. There are few words and few objects & movements and combining them in all possible ways, you can edit text easier than with keyboard shortcuts. Plus, these shortcuts remain the same in all editors with a vim emulation and across mac & pc.

    • @ranelpadon8834
      @ranelpadon8834 3 ปีที่แล้ว +2

      Also, using Vim is more ergonomic, since the commands are just single letters and in the main row. This is much better than using combinations of Cmd/Option/Shift/Ctrl which is inefficient and causes more strain to your hands.

  • @trestenpool9045
    @trestenpool9045 2 ปีที่แล้ว

    Learn how to use action id’s in your ideavimrc. I promise it’ll increase your productivity ten fold.

    • @trestenpool9045
      @trestenpool9045 2 ปีที่แล้ว +2

      map g (Generate)
      This line will pull up the generate action in IntelliJ

    • @SebastianDaschnerIT
      @SebastianDaschnerIT  2 ปีที่แล้ว

      Oh yes good point. I've only used it once (for switching the editor tabs, i.e. open files), but good reminder, will play around with that 👍