Loading ...
Sorry, an error occurred while loading the content.

Re: HTML omnicomplete eats CSS property names

Expand Messages
  • Christian Brabandt
    Hi David! ... I have CC ed the author of the htmlcomplete.vim script file, which is responsible for omnicompletion of html files. You ll find his contact data
    Message 1 of 2 , Aug 5, 2012
    • 0 Attachment
      Hi David!

      On Sa, 28 Jul 2012, David Barnett wrote:

      > Hi,
      >
      > I noticed an issue with omnicomplete in vim 7.3.617. If I open vim with
      > vim foo.html
      > and then type
      > <div style="display:<C-X><C-O>
      > then the "display:" part disappears. So if I select "inline" from the dropdown, I'm left with
      > <div style="inline
      >
      > If I type a <space> immediately before <C-X><C-O> then everything works as intended.

      I have CC'ed the author of the htmlcomplete.vim script file, which is
      responsible for omnicompletion of html files. You'll find his contact
      data in the first lines of that script.

      Your issue seems to be fixed by this patch:

      --- htmlcomplete.vim 2012-08-05 14:56:32.363052202 +0200
      +++ htmlcomplete.vim.new 2012-08-05 14:56:22.531003476 +0200
      @@ -10,7 +10,7 @@
      let start = col('.') - 1
      let curline = line('.')
      let compl_begin = col('.') - 2
      - while start >= 0 && line[start - 1] =~ '\(\k\|[!:.-]\)'
      + while start >= 0 && line[start - 1] =~ '\(\k\|[!.-]\)'
      let start -= 1
      endwhile
      " Handling of entities {{{

      regards,
      Christian

      --
      You received this message from the "vim_dev" 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
    Your message has been successfully submitted and would be delivered to recipients shortly.