1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 04:00:04 +08:00

Add SPC f v d to open custom configration file

This commit is contained in:
wsdjeg 2017-06-07 20:20:54 +08:00
parent 69b250b6f5
commit 431b1b85a0
2 changed files with 15 additions and 0 deletions

View File

@ -136,6 +136,9 @@ function! SpaceVim#layers#default#config() abort
call SpaceVim#mapping#space#def('nnoremap', ['f', 't'], 'NERDTree', 'toggle_file_tree', 1) call SpaceVim#mapping#space#def('nnoremap', ['f', 't'], 'NERDTree', 'toggle_file_tree', 1)
endif endif
call SpaceVim#mapping#space#def('nnoremap', ['f', 'y'], 'call zvim#util#CopyToClipboard()', 'show-and-copy-buffer-filename', 1) call SpaceVim#mapping#space#def('nnoremap', ['f', 'y'], 'call zvim#util#CopyToClipboard()', 'show-and-copy-buffer-filename', 1)
let g:_spacevim_mappings_space.f.v = {'name' : '+Vim(SpaceVim)'}
call SpaceVim#mapping#space#def('nnoremap', ['f', 'v', 'v'], 'let @+=g:spacevim_version | echo g:spacevim_version', 'display-and-copy-version', 1)
call SpaceVim#mapping#space#def('nnoremap', ['f', 'v', 'd'], 'SPConfig', 'open-custom-configuration', 1)
endfunction endfunction
let s:file = SpaceVim#api#import('file') let s:file = SpaceVim#api#import('file')

View File

@ -60,6 +60,7 @@ title: "Documentation"
* [Create a new empty buffer](#create-a-new-empty-buffer) * [Create a new empty buffer](#create-a-new-empty-buffer)
* [Special Buffers](#special-buffers) * [Special Buffers](#special-buffers)
* [Files manipulations key bindings](#files-manipulations-key-bindings) * [Files manipulations key bindings](#files-manipulations-key-bindings)
* [Vim and SpaceVim files](#vim-and-spacevim-files)
* [Auto-saving](#auto-saving) * [Auto-saving](#auto-saving)
* [Searching](#searching) * [Searching](#searching)
* [Editing](#editing) * [Editing](#editing)
@ -792,6 +793,17 @@ Key Binding | Description
`SPC f T` | show file tree side bar `SPC f T` | show file tree side bar
`SPC f y` | show and copy current file absolute path in the cmdline `SPC f y` | show and copy current file absolute path in the cmdline
##### Vim and SpaceVim files
Convenient key bindings are located under the prefix `SPC f v` to quickly navigate between Vim and SpaceVim specific files.
Key Binding | Description
----------- | -----------
`SPC f v v` | display and copy SpaceVim version
`SPC f v d` | open SpaceVim custom configuration file
### Auto-saving ### Auto-saving
### Searching ### Searching