Skip to main content

New answers tagged

1 vote

Why do text objects move the cursor to the end in Visual mode, but in the beginning in Operator-pending mode?

This may help explain things, but I don't think it's definitive: After applying the operator the cursor is mostly left at the start of the text that was operated upon. For example, "yfe" ...
D. Ben Knoble's user avatar
  • 26.6k
0 votes

Vim to drag current selected multi lines up

I would do: vim.api.nvim_set_keymap('v', 'I', ":move '<-2<CR>", { noremap = true, silent = true }) The x flag make the mapping only working in Visual mode. If you select the text ...
Vivian De Smedt's user avatar

Top 50 recent answers are included