Skip to content

Instantly share code, notes, and snippets.

@atn34
Last active December 28, 2015 04:39
Show Gist options
  • Save atn34/7443743 to your computer and use it in GitHub Desktop.
Save atn34/7443743 to your computer and use it in GitHub Desktop.
Vim demo agenda
Starting out
============
$ vim -u NONE
:syntax on # minimal configuration so we're all on the same page
$ vimtutor
:h
Basics
======
the dot command (:h .)
- don't repeat yourself
undo (:h undo-commands)
- u
- <c-r>
completion (:h ins-completion)
- i_CTRL-N
- i_CTRL-P
modes
- normal (:h Normal-mode)
- insert (:h Insert-mode)
- visual (:h visual-mode)
- o gets you to other side of selection
More Advanced
=============
motions (:h {motion})
- :set incsearch
- {}
- fF tT ;,
- <c-o> <c-i> (:h jump-motions)
windows (:h open-window)
- CTRL-W_s
- CTRL-W_v
- CTRL-W_{h,j,k,l}
quickfix list (:h quickfix)
- :make
- :grep
- :copen :cclose :cnext :cprev
filtering (:h !)
- $ sudo apt-get install indent
tags (:h tags)
- $ sudo apt-get install exuberant-ctags
- <c-]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment