Hi,
I am not getting how to add a new filetype to vim. I am on windows and I am
using vim73.
I want to add a new filetype with extention .pn. For this I had done
following:
I went to vim installation directory i.e. vim73 and I edited filetype.vim. I
added following line
au BufNewFile,BufRead *.pn setf potion
in between augroup filetypedetect and augroup END
Then I opened my vim with a file with extension .pn.
I typed following command
:set filetype?
and got answer
filetype=
Am I doing any wrong?
Please help.
Thanks
Ansuman
--
View this message in context: http://vim.1045645.n5.nabble.com/Filetype-detection-on-vim-tp5709826.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
Friday, July 27, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment