On 2 oct, 22:17, ZyX <[email protected]> wrote: > Ответ на сообщение «Re: Mapping ` to , in visual mode», > присланное в 00:03:12 03 октября 2010, Воскресенье. > Отправитель: alexandre krispin: > > > If you don't use the plugin latexsuite, could you tell me how you > > would map ` to , with virtual mode ? > > If I am not mistaking, that> I use latexsuite in Vim. When I want to select a > block of text in > > visual mode in order to emphasize the text, I select it, and then > > press ` and em. > > Since I have a french keyboard (azerty), this is quit painful if I > > have to use it many times. For this reason I have tried to map the ` > > to the , key but without success. > > stands for the mapping `,' to «`», not the opposite (you need to press `,' > instead of «`», do you?). So, you need to exchange arguments: > vmap <silent> , ` > As «`» itself is mapped by latexsuite to ``:<C-u>call ExecMap('`', 'v')<CR>'', > so you may want to replace it with more strict > vnoremap <silent> , :<C-u>call ExecMap('`', 'v')<CR> > , but this is not required: it is just me who tries to omit using `map' > without > `nore' whenever it is possible, no matter what it does with readability. > > Текст сообщения: > > > On 2 oct, 20:44, "Israel Chauca F." <[email protected]> wrote: > > > On Oct 2, 2010, at 11:35 AM, alexandre krispin wrote: > > > > Hello, > > > > > I use latexsuite in Vim. When I want to select a block of text in > > > > visual mode in order to emphasize the text, I select it, and then > > > > press ` and em. > > > > Since I have a french keyboard (azerty), this is quit painful if I > > > > have to use it many times. For this reason I have tried to map the ` > > > > to the , key but without success. > > > > > Since I have tried many ways to get it working, I couldn't sum up all > > > > the things I have tried. But here is an example of what I have tried : > > > > vmap <silent>`<ESC>, > > > > I don't know if it's exactly what you're trying, but that is wrong, you > > > must use a space to separate things: > > > > vmap <silent>` <Esc>, > > > > Israel > > > Than you for your answer ! > > I don't remember all the things I have tried, and for this reason I > > couldn't say if I put a space. But right now I have just try it and > > even with a space it doesn't work. > > > If you don't use the plugin latexsuite, could you tell me how you > > would map ` to , with virtual mode ? > > > -- > > Alexandre Krispin > > > > signature.asc > < 1 000AfficherTélécharger
I apologize not to be able even with your answer to make the mapping working, I suppose it is a problem with my lack of knowledge. Here is what I get with pictures to show you : - First, I have copy-paste your answer : <a href='http://pix.toile-libre.org/?img=1286069480.png'><img src='http://pix.toile-libre.org/upload/thumb/1286069480.png' /></a> -Then, I select a block in visual mode to try if the new mapping is working : <a href='http://pix.toile-libre.org/?img=1286069671.png'><img src='http://pix.toile-libre.org/upload/thumb/1286069671.png' /></a> - Finally, if I try to enter ,bf instead of `bf, it doesn't work and here is what I get : <a href='http://pix.toile-libre.org/?img=1286069757.png'><img src='http://pix.toile-libre.org/upload/thumb/1286069757.png' /></a> -- 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
