On Fri, Jul 19, 2013 at 02:42:17PM -0700, Charles Smith wrote:
> I have these commands in my ~/.vim/filetypes.vim file:
> function DetectFind()
> let myfn = "/home/cts/nodes/vim/".expand ("%:t").".vim"
> execute "source ".myfn
> endfunction
> au BufNewFile,BufRead /home/cts/nodes/f0/test/find/* call DetectFind()
> And it works fine when I start up vim - if there's a vim file with the same root as the file I'm editing, it'll colorize it.
> The problem is, if I switch buffers and come back, it doesn't colorize - I suspect that DetectFind() isn't being invoked again.
> I've looked at all kinds of things, did_filetype, my own did_* flags, clearing autocmds, verbose mode, etc. etc.
> Any help will be appreciated
looks like you need BufEnter...
--
_|_ _ __|_|_ ._ o|
|_(_)(_)|_| ||_)||<
|
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Friday, July 19, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment