How do I prepend text to every selected line even with uneven indentation?
:'<,'>normal! I//
Visual Block insert (I.
66 results for "block insert I"
:'<,'>normal! I//
Visual Block insert (I.
dap / dip
The dap and dip commands use Vim's paragraph text objects to delete an entire block of contiguous text in a single motion.
editing #editing #text-objects #normal-mode #delete #motions
:0put
The :put Ex command inserts register contents as a new line below the specified line number.
:'<,'>normal A;
The :normal command executes normal-mode keystrokes on every line in a range.
command-line #command-line #ex-commands #editing #normal-mode #batch-editing
:.!{cmd}
:.
set statusline=%{MyCustomFunc()}
How it works Vim's statusline supports the %{expr} syntax which evaluates a Vimscript expression and displays the result.