vim
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vim [2012/03/26 19:38] – javapimp | vim [2023/08/18 18:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Syntax Highlighting ====== | ||
+ | < | ||
+ | :syntax on | ||
+ | </ | ||
+ | |||
+ | This can also be added to '' | ||
+ | |||
====== Yank or delete between parentheses ====== | ====== Yank or delete between parentheses ====== | ||
===== Motion select ===== | ===== Motion select ===== | ||
Line 61: | Line 68: | ||
:s/^\/\// - C, C++, C#, Java, JavaScript | :s/^\/\// - C, C++, C#, Java, JavaScript | ||
: | : | ||
+ | </ | ||
+ | |||
+ | ====== Auto Indentation ====== | ||
+ | < | ||
+ | :set autoindent | ||
+ | :set cindent | ||
</ | </ | ||
Line 66: | Line 79: | ||
- Enter visual mode: '' | - Enter visual mode: '' | ||
- | - Select the lines to comment. | + | - Select the lines to indent. |
- ''>'' | - ''>'' | ||
- '' | - '' | ||
Line 76: | Line 89: | ||
- Move to the beginning of the word to replace. | - Move to the beginning of the word to replace. | ||
- '' | - '' | ||
+ | |||
+ | ====== Reload the current file from disk ====== | ||
+ | |||
+ | * Reload the current file: '': | ||
+ | * Reload the current file after it's been modified: '': | ||
+ | |||
+ | ====== Change Case ====== | ||
+ | |||
+ | * Change word to lowercase: '' | ||
+ | * Change word to uppercase: '' | ||
+ | * Toggle word case (aBBa -> AbbA): '' | ||
+ | |||
+ | |||
vim.1332790738.txt.gz · Last modified: 2023/08/18 18:15 (external edit)