Penguin

Differences between version 8 and predecessor to the previous major change of .vimrc.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 8 Last edited on Thursday, November 4, 2004 11:33:52 am by JohnMcPherson Revert
Older page: version 6 Last edited on Sunday, April 25, 2004 5:27:16 am by NoXy Revert
@@ -10,4 +10,13 @@
  " Vim 5+ comes with syntax highlighting for many languages, enable it if available 
  if has("syntax") 
  syntax on 
  endif 
+ set background=dark " better syntax colours for black terminals  
+ set encoding=utf-8 " you really should be using utf-8 now  
+ set termencoding=utf-8 " ditto  
+ set fileencoding= " defaults to latin1 otherwise, and converts bytes on read  
+ set fileencodings= " defaults to "latin1,utf-8" otherwise...  
+  
+Newer version of Vim (6+ perhaps) can automatically detect the correct syntax highlighting and indenting scheme that should be used for a file. Using the newer version of this (previously only file extensions were consulted) is a simple as putting the following command in your [.vimrc]:  
+  
+ filetype indent on " Newer indent features