Aug 052010

Hey there,

here is a list of the most important commands for the goodlike texteditor „vim“ 😉

automatically wrap lines:

:set wrap ( „:set nowrap“ to turn wraping off)

Set the width of a line. In this example a line should have 80 character:

:set textwidth=80

If you want to paste something from the GUI, vim often inserts a lot of spaces and tabs. You can prevent this with entering this command before pasting the GUI-stuff:

:set paste

and after inersting the stuff you should disable pasting with:

:set nopaste

You can set the filetype of a file ( for syntax highlighting for example ) with:

:set filetype=java

You can toggle syntax highlighting with:

:set syntax=on and :set syntax=off

This list will be continued…

Have fun with vim!

Sorry, the comment form is closed at this time.