Re: [bug] Exiting insertion mode with C-c extremely slow when file extension is .sql
On Friday, March 3, 2017 at 8:13:47 AM UTC-5, Grégoire Verdier wrote: > 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 ? On top of what Jürgen said, you can change g:ftplugin_sql_omni_key so that it uses something other than . (There's also "g:omni_sql_no_default_maps" to avoid setting those maps entirely, but that might be overkill). -- -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [bug] Exiting insertion mode with C-c extremely slow when file extension is .sql
On Fri, Mar 3, 2017 at 9:23 AM, 'Jürgen Krämer' via vim_dev < vim_dev@googlegroups.com> 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 . You can see them with > > :verb imap > > When you press 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 R > iunmap 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 = '' 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [bug] Exiting insertion mode with C-c extremely slow when file extension is .sql
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 . You can see them with :verb imap When you press 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 R iunmap 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[bug] Exiting insertion mode with C-c extremely slow when file extension is .sql
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 ? -- -- 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 vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.