LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ftplugins in vim (https://www.linuxquestions.org/questions/linux-software-2/ftplugins-in-vim-787560/)

Gaidal 02-07-2010 07:26 AM

ftplugins in vim
 
I've been using vim for about two months and soon fell totally in love with it and wouldn't want to code with anything else. I don't understand the complaints about having to learn it when you get so much from it. Knowing vim lets you use vimperator for firefox too.

However, I would like to use some plugins and can't get them to work. Since I do lots of html/css I tried xmledit on vim.org, put xml.vim in ~/.vim/ftplugin and added filetype plugin on to my .vimrc. If I create an .xml file the script loads, is visible under :scriptnames and generates its documentation on first run, and then does absolutely nothing. AFAIK it's supposed to close tags automatically, but I haven't noticed any difference whatsoever.
I have tried this on more than one system so I'm obviously missing something. I wonder what it could be?

Gaidal 02-08-2010 01:44 AM

Solved:

The latest version of xmledit on vim.org hadn't been up to date. When I checked again there was a version for vim 7 which worked out of the box.


All times are GMT -5. The time now is 11:17 AM.