Excerpts from Vladimir Mitrovic's message of Tue Jun 08 01:25:59 +0200 2010: > > Hello everyone. > > I'm still pretty new to Vim, and some things are just not clear to me. I > Googled, I RTFMed but did not find solution to my problems. So I post here. > :) > > 1. I want to use Vim for coding purposes. I mainly program in Python, but > recently I started learning haXe. That's where I got into troubles. I > downloaded the haxe.vim syntax file and put it in my ~/.vim/plugin/ > directory. Since global plugins load at startup (I made sure it was the case > by adding echo "Hello from ~/.vim/plugin/haxe.vim" at the end of haxe.vim > :)), everything looks great when I edit a .hx file with Vim (:set syntax > returns syntax=haxe). But when I switch buffers (either by :next or by using > MinuBufExplorer), syntax coloring is lost (:set syntax returns syntax=). > Then what I do is I type :source ~/.vim/plugin/haxe.vim and everything is > alright again. > So my first question is: WHY this happens and HOW do I prevent it from > happening?
There is no haxe filetype. If you're on linux get vim-addon-manager and install vim-haxe. Then you're done. You'll get a lot of other stuff (some HaXe completion, compiler mappings etc for free) github.com/MarcWeber/vim-addon-manager or /vim-haxe Everything should just work - at least it does for me. > 2. Since there are different tab spacing conventions for different > languages, I want to set it according to my preferences. It does not only depend on language but also on project. Best thing you can do is create a directory local .vim file which override these settings and source it automatically. If you still have trouble contact me on irc Marc Weber -- 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
