mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-09 15:00:04 +08:00
Change plugin list key binding (#2665)
* Change plugin list key binding * Fix doc
This commit is contained in:
parent
2e6064cf14
commit
e628e1eebf
@ -250,6 +250,16 @@ function! s:defind_fuzzy_finder() abort
|
|||||||
\ 'Definition: ' . s:file . ':' . lnum,
|
\ 'Definition: ' . s:file . ':' . lnum,
|
||||||
\ ]
|
\ ]
|
||||||
\ ]
|
\ ]
|
||||||
|
nnoremap <silent> <Leader>fp :<C-u>Denite menu:AddedPlugins<CR>
|
||||||
|
let lnum = expand('<slnum>') + s:unite_lnum - 4
|
||||||
|
let g:_spacevim_mappings.f.p = ['Denite menu:AddedPlugins',
|
||||||
|
\ 'fuzzy find vim packages',
|
||||||
|
\ [
|
||||||
|
\ '[Leader f p] is to fuzzy find vim packages installed in SpaceVim',
|
||||||
|
\ '',
|
||||||
|
\ 'Definition: ' . s:file . ':' . lnum,
|
||||||
|
\ ]
|
||||||
|
\ ]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:warp_denite(cmd) abort
|
function! s:warp_denite(cmd) abort
|
||||||
|
@ -198,6 +198,16 @@ function! s:defind_fuzzy_finder() abort
|
|||||||
\ 'Definition: ' . s:file . ':' . lnum,
|
\ 'Definition: ' . s:file . ':' . lnum,
|
||||||
\ ]
|
\ ]
|
||||||
\ ]
|
\ ]
|
||||||
|
nnoremap <silent> <Leader>fp :<C-u>Unite menu:AddedPlugins<CR>
|
||||||
|
let lnum = expand('<slnum>') + s:unite_lnum - 4
|
||||||
|
let g:_spacevim_mappings.f.p = ['Unite menu:AddedPlugins',
|
||||||
|
\ 'fuzzy find vim packages',
|
||||||
|
\ [
|
||||||
|
\ '[Leader f p] is to fuzzy find vim packages installed in SpaceVim',
|
||||||
|
\ '',
|
||||||
|
\ 'Definition: ' . s:file . ':' . lnum,
|
||||||
|
\ ]
|
||||||
|
\ ]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:run_shell_cmd() abort
|
function! s:run_shell_cmd() abort
|
||||||
|
@ -21,7 +21,7 @@ function! SpaceVim#mapping#space#init() abort
|
|||||||
let g:_spacevim_mappings_space.j = {'name' : '+Jump/Join/Split'}
|
let g:_spacevim_mappings_space.j = {'name' : '+Jump/Join/Split'}
|
||||||
let g:_spacevim_mappings_space.m = {'name' : '+Major-mode'}
|
let g:_spacevim_mappings_space.m = {'name' : '+Major-mode'}
|
||||||
let g:_spacevim_mappings_space.w = {'name' : '+Windows'}
|
let g:_spacevim_mappings_space.w = {'name' : '+Windows'}
|
||||||
let g:_spacevim_mappings_space.p = {'name' : '+Projects'}
|
let g:_spacevim_mappings_space.p = {'name' : '+Projects/Packages'}
|
||||||
let g:_spacevim_mappings_space.h = {'name' : '+Help'}
|
let g:_spacevim_mappings_space.h = {'name' : '+Help'}
|
||||||
let g:_spacevim_mappings_space.n = {'name' : '+Narrow/Numbers'}
|
let g:_spacevim_mappings_space.n = {'name' : '+Narrow/Numbers'}
|
||||||
let g:_spacevim_mappings_space.q = {'name' : '+Quit'}
|
let g:_spacevim_mappings_space.q = {'name' : '+Quit'}
|
||||||
|
@ -88,8 +88,6 @@ function! zvim#plug#begin(path) abort
|
|||||||
\ 'All the Added plugins'
|
\ 'All the Added plugins'
|
||||||
\ . ' <leader>lp'}
|
\ . ' <leader>lp'}
|
||||||
let g:unite_source_menu_menus.AddedPlugins.command_candidates = []
|
let g:unite_source_menu_menus.AddedPlugins.command_candidates = []
|
||||||
nnoremap <silent><Leader>lp :Unite -silent
|
|
||||||
\ -winheight=17 -start-insert menu:AddedPlugins<CR>
|
|
||||||
if g:spacevim_plugin_manager ==# 'neobundle'
|
if g:spacevim_plugin_manager ==# 'neobundle'
|
||||||
call neobundle#begin(a:path)
|
call neobundle#begin(a:path)
|
||||||
elseif g:spacevim_plugin_manager ==# 'dein'
|
elseif g:spacevim_plugin_manager ==# 'dein'
|
||||||
|
@ -671,15 +671,14 @@ can be get by `<leader> q r`
|
|||||||
|
|
||||||
| Key | Mode | Action |
|
| Key | Mode | Action |
|
||||||
| --------------- | --------------------- | ------------------------------------------ |
|
| --------------- | --------------------- | ------------------------------------------ |
|
||||||
| `<leader>`+`cd` | Normal | Switch to the directory of the open buffer |
|
| `SPC f s` | Normal/Visual | Write (:w) |
|
||||||
| `<leader>`+`w` | Normal/Visual | Write (:w) |
|
|
||||||
| `Ctrl-s` | Normal/Visual/Command | Write (:w) |
|
| `Ctrl-s` | Normal/Visual/Command | Write (:w) |
|
||||||
| `:w!!` | Command | Write as root (%!sudo tee > /dev/null %) |
|
| `:w!!` | Command | Write as root (%!sudo tee > /dev/null %) |
|
||||||
|
|
||||||
### Editor UI
|
### Editor UI
|
||||||
|
|
||||||
| Key | Mode | Action |
|
| Key | Mode | Action |
|
||||||
| ----------------------------------------------- | ------------- | ---------------------------------------------------------------- |
|
| ------------------- | ------------- | ---------------------------------------------------------------- |
|
||||||
| `<F2>` | _All_ | Toggle tagbar |
|
| `<F2>` | _All_ | Toggle tagbar |
|
||||||
| `<F3>` | _All_ | Toggle Vimfiler |
|
| `<F3>` | _All_ | Toggle Vimfiler |
|
||||||
| `<leader>` + num | Normal | Jump to the buffer with the num index |
|
| `<leader>` + num | Normal | Jump to the buffer with the num index |
|
||||||
@ -700,7 +699,7 @@ can be get by `<leader> q r`
|
|||||||
| `Ctrl-<Right>` | Normal | Move to right split (Ctrl-w l) |
|
| `Ctrl-<Right>` | Normal | Move to right split (Ctrl-w l) |
|
||||||
| `*` | Visual | Search selection forwards |
|
| `*` | Visual | Search selection forwards |
|
||||||
| `#` | Visual | Search selection backwards |
|
| `#` | Visual | Search selection backwards |
|
||||||
| `,`<Space>` | Normal | Remove all spaces at EOL |
|
| `, <Space>` | Normal | Remove all spaces at EOL |
|
||||||
| `Ctrl-r` | Visual | Replace selection |
|
| `Ctrl-r` | Visual | Replace selection |
|
||||||
| `<leader> l j` | Normal | Next on location list |
|
| `<leader> l j` | Normal | Next on location list |
|
||||||
| `<leader> l k` | Normal | Previous on location list |
|
| `<leader> l k` | Normal | Previous on location list |
|
||||||
|
@ -697,7 +697,6 @@ can be get by `<Leader> q r`, if you want to disable this feature, you can use `
|
|||||||
|
|
||||||
| Key Bindings | Descriptions |
|
| Key Bindings | Descriptions |
|
||||||
| -------------- | ------------------------------------------ |
|
| -------------- | ------------------------------------------ |
|
||||||
| `<Leader> c d` | Switch to the directory of the open buffer |
|
|
||||||
| `SPC f s` | Write (:w) |
|
| `SPC f s` | Write (:w) |
|
||||||
| `Ctrl-s` | Write (:w) |
|
| `Ctrl-s` | Write (:w) |
|
||||||
| `SPC f W` | Write as root (need sudo layer) |
|
| `SPC f W` | Write as root (need sudo layer) |
|
||||||
|
Loading…
Reference in New Issue
Block a user