Mrz 292012
 

Ein paar nützliche Dinge, die ich immer wieder suche, wenn es um meinen bevorzugten Text-Editor VIM geht.

Modeline

Modeline-Magic

'modeline' 'ml'		boolean	(Vim default: on (off for root),
				 Vi default: off)
			local to buffer

						*'modelines'* *'mls'*
'modelines' 'mls'	number	(default 5)
			global
			{not in Vi}
	If 'modeline' is on 'modelines' gives the number of lines that is
	checked for set commands.  If 'modeline' is off or 'modelines' is zero
	no lines are checked.  See |modeline|.
	NOTE: 'modeline' is set to the Vi default value when 'compatible' is
	set and to the Vim default value when 'compatible' is reset.

Unterschiedliche Unicode-Encodings

Editieren -> Starteinstellungen:
set fencs=ucs-bom,utf-16le,utf-16be,utf-8,latin

Drucken mit Zeilennummern

set number
set printoptions=number:y