Penguin

Differences between version 9 and predecessor to the previous major change of VimNotes.

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

Newer page: version 9 Last edited on Friday, December 22, 2006 12:23:35 pm by BenStaz Revert
Older page: version 8 Last edited on Wednesday, November 29, 2006 1:49:39 pm by IanMcDonald Revert
@@ -11,13 +11,37 @@
 " Enable 256 colors 
 set t_Co=256 
 set t_AB=^[[48;5;%dm 
 set t_AF=^[[38;5;%dm 
-  
 </pre> 
+  
 Note that the ^[ should be a literal escape character. 
  
 Most vim colour schemes will need to be customised a little to look decent in this mode although some such as xterm16 are designed for it. 
+  
+  
+You can automatically enable syntax highlighting when starting a new vim text. vim is smart and can automatically adjust the highlighting by looking at the extension of the file. For example, ''vim test.py'' will automatically have python syntax highlighting.  
+  
+If you are already in a document and wish to enable syntax highlighting, then use this command.  
+  
+*:set filetype=<language>  
+  
+eg: for python highlighting:  
+  
+*:set filetype=python  
+  
+or bash Highlighting:  
+  
+*:set filetype=sh  
+  
+What syntax highlighting language is currently being used?  
+  
+*:set filetype  
+  
+  
+  
+  
+  
  
 --KurtGaastra 
  
 !!Compiling