On 07/03/09 18:52, naquad wrote: > 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).
I use the Closetags plugin from http://vim.sourceforge.net/. With it installed, Ctrl-_ will add, at the cursor in Insert mode or immediately after the cursor in Normal mode, the closing tag for the latest opened tag. It will also give an error message if there appears to be a mistake in how tags have been opened and closed before the cursor. > > 2. No HTML tags completion. Yes, I'm so lazy that I want tags > completion. Preferrably automatical :) [...] Have you tried omnicompletion? See |i_CTRL-X_CTRL-O| (Vim 7 only). > 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. [...] See above. Even when the filetype-plugin doesn't define an autocomplete function, you can use "syntax completion", by dropping the attached script into ~/.vim/after/plugin (on Unix/Linux) or ~/vimfiles/after/plugin (on Windows). (Warning: That plugin assumes, and doesn't check, that you are in 'nocompatible' mode. If you aren't, or not always, remove all continuation lines [lines whose first nonblank is a backslash] by joining them to the previous line.) Best regards, Tony. -- Optimization hinders evolution. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
syntaxcomplete.vim
Description: application/octetstream
