Last active
December 28, 2015 04:39
-
-
Save atn34/7443743 to your computer and use it in GitHub Desktop.
Vim demo agenda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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