Re: [Vim-latex-devel] Alt mappings
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2003-01-07 02:16:25
|
On Mon, 6 Jan 2003, Benji Fisher wrote: > Carl Mueller wrote: > > About the Alt macros, how about the following? > > > > 1. As an option, the user can turn on the <Alt> mappings. > > (This was mentioned by others.) I think having an option g:Tex_UseMetaMappings (defaults to 0, i.e 'no') is a good thing... > > 2. As a default, use the <Insert> key for the <Alt> mappings. > > The <Insert> key isn't used for anything else, is it? > > It could be a right handed version of the "`" mappings. > > Besides the <Alt> mappings that I wrote, one could use the > > <Insert> key for mappings that control fonts, such as > > {\em ...} and so on. > > > The <Insert> key is used to toggle between Insert and Replace > modes. I almost never use Replace mode, and I often hit the <Insert> > key when I am aiming for the <Del> key, so I have :imap'ed it to <Nop>. > > In other words, it is not quite true that the <Insert> key is > unused, but it is pretty close. > Hmm... Lets see... What about moving away from "special" keys altogether and using ']l' ']b' ']c' etc in insert mode (as Luc suggests) and <M-[lbc]> in normal mode (or maybe even ']b' etc in normal mode as well)? This way people who want to use <M-c> etc for national characters can continue to do so... Ofcourse this makes the users of latex-suite learn yet another "leader" character... Maybe ']' can be reserved for beginning maps which change the text before them in some way... In the future, we could have more of such maps... Ofcourse, I have still not gotten around to creating a good way to let the end user over-ride the maps. Benji suggested that a section of texrc can have things like " Pressing <F5> will prompt you for which environment to insert. " Change <F5> to change the ``hotkey''. nmap <silent> <F5> <Plug>Tex_FastEnvironmentInsert etc. The user needs to change the lhs in these lines to customize... But texrc or the user's copy of texrc is sourced only once when latex-suite initializes, not for every BufEnter event... So that might not be a good place... Should we just document all the maps created by latex-suite in latex-suite.txt and then put "Read the docs about how to override mappings" somewhere in the install instructions? Luc, Mikolaj, Fabio any suggestions? The rest of us AFAIK do not use the meta key anyway... I just thought about this? Are things like ']b' etc going to cause the same kind of problems diacritics caused? Do strings like ']b' occur often in latex? Srinath |