Vim: Difference between revisions

From Wiki :-)
Jump to navigation Jump to search
No edit summary
Line 26: Line 26:
|C-x
|C-x
|Decrement the value
|Decrement the value
|}
== Variables ==
{| class="wikitable"
!
!
|-
|tabstop/ts
|Number of spaces that a <Tab> in the file counts for.
|-
|shiftwidth
|Number of columns inserted for indenting.
|-
|softabstop
|Number of columns inserted by <Tab> in insert mode.
|-
|expandtab
|When set, <Tab> inserts the <softabstop> number of space
|-
|noexpandtab
|When set, <Tab> inserts the <softabstop> number of columns using tabulations and then spaces if <tabstop> is less than <softabstop> and
|-
|smarttab
|
|}
|}


== References ==
== References ==

Revision as of 05:30, 6 June 2018

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

Variables

tabstop/ts Number of spaces that a <Tab> in the file counts for.
shiftwidth Number of columns inserted for indenting.
softabstop Number of columns inserted by <Tab> in insert mode.
expandtab When set, <Tab> inserts the <softabstop> number of space
noexpandtab When set, <Tab> inserts the <softabstop> number of columns using tabulations and then spaces if <tabstop> is less than <softabstop> and
smarttab

References