Line text-object

3 Points

Romain Lafourcade Romain Lafourcade

2 years ago

These text-objects allow you to operate directly on the current line.

Example: dil, yal, etc.

" excludes newline
xnoremap il g_o0
onoremap il :<C-u>normal vil<CR>

" includes newline
xnoremap al $o0
onoremap al :<C-u>normal val<CR>

Martínez Ortiz Saúl Axel

Martínez Ortiz Saúl Axel 8 months ago

Very easy and useful