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. > > However, if I open the file like this `vim -u NONE test.sql` I don't have any > problem but I'm still reporting this because I've experienced it on different > computers and also on a fresh linux install. > > Is the problem necessarily coming from a plugin or setting ? >
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. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) -- -- 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.
