> map <LocalLeader>X :echo "hello X"<CR>
> let maplocalleader = ","
> map <LocalLeader>Y :echo "hello Y"<CR>
> let maplocalleader = ""
> map <LocalLeader>Z :echo "hello Z"<CR>
>
> and sourced it. Both the ":map" command and trying
> the mappings
> verified that the left-hand sides of the mappings were as
> expected:
>
> \X
> ,Y
> \Z
>
> It worked for me; I wonder why it didn't work for Tuo Pe.
For some reason, it didn't work for me. :-(
I have this in my ~/.vim/ftplugin/xml.vim file
[...]
let maplocalleader = ","
nnoremap <silent> <buffer> <LocalLeader>5 :call <SID>Matches()<Cr>
vnoremap <silent> <buffer> <LocalLeader>5 <Esc>:call <SID>MatchesVisual()<Cr>
nnoremap <silent> <buffer> <LocalLeader>% :call <SID>Matches()<Cr>
vnoremap <silent> <buffer> <LocalLeader>% <Esc>:call <SID>MatchesVisual()<Cr>
nnoremap <silent> <buffer> <LocalLeader>c :call <SID>Change()<Cr>
nnoremap <silent> <buffer> <LocalLeader>C :call <SID>ChangeWholeTag()<Cr>
nnoremap <silent> <buffer> <LocalLeader>d :call <SID>Delete()<Cr>
[...]
Now when I am editing an xml-file, `\d' works but `,d' doesn't.
Is there something special in "nnoremap" as compared to "map"?
Tuo
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment