home.social

#neovim — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #neovim, aggregated by home.social.

  1. #neovim Development News

    The 0.12 version adds `]N` and `[N` Visual mode mappings for expanding selection to sibling treesitter node.

    PR:
    - github.com/neovim/neovi...

    feat(treesitter): select grow ...

  2. Is there something faster in #vim or #neovim then:

    :cexpr [] | silent! bufdo vimgrepadd /XYZ/ % | copen

    to grep for XYZ in all bufferns?

  3. [旧闻] 网友要求 Neovim 维护者撤除官网中争议人士 DHH 对 Neovim 的好评,引起一位维护者与众多网友的争论。DHH 的好评最终被另一位维护者撤掉。

    - Neovim 是知名编辑器 vim 的知名 fork 版本。
    - 八月末有人在 GitHub 开 issue 要求 Neovim 回应在官网引用「纳粹主义者」 DHH 言论的情况。一位维护者回复称对此等论争不予回应。 [1]
    - DHH (David Heinemeier Hansson) 是 Ruby on Rails 框架、Basecamp 软件,以及发行版 Omarchy 的创始人。他向来有些争议,其中最受讨论的是其鲜明的反移民态度 [2]。
    - DHH 主导的基于 Arch Linux 的系统预设配置 Omarchy [3] 近期也备受关注。其基金会已经收到来自多位 CEO 及数家企业的共计 1500 万美元捐款 [4]。
    - DHH 对 Neovim 的好评是 Neovim 官网去年 11 月迁移到 Hugo 的时候与其它几人的好评共同添加的。 [5]
    - issue 中还是发生了争吵,争论双方最后也未达成共识。另一位 Neovim 维护者最终从官网移除了 DHH 的言论。 [6]

    1.
    gh:neovim/neovim.github.io#501
    2.
    world.hey.com/~
    3.
    https://omarchy.org/
    4.
    omarchy.org/~
    5.
    gh:neovim/neovim.github.io#393
    6.
    gh:neovim/neovim.github.io#504

    [感谢 夜坂雅 提供此消息。]
    EDIT 9/12: 重写标题。

    #DHH #Neovim

    Telegram 原文

  4. En cherchant des infos sur les digraphs dans NeoVim, je tombe sur cette page avec un tableau qui explique la logique derrière ceuxèci. Je garde !

    Vim digraphs
    renenyffenegger.ch/notes/devel

    #NeoVim #Shaarli2Mastodon

  5. En cherchant des infos sur les digraphs dans NeoVim, je tombe sur cette page avec un tableau qui explique la logique derrière ceuxèci. Je garde !

    Vim digraphs
    renenyffenegger.ch/notes/devel

    #NeoVim #Shaarli2Mastodon

  6. En cherchant des infos sur les digraphs dans NeoVim, je tombe sur cette page avec un tableau qui explique la logique derrière ceuxèci. Je garde !

    Vim digraphs
    renenyffenegger.ch/notes/devel

    #NeoVim #Shaarli2Mastodon

  7. Switched back to Obsidian for a bit, but it felt slow so back in neovim. Turned out all I really needed to bridge the gap between the two experiences was to tweak my config a bit and install neotree:

    github.com/nvim-neo-tree/neo-t

    #pkm #neovim #nvim #Obsidian

  8. Switched back to Obsidian for a bit, but it felt slow so back in neovim. Turned out all I really needed to bridge the gap between the two experiences was to tweak my config a bit and install neotree:

    github.com/nvim-neo-tree/neo-t

    #pkm #neovim #nvim #Obsidian

  9. Switched back to Obsidian for a bit, but it felt slow so back in neovim. Turned out all I really needed to bridge the gap between the two experiences was to tweak my config a bit and install neotree:

    github.com/nvim-neo-tree/neo-t

    #pkm #neovim #nvim #Obsidian

  10. Switched back to Obsidian for a bit, but it felt slow so back in neovim. Turned out all I really needed to bridge the gap between the two experiences was to tweak my config a bit and install neotree:

    github.com/nvim-neo-tree/neo-t

    #pkm #neovim #nvim #Obsidian

  11. Switched back to Obsidian for a bit, but it felt slow so back in neovim. Turned out all I really needed to bridge the gap between the two experiences was to tweak my config a bit and install neotree:

    github.com/nvim-neo-tree/neo-t

  12. Update: I found this (macOS) utility for playing MIDI files from the command line and it works great with Lilypond/Neovim!

    ssb22.user.srcf.net/mwrhome/ma

    It's about a hundred lines of C, which means even if it's abandoned at some point I should be able to update it myself.

    The problem with a lot of similar programs is they use e.g., fluidsynth, when what I want is to play the file back over the IAC bus into Max/MSP, SuperCollider/etc. This lets me choose the starting point in the MIDI file and easily play it into IAC from my terminal!

    #Neovim #Lilypond #macOS #MIDI #Composer

  13. @tsvenson Check the #vimovember hashtag.

    My posts are summarize here:

    lazybea.rs/vimovember

    @jasper has done it too: jasper.tandy.is/doing-vimovemb

    @celfred has posted some on the fediverse but I dont know if he wrote them down somewhere.

    @loupbrun has done some posts too...

    Maybe other #vim / #neovim users too 🤷

  14. 22 Mappings

    # Visual

    # pasting over text normally overwrites your yank — this fixes it.
    keymap("v", "p", '"_dP', opts)

    # move visual blocks easily with J/K
    keymap("v", "J", ":m '>+1<CR>gv=gv", opts)
    keymap("v", "K", ":m '<-2<CR>gv=gv", opts)

    2/2

    #Vimovember #vim #neovim #editors

  15. Day 21 Autocmd

    I only have three autocmd to avoid some spelling:

    vim.cmd([[autocmd BufRead,BufEnter *.md syntax match H1Title /\v\d{8}T\d{6}/ contains=@NoSpell]])

    vim.cmd([[autocmd BufRead,BufEnter *.md syntax match NoURL /\vhttps?://\S+/ contains=@NoSpell]])

    vim.cmd([[autocmd BufRead,BufEnter .md syntax match NoWikiLink /\v[[.]]/ contains=@NoSpell]])

    I could probably try to use it, but autocmd can quickly mess up your files if you’re not cautious.

    #Vimovember #vim #neovim

  16. For day 18 and 19, about config and plugins i use mainly Lazy.nvim to install some.

    And my config merits a full post.

    Day 20 Replace in Files:

    On day 12, I showed how to replace in multiple files using a macro. But, you can do differently using :vimgrep and cdo / cfdo. Something like this:

    :vimgrep /old/ **/*.py
    :cfdo %s/old/new/g

    Don’t forget to preview first with :copen before doing big changes to your files.

    #Vimovember #vim #neovim #editors #shell #linux #bsd #opensource

  17. Day 17 Fold :

    The folds I find myself using are:

    zf{motion}
    zf3{ " to close 3 paragraphs before my cursor

    Or, with marks:

    zf'a " fold from the current line to the mark

    #Vimovember #vim #neovim

  18. Day 16 Tabs ⚙

    Tabs aren’t something I use. I know you can use gt, and Gt to go to the next/previous tab. I use actually that with #Tridactyl, the plugin for Firefox/Librewolf, that brings #Vim keybindings in your browser.

    #Vimovember #vim #neovim

  19. Day 15 Buffers ⚙️

    When I have a couple of buffers opened, I used to do :b [tab] to switch between them. Now, with Neovim and Telescope, I setup this:

    vim.keymap.set('n', '<leader>b', builtin.buffers, {})

    That opens a new floating window with all the buffers, and a preview.

    What I like to use to go to the latest buffer I used is <C-o>, and if you hit it again it will keep going to previous buffers, even if the files are not opened.

    #Vimovember #vim #neovim #editors

  20. Day 14 splits

    One useful thing is to be able to split them equally. Hit <Ctl-w> =, and that’s it.

    The other useful thing I opening a split with a specific height / width:

    :30vnew " Vertical split, 30 columns wide
    :10split " Horizontal split, 10 lines tall

    Great for preview panes or narrow sidebars.

    Also, one great thing is open file under the cursor in a new split

    Horizontal: Ctrl-w f
    Vertical: Ctrl-w F

    #Vimovember #vim #neovim #editors #opensource #FOSS #shell #linux #bsd

  21. Day 13 Marks ⚙️:

    Marks have some great features, but I found myself not using them often.

    We saw on Day 7, that you can substitute on a visual selection, you can actually
    do the same with marks in Ex commands:

    :'a,'b s/foo/bar/

    That will substitute foo by bar between marks `a` and `b`.

    Check the link in the thread for more tips about marks

    #Vimovember #vim #neovim #editors #opensuse #FOSS #terminals

  22. Dear #python :python: Community,

    I use #neovim, what’s the ideal setup for #lsp to include type checking these days? #ruff #pyright

  23. Even though it’s been many years of using , I feel like I always need a refresher with stuff.

    Let’s say you have installed, it’s in Mason and in your PATH, and code snippets/cmp are showing up as expected.

    Why would a definition like “Path” (from pathlib import Path) show up, but not something even more simple like “split” or “print”?

    🧐🤔