On Jan 6, 2011, at 4:53 PM, statquant2 <[email protected]> wrote:
>
> 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 ?
>
>
What is indentexpr set to?
Is your indent file setting this value?
Are you sure there wasn't already a filetype of "q"?
Dave
--
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