Browse files

Add ftdetect file

It's no longer necessary to add anything to .vimrc
  • Loading branch information...
0 committed Apr 12, 2012
1 parent 6e7d7d0 commit 43e6ac41211ab798c72b744ab618d14df627742f
Showing with 4 additions and 9 deletions.
  1. +3 −9 README
  2. +1 −0 ftdetect/ucpp.vim
@@ -1,13 +1,7 @@
uC++ Syntax Highlighting for Vim
-To install:
-1. Use a runtime path manager (e.g. Pathogen), or manually copy syntax/ into
- ~/.vim/
-2. Add the following lines into your .vimrc
- au BufRead,BufNewFile *.ucpp set filetype=ucpp
- au BufRead,BufNewFile *.uh set filetype=ucpp
+To install, either use a runtime path manager (e.g. Pathogen), or manually copy
+the subdirectories into ~/.vim/
Now any file with the extension '.ucpp' or '.uh' will be highlighted for uC++
-keywords or predefined objects. Alternatively, you can modify the code above to
-recognize any filetype you decide.
+keywords or predefined objects.
@@ -0,0 +1 @@
+au BufRead,BufNewFile *.u{cpp,h} set filetype=ucpp

0 comments on commit 43e6ac4

Please sign in to comment.