3 ms·
You mean that you deleted it with dd? Can you show a before and after of what you're trying to accomplish, because it's very likely possible. I'm just not sure
by jdludlow 15y ago
You mean that you deleted it with dd? Can you show a before and after of what you're trying to accomplish, because it's very likely possible. I'm just not sure what you're trying to do.
- rhdoenges 15y agosay I have a line here ( | being my cursor) callFunction(); |// HEY THIS IS A REALLY LONG COMMENT From there, I hit D, which is the same as d$. I want to then paste it so I have something like // HEY THIS IS A REALLY LONG COMMENT callFunction(); But I want to do that without entering insert mode.
- weaksauce 15y agohow about remapping? nnoremap <leader>d DO<esc>p
- mct 15y agoTo break a single line into two lines on a whitespace boundary, one pattern I find myself using often is moving the cursor to the whitespace and hitting 'r<return>'. (The 'r' command replaces the character under the cursor with the next key typed, without going into insert mode.)