On 11/25/2010 11:30 PM, David Lam wrote:
On Thu, Nov 25, 2010 at 5:06 AM, Tim Chase<[email protected]> wrote:
:au InsertEnter *.xquery :set isk+=-
:au InsertLeave *.xquery :set isk-=-
It doesn't catch the edge-case if you hit ctrl+C in insert-mode
cool! works great
i guess i can just 'imap<C-c> <ESC>' to make it still work for ^C,
hopefully that dosent have side effects for other vimscripts
Given that i_CTRL-C has meaning to leave insert-mode while
preventing abbreviation-expansion
:help i_CTRL_C
it's one of those things it's helpful to have around if you know
it and use it (or you're working on a plugin for the public).
Slightly less breaking might be something like
:inoremap <c-c> <c-c>:set isk-=-<cr>
to intercept the ^C attempt and have it also pull out the "-"
-tim
--
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