Vim: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 26: | Line 26: | ||
|C-x | |C-x | ||
|Decrement the value | |Decrement the value | ||
|- | |||
|ma | |||
|Mark the current line and column in bookmark 'a' | |||
|- | |||
|'a | |||
|Jump to mark 'a' | |||
|} | |} | ||
== Variables == | == Variables == | ||
{| class="wikitable" | {| class="wikitable" | ||
! | !Variable | ||
! | !Comment | ||
|- | |- | ||
|tabstop/ts | |tabstop/ts | ||
|Number of spaces that a <Tab> in the file counts for | |Number of spaces that a <Tab> in the file counts for | ||
|- | |- | ||
|shiftwidth | |shiftwidth/sw | ||
|Number of columns inserted for indenting | |Number of columns inserted for indenting | ||
|- | |- | ||
| | |softtabstop/sts | ||
|Number of columns inserted by <Tab> in insert mode | |Number of columns inserted by <Tab> in insert mode | ||
|- | |- | ||
|expandtab | |expandtab/et | ||
|When set, <Tab> inserts the <softabstop> number of space | |When set, <Tab> inserts the <softabstop> number of space | ||
|- | |- | ||
|noexpandtab | |noexpandtab/noet | ||
|When set, <Tab> inserts the <softabstop> number of columns using tabulations and then spaces if <tabstop> is less than <softabstop> and | |When set, <Tab> inserts the <softabstop> number of columns using tabulations and then spaces if <tabstop> is less than <softabstop> and only tabulation if <tabstop> is equal to <softtabstop> | ||
|- | |- | ||
|smarttab | |smarttab | ||
| Line 53: | Line 59: | ||
== References == | == References == | ||
<references /> | |||
Latest revision as of 01:34, 24 July 2020
vim is a text editor.
Commands
| Command | Comment |
|---|---|
| :bd | Leave the current buffer[1] |
| gf | Open file under the cursor |
| C-6 | Open the last open buffer |
| C-w C-r | Rotate in a 'column' or 'row' of split windows[2] |
| C-l | Redraw the screen |
| C-a | Increment the value |
| C-x | Decrement the value |
| ma | Mark the current line and column in bookmark 'a' |
| 'a | Jump to mark 'a' |
Variables
| Variable | Comment |
|---|---|
| tabstop/ts | Number of spaces that a <Tab> in the file counts for |
| shiftwidth/sw | Number of columns inserted for indenting |
| softtabstop/sts | Number of columns inserted by <Tab> in insert mode |
| expandtab/et | When set, <Tab> inserts the <softabstop> number of space |
| noexpandtab/noet | When set, <Tab> inserts the <softabstop> number of columns using tabulations and then spaces if <tabstop> is less than <softabstop> and only tabulation if <tabstop> is equal to <softtabstop> |
| smarttab |