Skip to content

Instantly share code, notes, and snippets.

View awoodbeck's full-sized avatar
💭
I may be slow to respond.

Adam Woodbeck awoodbeck

💭
I may be slow to respond.
View GitHub Profile
@awoodbeck
awoodbeck / grok_vi.mdown
Last active November 13, 2017 12:25 — forked from nifl/grok_vi.mdown
Your problem with Vim is that you don't grok vi.

Grok vi

Answer by Jim Dennis on Stack Overflow question

http://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118

Your problem with Vim is that you don't grok vi.

You mention cutting with yy and complain that you almost never want to cut whole lines. In fact programmers, editing source code, very often want to work on whole lines, ranges of lines and blocks of code. However, yy is only one of many way to yank text into the anonymous copy buffer (or "register" as it's called in vi).