AndreasNasman / .config

My dot-files for various systems.
1 stars 0 forks source link

Ask on Neovim forum about `vim.cmd.normal` command #34

Closed AndreasNasman closed 1 year ago

AndreasNasman commented 1 year ago

This command

set("v", ".", ':normal .<CR>', { desc = "Repeat the dot command over visual selection" })

doesn't seem possible to write with vim.cmd('normal .'), vim.cmd.normal('.'), or similar as a recursive loop seems to establish. It would be nice to know why by asking on the Neovim repo.

AndreasNasman commented 1 year ago

Reading the LazyVim documentation it seems quite standard to use <cmd>foo<cr> syntax.