>
> Hi,
>
> in the *very* near future I will to hack a lot XML/XSLT/XSL/XMP...
> stuff at work and I will do it with vim.
> Unfortunately I am not allowed to install any binary
> executable (with the exeption of the vim package, which is
> already there) on the machine. I am allowed to install "text
> files" (read: vim scripts and setups) in my $HOME.
>
> Due to the lack of time I cannot go deep into "search and explore"-
> mode to find THE working setup for "the best way" to edit
> xml-like stuff with vim.
>
> So I would be very happy if I could get some hints here to
> speed things up a little...
>
> Are there any things to prefer for such a task and worth to
> check?
>
> Thank you very much in advance for any<hint> ;)
> Have a nice weekend!
> Best regards,
> mcc
>
One plugin which I find useful for HTML / XHTML / XML and similar
languages is the CloseTag plugin
http://www.vim.org/scripts/script.php?script_id=13 even if its
functionality is now available, though with somewhat more keystrokes,
from Vim's omnicompletion functionality. I would download it into
~/.vim/macros/ (on Unix) or ~/vimfiles/macros/ (on Windows) and then
invoke it by means of
au FileType html,xml runtime macros/closetag.vim
in your vimrc; if your national keyboard has no handy Ctrl-_ you may add
something like
map <F7> <C-_>
imap <F7> <C-_>
(without the -nore- part because we _want_ the remapping to happen) to
get the same functionality on an easily-found key.
Otherwise IMHO Vim (when compiled with Big or Huge features) comes with
quite good support out of the box -- but don't forget to enable (if you
didn't already) filetype detection, filetype plugins and the matchit
plugin, e.g. by having the lines
runtime vimrc_example.vim
runtime macros/matchit.vim
somewhere in your vimrc. (If you don't know whether matchit is enabled,
:verbose map %
will tell you.)
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
113. You are asked about a bus schedule, you wonder if it is 16 or 32 bits.
--
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
No comments:
Post a Comment