Hello everybody, and happy new year.
I have a question : I am using a soft call kdb which usually use .q file
extension.
This type is not recognized by vim, so I decided to do my own indentation.
Here is what I did :
1. In ~/.vim/ftdetect I created a q.vim file :
autocmd BufNewFile,BufRead *.q set ft=q
autocmd BufNewFile,BufRead *.Q set ft=q
=> I think this is working because when I open test.q and type :set
filetype, I get filetype=q as an answer... so now vim knows what a .q file
is
2. in ~/.vim/indent I created a q.vim file :
if exists("b:did_q_indent")
finish
endif
let b:did_q_indent= 1
=> The problem is that it is not working at all, I expect to see no
indentation at all, but clearly this is not working.
Could you help me by any chance ?
Cheers
--
View this message in context:
http://vim.1045645.n5.nabble.com/Designing-own-indentation-for-my-own-filetype-tp3331180p3331180.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