When trying to use vim-latexsuite
's mappings, the ones using Leader
are not working:
:nmap
----------------------------------------
n <Leader>rf @<Plug>Tex_RefreshFolds
n <Leader>ls @<Plug>Tex_ForwardSearch
n <Leader>lv @<Plug>Tex_View
n <Leader>ll @<Plug>Tex_Compile
All other mappings by this plugin are working, so the plugin is being loaded correctly. Without mapleader
being set, Leader
should default to \
(Backslash).
When typing \ll
in command mode, the cursor gets moved 2 characters to the right, as it's supposed to by just typing ll
. So the Backslash seems to be ignored. Vim does not beep or display any errors and the ll
follows earlier than 1000ms, which is my timeoutlen
.
I have also tried the following settings in both .vimrc
and /etc/vimrc
(Though I assume only mapleader
needs to be set here):
let mapleader = ","
let maplocalleader = ","
After this, Vim behaves the same way: No beep, no error and after typing ,ll
the cursor moves 2 characters to the right.
Any ideas how to fix this?
:echo mapleader
? :verbose nmap \? – Mull,
and :verbose nmap \ (or ,) ->No mapping found
– Governess:nmap
and:nmap <leader>
don't returnn <Leader>b SomeCommand
butn ,b SomeCommand
. Note that<leader>
is expanded to its value. It looks to my untrained eyes as if the value of mapleader would be set to the string<Leader>
, which seems quite weird. – Mull:nnoremap <Leader>d dd
I added this to my .vimrc and:nmap
returnsn <Leader>d * dd
. When i type ",d", only one "d" is being shown in the bottom right corner. So it doesn't work either. As i said in the Question, the other mappings of the plugin are working. – Governesslet mapleader = ","
is at the top of my .vimrc. But even without that working, the Leader should default to \, which doesn't work either (Both \ and , seem to be ignored by Vim). – Governess