Level Up Your (Neo)vim Skills: 6 Practical External Command Tricks

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

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

  • @thomassantosh
    @thomassantosh 7 часов назад

    Fantastic. Very well structured and delivered.

  • @wojciech-kulik
    @wojciech-kulik Месяц назад +3

    This series of Neovim videos is nuts. I watched everything on YT about Neovim, yet there are so many great and PRACTICAL things here, which I didn't know.

    • @cloud-native-corner
      @cloud-native-corner  Месяц назад

      Woohoo, awesome! More to come :). Working on tutorial for writing simple custom lua functions.

  • @romainjouhameau2764
    @romainjouhameau2764 17 дней назад

    Really useful tips. I learned a lot, thanks !

  • @ChrisCox-wv7oo
    @ChrisCox-wv7oo Месяц назад

    Some really nice tips in here, forgot that external commands can take a range, and really liked the keymaps to execute lines of a file in the shell. Seems super useful particularly when working with scripts.

    • @cloud-native-corner
      @cloud-native-corner  Месяц назад

      Thank you! The range one is super useful when executing code snippets from a markdown document.

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

    thanks for those nice tips man.

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

    Nice tips thank you

  • @rajughorai7483
    @rajughorai7483 26 дней назад

    nice one

  • @FekuEntertainmentLtd
    @FekuEntertainmentLtd 26 дней назад

    Just an fyi, vim has an in build sort command. So after selection, we can simply put sort. So :'

    • @cloud-native-corner
      @cloud-native-corner  26 дней назад

      Thank you, this is also more predictable because there might be different versions of coreutils on a machine.

  • @nikolazivkovic2399
    @nikolazivkovic2399 10 дней назад

    How to execute the shell command on text selected in the buffer? smth like:
    "'

    • @cloud-native-corner
      @cloud-native-corner  10 дней назад +1

      If your script can work with multiple lines you can just create a mapping in visual mode:
      vim.keymap.set({ "n", "v" }, "xx", ":!sort -n -k 2", opts) -- here is example of calling external sort command
      I would suggest adding your script location to PATH and add node #! so you can just call the script name.

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

    :r !cat file is the same as :r file btw