by tumult · 15y ago · 0 comments
What? How is that useful?
'das' deletes a sentence under the cursor. 'dap' deletes a paragraph under the cursor.
'da{' deletes the block of text that's currently surrounded by braces. 'ci(' deletes the inner content that's surrounded by parentheses and puts you in insert mode. 'gqap' reformats the contents of the paragraph under the cursor ('gqip' will end up leaving your cursor at the beginning of the paragraph instead of the end.)
http://stackoverflow.com/questions/1218390/what-is-your-most...
Then again, the cheat sheet leaves a lot out ... but it's the fundamental tool for a newcomer regardless... ideally, they should become intimate with ":help".
This gives you text objects - and they are fantastically useful. It also gives you the saner window functions of 'C-w hjkl'
One question, how well do these work with say Paredit mode? Paredit really hates it if you change a parenthesis via some other function. If they get unbalanced paredit has a seizure.