News for hackers. Stuff that matters.
Re:Why, oh why, do those nutheads use vi? by wahnfrieden on Thursday February 02, 2012 @01:56PM (#3543974)
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>

There are no comments on this comment yet.