On Fri, Mar 3, 2017 at 9:23 AM, 'Jürgen Krämer' via vim_dev <
[email protected]> wrote:

>
> Hi,
>
> Grégoire Verdier schrieb am 03.03.2017 um 13:32:
> > Hi !
> > I'm using C-c instead of Esc and I've recently faced a problem when
> editing sql files.
> >
> > Whenever I press C-c to exit the insertion mode, it takes at least 2 or
> 3 seconds.
> >
> ...
>


> the standard SQL filetype plugin defines some insert mode mappings that
> start with <C-C>. You can see them with
>
>   :verb imap <C-C>
>
> When you press <C-C> Vim waits for another key press in case you wanted
> to enter one of those mappings. If the 'timeout' option is set Vim will
> stop waiting for another key press after 'timeoutlen' milliseconds.
>
> If you don't use those mappings you can undefine them with
>
>   iunmap <C-C>R
>   iunmap <C-C>L
>   ...
>
> in a ~/.vim/after/ftplugin/sql.vim file.
>
>
Another option is to choose a key other than CTRL-C.

" Key to trigger SQL completion
if !exists('g:ftplugin_sql_omni_key')
    let g:ftplugin_sql_omni_key = '<C-C>'
endif


So, in your .vimrc, choose a different key.  Problem is, Vim uses most of
them.

HTH,
David

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" 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.

Raspunde prin e-mail lui