Commits

ZyX_I committed 37b5fb6

Replaced all leading commas in mappings with <Leader>

  • Participants
  • Parent commits 7027c6d

Comments (0)

Files changed (6)

File doc/aurum.txt

           current revision, its first parent.
                           *g:frawormap_AuVimDiff* *g:frawormap_AuVimDiff_Exit*
     :AuVimDiff command defines Exit mappings for all opened buffers. By 
-    default lhs of this mapping is `X' with leader `,' (`,X'), but this can be 
-    customized using g:frawormap_AuVimDiff and g:frawormap_AuVimDiff_Exit 
-    variables.
+    default lhs of this mapping is `X' with leader `<Leader>' (`<Leader>X'), 
+    but this can be customized using g:frawormap_AuVimDiff and 
+    g:frawormap_AuVimDiff_Exit variables.
 
 ------------------------------------------------------------------------------
 2.2. Functions                                               *aurum-functions*
     Open buffer that prompts for a commit message. Writing this buffer will 
     record the commit and close the buffer. It is the only pseudo-protocol 
     type you can't use this with |:read|.
-    Local mappings (mgid=AuCommitMessage, default leader: ","):
+    Local mappings (mgid=AuCommitMessage, default leader: "<LocalLeader>"):
                                                  *g:frawormap_AuCommitMessage*
                                           *g:frawormap_AuCommitMessage_Commit*
                                               *aurum-m-AuCommitMessage_Commit*
 
 All mappings (not only global) are created using |frawor-f-mapgroup.add| and 
 thus can customized using |g:frawormap_mgid| and |g:frawormap_mgid_mapname|. 
-For global mappings mgid=Aurum, default leader is `,a'. Unlike other mappings 
-(which call internal functions), global ones call one of :Au* commands. 
-Present mappings:
+For global mappings mgid=Aurum, default leader is `<Leader>a'. Unlike other 
+mappings (which call internal functions), global ones call one of :Au* 
+commands. Present mappings:
 
                       *g:frawormap_Aurum_Commit* *g:frawormap_Aurum_CommitAll*
                       *g:frawormap_Aurum_ROpen*  *g:frawormap_Aurum_Revert*
      record mode discarding all changes you have made.
 
 :AuRecord defines the following mappings in recorded window 
-(mgid=AuRecordLeft, default leader: ","):           *g:frawormap_AuRecordLeft*
+(mgid=AuRecordLeft, default leader: "<Leader>"):    *g:frawormap_AuRecordLeft*
           *g:frawormap_AuRecordLeft_Discard* *g:frawormap_AuRecordLeft_Exit*
           *g:frawormap_AuRecordLeft_Commit*  *g:frawormap_AuRecordLeft_Remove*
               *aurum-m-AuRecordLeft_Discard*     *aurum-m-AuRecordLeft_Exit*

File ftplugin/aurumcommit.vim

 call s:_f.mapgroup.add('AuCommitMessage', {
             \ 'Commit': {'lhs': 'i', 'rhs': s:F.gm('commit') },
             \   'Exit': {'lhs': 'X', 'rhs': s:F.gm('discard')},
-        \}, {'mode': 'in', 'silent': 1, 'leader': ','})
+        \}, {'mode': 'in', 'silent': 1, 'leader': '<LocalLeader>'})
 "▶1
 call frawor#Lockvar(s:, '_r')
 " vim: ft=vim ts=4 sts=4 et fmr=▶,▲

File plugin/aurum.vim

                 \'LineURL':   {'lhs':  'h', 'rhs': ':<C-u>AuHyperlink line 0<CR>'},
                 \'Track':     {'lhs':  'A', 'rhs': ':<C-u>AuTrack<CR>'           },
                 \'Forget':    {'lhs':  'R', 'rhs': ':<C-u>AuJunk forget :<CR>'   },
-            \}, {'mode': 'n', 'silent': 1, 'leader': ',a'})
+            \}, {'mode': 'n', 'silent': 1, 'leader': '<Leader>a'})
     "▲2
     finish
 elseif s:_pluginloaded

File plugin/aurum/record.vim

             \   'Exit': {'lhs': 'X', 'rhs': s:F.gml('discardall')},
             \ 'Commit': {'lhs': 'i', 'rhs': s:F.gml('commit')    },
             \ 'Remove': {'lhs': 'R', 'rhs': s:F.gml('remove')    },
-        \}, {'mode': 'n', 'silent': 1, 'dontmap': 1, 'leader': ','})
+        \}, {'mode': 'n', 'silent': 1, 'dontmap': 1, 'leader': '<Leader>'})
 "▶1
 call frawor#Lockvar(s:, '_r,_pluginloaded')
 " vim: ft=vim ts=4 sts=4 et fmr=▶,▲

File plugin/aurum/vimdiff.vim

 "▶1 AuVimDiff mappings
 call s:_f.mapgroup.add('AuVimDiff', {
             \  'Exit': {'lhs': 'X', 'rhs': s:F.exit},
-        \}, {'mode': 'n', 'silent': 1, 'dontmap': 1, 'leader': ',',})
+        \}, {'mode': 'n', 'silent': 1, 'dontmap': 1, 'leader': '<Leader>',})
 "▶1 openfile
 function s:F.openfile(usewin, hasbuf, repo, revs, file)
     "▶2 Open first buffer
 let $HGRC=''
 let $HGRCPATH=''
 let $EMAIL='ZyX <kp-pav@yandex.ru>'
+let g:mapleader=','
+let g:maplocalleader=','