Hi,

In my ~/.vimrc setup I set the following function and autocmd

*function! GuiSave()*
*   if has('gui_running')   *
*      if empty(bufname(''))*
*         browse confirm write*
*     else*
*         confirm write*
*      endif*
*   endif*
*endfunction*

*:vnoremap <silent> <C-s> :call GuiSave()<CR>*
*:nnoremap <silent> <C-s> :call GuiSave()<CR>*
*:inoremap <silent> <C-s> <C-O>:call GuiSave()<CR>*

But when I have to edit some HTML file, after typing each word gvim returns

*E764: option 'omnifunc' is not set*

or when I press *C-s* sometimes gvim prints the call to *GuiSave()*, for
example

*<h5>:call GuiSave()*

which is quiet annoying.
Inserting the autocmd line

*autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags*

does not solve the problem
What is the right way to solve this issue ? Honestly I am not interested in
autocompletion at all.

Regards.
s.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to