News for hackers. Stuff that matters.
Re:Why, oh why, do those nutheads use vi? by weaksauce on Thursday February 02, 2012 @06:40PM (#3545089)
you can always map <leader>y to yank line except for end.

Mapping the leader to , and it's even nicer. then all you need to do is ,y and you get the line in fragment mode.

nnoremap <leader>y 0y$

or if you want just first non whitespace char you could do an uppercase y for the leader command. swap the upper and lower to make it how you want. seems like this would be a more useful command to have:

nnoremap <leader>Y ^y$

edit: saw that you found a workaround by pasting in insert mode. ctrl-r" any other ways to paste in insert mode?

There are no comments on this comment yet.