Skip to content

Instantly share code, notes, and snippets.

@stefanooldeman
Created May 11, 2011 10:58
Show Gist options
  • Save stefanooldeman/966280 to your computer and use it in GitHub Desktop.
Save stefanooldeman/966280 to your computer and use it in GitHub Desktop.
#1 out a series of VIM tips on copy/cut and paste buffers

Action: Copy Earl Grey before pickwick and remove the comma after it.

  • Used Keys:
    1. Press v
    2. Move the cursor to end position
    3. Press d
    4. Move to cursor on the comma
    5. Press x
    6. Move cursor to the p from pickwick
    7. Press P
  • hiccups: With x in step 5 the comma is placed in the buffer.
  • Solution:

Text:

I drink pickwick, Earl Grey (Tea Blend).

What i get:

I drink ,pickwick (Tea Blend).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment