nerdtree/plugin
Ingo Karkat b8cab9bae2 Set filetype unconditionally and after defining mappings.
Because NERD_Tree sets the filetype in its buffer, it's tempting to hook into the FileType event in order to customize it. Unfortunately, the buffer-local mappings are only defined _after_ setting the filetype, so one cannot un-/redefine them via this mechanism. (I know there are config variables and an API for that, but one may have other unforeseen uses.)
Therefore, swap the order and set the filetype last. Also, use :setlocal filetype= instead of :setfiletype. In the (remote) chance that a custom filetype detection mistakenly sets a filetype for the NERD_Tree buffer, the :setfiletype would be without effect, but we want to force the filetype (for the special syntax) here.
2013-01-31 15:53:44 +01:00
..
nerdtree Set filetype unconditionally and after defining mappings. 2013-01-31 15:53:44 +01:00
NERD_tree.vim move a couple of functions into NERDTreeCreator 2013-01-09 09:51:28 +00:00