Hello.

I'm using vim every day to work on RoR projects and JS, HTML, CSS.
VIM suits my needs, but its uncomfortable completion and some minor
bugs are making me nuts.
In details:

1. In HTML files I'm writing tags this way: first <> or </> then
moving cursor before > and typing a tag name.
The problem is VIM doesn't indent the line. Only after I'm stating to
edit new line (<CR> on current).

2. No HTML tags completion. Yes, I'm so lazy that I want tags
completion. Preferrably automatical :)

What I mean: you're typing <  , menu pops up with tags and you can
choose tag or continue typing.
If you've selected some tag then script should automatically close
current tag name (add >), add pair tag (if such) and indent the
inserted part.
If you've continued to type then script should try to do actions
described above if he knows this tag or take the tag name and use it
for pair.

A base for this could be autocomplpop
(http://www.vim.org/scripts/script.php?script_id=1879), but it has one
awful
peculiarity: in insert mode try to move around with arrow keys.

3. Ruby completion is the biggest problem: ruby may have !, = and ? in
the end of method and symbol names,
also @, @@ and $ at the begining of variables or symbols, but VIM
doesn't understand them by default.
A dirty hack with set iskeyword=!,?,$,@,48-57,_,192-255
adds another problem: after writing if !...@current_user
"!...@current_user" is added to completion list, which may be considered as bug,
especially if there are no more expressions with this variable in current buffer
and you want to add it again typing @current_<C-X C-N> will give you
empty matchlist.
I thought omni-completion for ruby will help me up, but it has exactly
the same problems: doesn't process
correctly @, @@, $, !, ? and = in identifier names.

4. And of course autocompletion. Autocompletion with pop up menu has
become a kind of a dream
from heaven for me. A usable autocompletion pop up currently doesn't
exists. Especially solving
the problems above. Plus I need it not only to complete from buffers, but also
from dictionaries (currently I'm using set l:complete.=',k/path/to/dictionary')
and for class hierarchies (I've got dictionary with them too) I need
completion to work in
thesaurus mode so typing ActionController:: will give me a list of
ActionController's internal classes.
(ActionController::Assertions, ActionController::Base, etc...).

Did someone have similar issues or found some solutions?
I would be grateful for any ideas on this problems.

Regards, Daniel.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to