Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rewrote the readme & filetype.vim

  • Loading branch information...
commit cb8ba5a38c906ed7cba67655522a1217866c7e00 1 parent 70f75bf
@inky authored
Showing with 8 additions and 9 deletions.
  1. +5 −6 vim/README.markdown
  2. +3 −3 vim/filetype.vim
View
11 vim/README.markdown
@@ -9,12 +9,11 @@ This will extend HTML syntax highlighting for files with the extension
Installation
------------
-1. Copy the [`syntax/tumblr.vim`][syntaxfile] file to `~/.vim/syntax/tumblr.vim`
+Get the syntax file:
-2. Copy the [`filetype.vim`][filetypefile] file to the `~/.vim` folder.
- If this file already exists, just append the three lines beginning with
- `augroup tumblr`.
+ cd ~/.vim/syntax/
+ wget http://github.com/inky/tumblr/raw/master/vim/syntax/tumblr.vim
+Add the following line to `~/.vim/filetype.vim`:
-[syntaxfile]: http://github.com/inky/tumblr/blob/master/vim/syntax/tumblr.vim
-[filetypefile]: http://github.com/inky/tumblr/blob/master/vim/filetype.vim
+ au BufRead,BufNewFile *.tumblr.html setfiletype tumblr
View
6 vim/filetype.vim
@@ -2,6 +2,6 @@ if exists("did_load_filetypes")
finish
endif
-augroup tumblr
- au! BufRead,BufNewFile *.tumblr.html setfiletype tumblr
-augroup END
+runtime! ftdetect/*.vim
+
+au! BufRead,BufNewFile *.tumblr.html setfiletype tumblr
Please sign in to comment.
Something went wrong with that request. Please try again.