Advanced Multiline Editing in Neovim

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 34

  • @erpelappel
    @erpelappel Месяц назад +2

    Wow, I just needed this today morning 😅 the YT algorithm is getting rusty 😂. Thanks buddy! Another great video!

  • @mbwilding
    @mbwilding 9 месяцев назад +2

    This was great. Thanks for the regex tips too!

  • @JamieAlban
    @JamieAlban Год назад +1

    seems useful - I use a lot of q macros to do a lot of these multi-location editing things, but sometimes it gets awkward or challenging to record a sufficiently accurate macro the first time. The instant visual feedback seems more forgiving.

  • @cody_codes_youtube
    @cody_codes_youtube Год назад +2

    Yo, new camera angle! Love it!

  • @cody_codes_youtube
    @cody_codes_youtube Год назад +1

    Nice dude, I enjoyed the video. I didn't know you could do this stuff. What are you using to do the key press recording?

    • @ascourter
      @ascourter  Год назад +1

      Thanks! There's a surprising number of ways I've found. That screen key capture is called KeyCastr

  • @farzadmf
    @farzadmf Год назад

    VERY nice video, thank you!
    Question: how have you configured your which-key to show Visual-Multi's menu when pressing m?

    • @ascourter
      @ascourter  Год назад +1

      I believe that is out of the box behavior. Here is a link to my Neovim config to check out: github.com/exosyphon/nvim

    • @farzadmf
      @farzadmf Год назад

      Hmmm, interesting. I think my visual multi's setup is similar, but for some reason, I don't see the bindings in which-key.
      I thought it might because I'm lazy loading my plugins, but that doesn't seem to be reason.

  • @diaryofafounder
    @diaryofafounder 8 месяцев назад

    Hey,
    I'm struggling to get vim-visual-multi installed in neovim.
    I've added this to my config:
    {
    'mg979/vim-visual-multi',
    branch = "master",
    lazy = false,
    init = function ()
    vim.g.VM_maps = {
    ["Find Under"] = ""
    }
    end,
    },
    But no luck (unable to run :help visual-multi)
    Do you have a video somewhere on how to setup vim-visual-multi in Nvim?

    • @ascourter
      @ascourter  8 месяцев назад

      Sorry you're having trouble! I don't have a video explicitly installing and setting it up unfortunately. In my config I only have { "mg979/vim-visual-multi" },
      Maybe try that and see if it will install. github.com/exosyphon/nvim/blob/2c275382a2ead9d4e0e160e7251eb191f92cf28d/lua/exosyphon/lazy.lua#L860

    • @diaryofafounder
      @diaryofafounder 8 месяцев назад

      @@ascourter no worries, thank you for sharing. Interesting that is the only line you have and it works for you! I'll have to see if anything else is conflicting.

  • @neunmalelf
    @neunmalelf Год назад

    Good Voice 👍 Nicely done content.

  • @jettlaggg
    @jettlaggg Год назад

    I wanna see more neovim content! new sub!

    • @ascourter
      @ascourter  Год назад

      Thanks! Just recorded a video on my Telescope config so hopefully can get that one editing soon and launched! Let me know if there are other topics you are interested in.

  • @irfanfauzi8704
    @irfanfauzi8704 Год назад

    Love your vids

    • @ascourter
      @ascourter  Год назад

      Thank you! Working on a video for LazyVim v10 that released today. Hope to release soon!

    • @irfanfauzi8704
      @irfanfauzi8704 Год назад

      Keep it up man. We need more neovim content.

  • @sumitsinghdeode2138
    @sumitsinghdeode2138 6 месяцев назад

    This is great vidoe but I am using mac and C+down and C+Up make the iterm window to move hwo to fix it?

    • @ascourter
      @ascourter  6 месяцев назад

      Thanks! If I understand what you are saying, it sounds like you want to use C+down / C+up but the iterm window is grabbing that keybinding? If so, check in your iterm settings for what your keybindings are. You might also check your System Settings and make sure those keybindings are not mapped there too.

  • @husrevmustafalale2369
    @husrevmustafalale2369 5 месяцев назад +1

    Am I the only one who cannot select a word using ctrl + n (I tried ctrl + N also)?

    • @ascourter
      @ascourter  5 месяцев назад

      Check if you have any conflicts using lua require('telescope.builtin').keymaps

    • @carlo_jacal
      @carlo_jacal 5 дней назад

      @@ascourter No conflicting, with C-n and C-p i move down and up 😅

  • @darkarie
    @darkarie Год назад

    I think a lot of these could be done with substitutions, right?

    • @ascourter
      @ascourter  Год назад +1

      Yeah you can accomplish a lot with substitutions but some of these might be less mental overhead or fewer keystrokes.

    • @darkarie
      @darkarie Год назад

      yes, in any case the are a lot of over head that can be reduced in substitutions if you use brackets, /1 and regex patterns

    • @darkarie
      @darkarie Год назад

      of course you need to get used to it to be fast like everything in vim, but at the end it can be more powerful

  • @suhendrapembelajar
    @suhendrapembelajar Год назад

    how to change C-down to C-j in mac. because C-down is use as global key in mac to minimize/select mac windows.

    • @ascourter
      @ascourter  Год назад

      I personally deactivated most of the global Mac keyboard shortcuts but you should be able to customize inside System Settings. As an alternative you could add a keyboard shortcut specifically for your terminal application.
      support.apple.com/guide/mac-help/change-a-conflicting-keyboard-shortcut-on-mac-mchlp2864/mac

  • @JamieAlban
    @JamieAlban Год назад

    that's a TINY keyboard

  • @dhavyzhn7003
    @dhavyzhn7003 Месяц назад +1

    After seeing that you use three monitors and chose the smallest one as your main, and with the number of things connected to your MAC, I highly doubt that you know anything about nvim, let alone advanced stuff. Not to mention that the size of your keyboard is probably equivalent to your knowledge.

    • @ascourter
      @ascourter  Месяц назад +1

      This comment says more about you than anything else. Best of luck with your endeavors.

    • @TragicGFuel
      @TragicGFuel Месяц назад

      Yeah, and uses a mac to boot.
      I'll never understand mac users, but this guy right here is weird, why would you get extra monitors and, uh, NOT use them