1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-15 08:09:11 +08:00

Add +project mappings group

This commit is contained in:
wsdjeg 2017-04-22 23:22:33 +08:00
parent 9d4ddd0747
commit 9b313222a0
4 changed files with 12 additions and 2 deletions

View File

@ -8,5 +8,5 @@ endfunction
function! SpaceVim#layers#core#config() abort
let g:rooter_silent_chdir = 1
call SpaceVim#mapping#space#def('nnoremap', ['p', 't'], 'Rooter', 'find-project-root', 1)
endfunction

View File

@ -17,3 +17,7 @@ function! SpaceVim#layers#format#plugins() abort
\ ['sbdchd/neoformat', {'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}],
\ ]
endfunction
function! SpaceVim#layers#format#config() abort
call SpaceVim#mapping#space#def('nnoremap', ['b', 'f'], 'Neoformat', 'format-codo', 1)
endfunction

View File

@ -12,6 +12,7 @@ function! SpaceVim#mapping#space#init() abort
let g:_spacevim_mappings_space.b = {'name' : '+Buffers'}
let g:_spacevim_mappings_space.f = {'name' : '+Files'}
let g:_spacevim_mappings_space.w = {'name' : '+Windows'}
let g:_spacevim_mappings_space.p = {'name' : '+Projects'}
" Windows
let g:_spacevim_mappings_space.w['<Tab>'] = ['wincmd w', 'alternate-window']
call SpaceVim#mapping#menu('alternate-window', '[SPC]w<Tab>', 'wincmd w')

View File

@ -8,9 +8,10 @@ title: "Documentation"
- Features
- [Modular configuration](#modular-configuration)
- [Awesome ui](#awesome-ui)
- [Mnemonic key bindings](#mnemonic-key-bindings)
- [Neovim centric - Dark powered mode](#neovim-centric---dark-powered-mode-of-spacevim)
- [Language specific mode](#language-specific-mode)
- [Awesome ui](#awesome-ui)
- [Unite centric work-flow](#unite-centric-work-flow)
- [multiple leader mode](#multiple-leader-mode)
- [Custom configuration](#custom-configuration)
@ -24,6 +25,10 @@ title: "Documentation"
- outline + filemanager + checker
![2017-02-01_1360x721](https://cloud.githubusercontent.com/assets/13142418/22506638/84705532-e8bc-11e6-8b72-edbdaf08426b.png)
## Mnemonic key bindings
Key bindings are organized using mnemonic prefixes like b for buffer, p for project, s for search, h for help, etc…
## Language specific mode
## Key Mapping