Skip to content

Instantly share code, notes, and snippets.

@JackieKu
Created November 5, 2010 05:33
Show Gist options
  • Save JackieKu/663689 to your computer and use it in GitHub Desktop.
Save JackieKu/663689 to your computer and use it in GitHub Desktop.

Multiple files

  • :e# C-^

    toggle between two buffers

  • :bn :bp :br :bf :bl

    walk through multiple buffers

  • :bd

    delete the buffer from list

  • :n :prev :rew :first :last

    walk through multiple files in arguments list

  • :e file

    edit another file

  • :ls :args

    show the buffer/arguments list

Visual mode

  • v V C-v

    enter visual, linewise visual, blockwise visual mode

  • {Visual} y d p

    yank (copy), cut, paste

  • {Visual} < > ~

    shift left (indent), shift right, delete, switch case

Split windows

  • C-ws C-wv

    horizontal/vertical split windows

  • C-w_ C-w= C-w1_

    maximize, equal size, minimize the window

Auto completion

  • C-n

    complete to next word

  • C-p

    complete to previous word

Spelling

  • :set[local] spell

    turns on spelling check

  • z=

    suggestions

Mouse

  • :set mouse=a

    turns on mouse (can be used in putty!)

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