Hi, I have a ftdetect script defined like this:

au BufNewFile,BufRead *.vtobu           setf vimtobu

augroup VimTobu
    au!
    au BufWritePost vimtobu call VimTobu("save")
    au BufWritePost vimtobu echo 'SAVED!'
augroup END


function! VimTobu(...)
    :pyfile ~/.vim/python/vtobu.py
endfu


When I got to a vtobu file, filetype is set correctly, :au vimtobu does
show the autocommands correctly as well, but writing the buffer does not
run the function, and 'SAVED!' is not echoed. What could it be?

Thanks!  -ak

--
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

Reply via email to