In my .vimrc, I attempt to map ",,d" to a function call, see below:
autocmd FileType markdown nmap <silent> ,,d :call <Sid>InsertMkdDate()<CR>
But press ",,d", prompt E81: Using <SID> not in a script conext
The issue might come from mapleader setting, it's let mapleader=',' in
my .vimrc.
Is there any way to resove this issue if I stick to let mapleader=','
and ,,d to call function?
Thanks,
Steven.l
--
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
No comments:
Post a Comment