Commits

Shrikant Sharat Kandula committed ccdbf1d

Use the new method for setting up mappings, applied for 2 more mappings.

Comments (0)

Files changed (1)

plugin/twitvim.vim

         vnoremap <buffer> <silent> <Leader>g y:call <SID>launch_browser(@")<cr>
 
         " Get user info for current word or selection.
-        nnoremap <buffer> <silent> <Leader>p :call <SID>do_user_info("")<cr>
+        call s:def_nmap('TwitvimGetUserInfo', '<Leader>p', ':call <SID>do_user_info("")<CR>')
         vnoremap <buffer> <silent> <Leader>p y:call <SID>do_user_info(@")<cr>
 
         " Call LongURL API on current word or selection.
-        nnoremap <buffer> <silent> <Leader>e :call <SID>do_longurl("")<cr>
+        call s:def_nmap('TwitvimLongURL', '<Leader>e', ':call <SID>do_longurl("")<CR>')
         vnoremap <buffer> <silent> <Leader>e y:call <SID>do_longurl(@")<cr>
 
         if a:wintype == "userinfo"