Hmm it just seemed that lusty had such a problem. But i am not since sure about it.
Anyway it is nice to have my own mappings working as expected. Den 20/04/2011 17.45 skrev "ZyX" <[email protected]>: > Reply to message «Re: Problems with my .vimrc», > sent 18:07:39 20 April 2011, Wednesday > by Tobias Lindgaard: > >> It turns out that my mappings to change ; : aren't to clever so I just >> dump that. >> It destroys a lot of things with plugins who are giving keybindings.. >> So I just reverted that change > You should write a bug report for each of these plugins: every clever plugin > writer uses `*noremap' unless he wants to deal with such bugs. > > Original message: >> It turns out that my mappings to change ; : aren't to clever so I just >> dump that. >> It destroys a lot of things with plugins who are giving keybindings.. >> So I just reverted that change >> >> On Wed, Apr 20, 2011 at 4:01 PM, Tobias Lindgaard >> >> <[email protected]> wrote: >> > On Wed, Apr 20, 2011 at 3:52 PM, Ben Schmidt >> > >> > <[email protected]> wrote: >> >> On 20/04/11 11:49 PM, Ben Schmidt wrote: >> >>>> nmap ,bn <ESC>:bn<CR> >> >>> >> >>> ... >> >>> >> >>>> nnoremap : ; >> >>> >> >>> So first the nmap types <Esc>, but you are already in Normal mode, so >> >>> Esc usually just beeps, which might abort the mapping; so that's not a >> >>> good idea. >> >>> >> >>> Even if it does get past that, though, it then types : but : has been >> >>> mapped to ; so instead of doing :bn<CR> it does ;bn<CR> (repeat last f >> >>> or t search in the same direction, or if there isn't one, probably just >> >>> beep and abort the mapping; or if it gets past that, then go back a >> >>> word, repeat the last search, and probably abort if the pattern is not >> >>> found, and then move down a line). >> >>> >> >>> Try :nnoremap in place of :nmap even for the ones which don't swap keys >> >>> and see how far that gets you. >> >> >> >> O, and leave out the Esc. E.g. >> >> >> >> :nnoremap ,bn :bn<CR> >> >> >> >> Smiles, >> >> >> >> Ben. -- 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
