3 ms·
Put this into your vimrc to make lines behave like they're a text-object. Then to yank a line without the carraige-return, it's just yil or yal (yank in/a line)
by wahnfrieden 15y ago
Put this into your vimrc to make lines behave like they're a text-object. Then to yank a line without the carraige-return, it's just yil or yal (yank in/a line)
vnoremap <silent> al :<c-u>norm!0v$h<cr>
vnoremap <silent> il :<c-u>norm!^vg_<cr>
onoremap <silent> al :norm val<cr>
onoremap <silent> il :norm vil<cr>