mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 05:30:05 +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,40 +671,39 @@ 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 |
|
||||||
| `<Alt>` + num | Normal | Jump to the buffer with the num index, this only works in Neovim |
|
| `<Alt>` + num | Normal | Jump to the buffer with the num index, this only works in Neovim |
|
||||||
| `Alt-h` / `<Left>` | Normal | Jump to left buffer in the tabline, this only works in Neovim |
|
| `Alt-h` / `<Left>` | Normal | Jump to left buffer in the tabline, this only works in Neovim |
|
||||||
| `Alt-l` / `<Right>` | Normal | Jump to Right buffer in the tabline, this only works in Neovim |
|
| `Alt-l` / `<Right>` | Normal | Jump to Right buffer in the tabline, this only works in Neovim |
|
||||||
| `<leader>`+`ts` | Normal | Toggle spell-checker (:setlocal spell!) |
|
| `<leader>`+`ts` | Normal | Toggle spell-checker (:setlocal spell!) |
|
||||||
| `<leader>`+`tn` | Normal | Toggle line numbers (:setlocal nonumber!) |
|
| `<leader>`+`tn` | Normal | Toggle line numbers (:setlocal nonumber!) |
|
||||||
| `<leader>`+`tl` | Normal | Toggle hidden characters (:setlocal nolist!) |
|
| `<leader>`+`tl` | Normal | Toggle hidden characters (:setlocal nolist!) |
|
||||||
| `<leader>`+`th` | Normal | Toggle highlighted search (:set hlsearch!) |
|
| `<leader>`+`th` | Normal | Toggle highlighted search (:set hlsearch!) |
|
||||||
| `<leader>`+`tw` | Normal | Toggle wrap (:setlocal wrap! breakindent!) |
|
| `<leader>`+`tw` | Normal | Toggle wrap (:setlocal wrap! breakindent!) |
|
||||||
| `g0` | Normal | Go to first tab (:tabfirst) |
|
| `g0` | Normal | Go to first tab (:tabfirst) |
|
||||||
| `g$` | Normal | Go to last tab (:tablast) |
|
| `g$` | Normal | Go to last tab (:tablast) |
|
||||||
| `gr` | Normal | Go to previous tab (:tabprevious) |
|
| `gr` | Normal | Go to previous tab (:tabprevious) |
|
||||||
| `Ctrl-<Down>` | Normal | Move to split below (Ctrl-w j) |
|
| `Ctrl-<Down>` | Normal | Move to split below (Ctrl-w j) |
|
||||||
| `Ctrl-<Up>` | Normal | Move to upper split (Ctrl-w k) |
|
| `Ctrl-<Up>` | Normal | Move to upper split (Ctrl-w k) |
|
||||||
| `Ctrl-<Left>` | Normal | Move to left split (Ctrl-w h) |
|
| `Ctrl-<Left>` | Normal | Move to left split (Ctrl-w h) |
|
||||||
| `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 |
|
||||||
| `<leader> S` | Normal/Visual | Source selection |
|
| `<leader> S` | Normal/Visual | Source selection |
|
||||||
|
|
||||||
### Native functions
|
### Native functions
|
||||||
|
|
||||||
|
@ -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