1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +08:00

Update mappings

This commit is contained in:
wsdjeg 2017-08-06 00:01:32 +08:00
parent 46b0b0b361
commit 2431cd6d50
2 changed files with 6 additions and 26 deletions

View File

@ -9,18 +9,7 @@ function! SpaceVim#layers#tags#config()
let g:_spacevim_mappings_space.m.g = {'name' : '+gtags'}
call SpaceVim#mapping#space#def('nnoremap', ['m', 'g', 'c'], 'GtagsGenerate!', 'create a gtags database', 1)
call SpaceVim#mapping#space#def('nnoremap', ['m', 'g', 'u'], 'GtagsGenerate', 'update tag database', 1)
" | `SPC m g f` | jump to a file in tag database |
" | `SPC m g g` | jump to a location based on context |
" | `SPC m g G` | jump to a location based on context (open another window) |
" | `SPC m g d` | find definitions |
" | `SPC m g i` | present tags in current function only |
" | `SPC m g l` | jump to definitions in file |
" | `SPC m g n` | jump to next location in context stack |
" | `SPC m g p` | jump to previous location in context stack |
" | `SPC m g r` | find references |
" | `SPC m g R` | resume previous helm-gtags session |
" | `SPC m g s` | select any tag in a project retrieved by gtags |
" | `SPC m g S` | show stack of visited locations |
call SpaceVim#mapping#space#def('nnoremap', ['m', 'g', 'f'], 'Unite gtags/path', 'list all file in GTAGS', 1)
call SpaceVim#mapping#space#def('nnoremap', ['m', 'g', 'd'], 'Unite gtags/def', 'find definitions', 1)
call SpaceVim#mapping#space#def('nnoremap', ['m', 'g', 'r'], 'Unite gtags/ref', 'find references', 1)
endfunction

View File

@ -191,16 +191,7 @@ If you enabled pygments (the best choice) and use that as the backend (i.e., GTA
| Key Binding | Description |
| ----------- | --------------------------------------------------------- |
| `SPC m g c` | create a tag database |
| `SPC m g f` | jump to a file in tag database |
| `SPC m g g` | jump to a location based on context |
| `SPC m g G` | jump to a location based on context (open another window) |
| `SPC m g d` | find definitions |
| `SPC m g i` | present tags in current function only |
| `SPC m g l` | jump to definitions in file |
| `SPC m g n` | jump to next location in context stack |
| `SPC m g p` | jump to previous location in context stack |
| `SPC m g r` | find references |
| `SPC m g R` | resume previous helm-gtags session |
| `SPC m g s` | select any tag in a project retrieved by gtags |
| `SPC m g S` | show stack of visited locations |
| `SPC m g u` | manually update tag database |
| `SPC m g f` | jump to a file in tag database |
| `SPC m g d` | find definitions |
| `SPC m g r` | find references |