Advanced selecting and copying
| Key (memorize) | Description (memorize) |
|---|---|
| ma | create mark named a |
| `a | jump to mark named a |
| yy | copy current line |
| V | select current line |
| y/a | copy up to a |
| gv | select what you last had selected |
Advanced inserting
| Key (memorize) | Description (memorize) |
|---|---|
| o | insert (after current line) |
| I | insert (beginning of current line) |
| O | insert (above current line) |
| :r !ls | insert ls output (at current point) |
| :r f.txt | insert f.txt (at current point) |
Macros
| Question (memorize) | Answer (memorize) |
|---|---|
| qa | start recording macro (named a) |
| q | stop recording macro |
| @a | execute macro (named a) |
| @@ | rerun last macro |
Helpful config file (.vimrc) settings
| Question (memorize) | Answer (memorize) |
|---|---|
| set incsearch | incremental searching |
| set ignorecase | case insensitive searching |
| set g:netrw_keepdir=0 | set current dir, when viewing a dir |
| :nmap ; : | make ; key behave like : |
The last one is useful because it saves you from having to hold down the shift key ((while typing a command, such as :w))
Misc II
| Question (memorize) | Answer (memorize) |
|---|---|
| U | undo all changes to current line |
| :h | show help |
| :h set | help for the set command |
| irc.openprojects.net #vim | vim irc channel |
| set g:netrw_keepdir=0 | set current dir, when visiting a dir |
| bufexplorer | Plugin to helps navigate buffers |
| ^p (while inserting) | autocompletion |
| :abbreviate h hello | abbreviate h as hello |
Packages
| Package (memorize) | Description (memorize) |
|---|---|
| netrw | edit files remotely |
| vimshell | run shells within vim (unix-only) |
| :Nread scp://you@yourserver.com/ | view remote directory |
this section is inserted from the Vim page
Pages
♦ Vim
♦ Vim 2
♦ Vim 3
♦ Vim 4 - has helpful config settings
Add a section to this page!
- Click this button to contribute to this page (by adding a section here).♦
Feel free to experiment. Your edits won't immediately show up to everyone.



working...