Differences between revisions 18 and 19
Revision 18 as of 2009-03-16 03:30:26
Size: 1704
Editor: anonymous
Comment: converted to 1.6 markup
Revision 19 as of 2009-12-20 17:11:08
Size: 1727
Comment: added link to italian translation
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
||<tablestyle="width: 100%;" style="border: 0px hidden">~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: [[fr/vim|Français]]-~||<style="text-align: right;border: 0px hidden"> (!) [[/Discussion|Discussion]]|| ||<tablestyle="width: 100%;" style="border: 0px hidden">~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: [[fr/vim|Français]] - [[it/vim|Italiano]] -~||<style="text-align: right;border: 0px hidden"> (!) [[/Discussion|Discussion]]||

Translation(s): Français - Italiano

(!) ?Discussion


Vim is a full-featured editor. It is basically a clone of vi with a lot of features.

Vim is a modal editor: in different modes of vim, the same keystroke is interpreted differently.

Small tips to survive in Vim

To insert text (and be in the insert mode): press 'i' then edit your text. To come back to the command mode press "ESC".

To save text (in command mode): press ':w'

To quit vim (in command mode): press ':q'

To quit vim without saving (in command mode): press ':q!'

To delete the line where the cursor is (in command mode): press 'dd'

  • {i} If you want to learn more try the command 'vimtutor'. For help type ':help' or press 'F1'.

Syntax highlighting

Vim supports syntax highlighting. To activate it open up

/etc/vim/vimrc

and uncomment the line

" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
syntax on

Other text editors

You can use a GUI version called gvim.

If you don't know anything about vi, it is better to use nano.

See Also