1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:30:05 +08:00

Change plugin list key binding (#2665)

* Change plugin list key binding

* Fix doc
This commit is contained in:
Wang Shidong 2019-03-14 23:32:20 +08:00 committed by GitHub
parent 2e6064cf14
commit e628e1eebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 49 additions and 33 deletions

View File

@ -250,6 +250,16 @@ function! s:defind_fuzzy_finder() abort
\ '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
function! s:warp_denite(cmd) abort

View File

@ -198,6 +198,16 @@ function! s:defind_fuzzy_finder() abort
\ '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
function! s:run_shell_cmd() abort

View File

@ -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.m = {'name' : '+Major-mode'}
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.n = {'name' : '+Narrow/Numbers'}
let g:_spacevim_mappings_space.q = {'name' : '+Quit'}

View File

@ -88,8 +88,6 @@ function! zvim#plug#begin(path) abort
\ 'All the Added plugins'
\ . ' <leader>lp'}
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'
call neobundle#begin(a:path)
elseif g:spacevim_plugin_manager ==# 'dein'

View File

@ -671,40 +671,39 @@ can be get by `<leader> q r`
| Key | Mode | Action |
| --------------- | --------------------- | ------------------------------------------ |
| `<leader>`+`cd` | Normal | Switch to the directory of the open buffer |
| `<leader>`+`w` | Normal/Visual | Write (:w) |
| `SPC f s` | Normal/Visual | Write (:w) |
| `Ctrl-s` | Normal/Visual/Command | Write (:w) |
| `:w!!` | Command | Write as root (%!sudo tee > /dev/null %) |
### Editor UI
| Key | Mode | Action |
| ----------------------------------------------- | ------------- | ---------------------------------------------------------------- |
| `<F2>` | _All_ | Toggle tagbar |
| `<F3>` | _All_ | Toggle Vimfiler |
| `<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-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 |
| `<leader>`+`ts` | Normal | Toggle spell-checker (:setlocal spell!) |
| `<leader>`+`tn` | Normal | Toggle line numbers (:setlocal nonumber!) |
| `<leader>`+`tl` | Normal | Toggle hidden characters (:setlocal nolist!) |
| `<leader>`+`th` | Normal | Toggle highlighted search (:set hlsearch!) |
| `<leader>`+`tw` | Normal | Toggle wrap (:setlocal wrap! breakindent!) |
| `g0` | Normal | Go to first tab (:tabfirst) |
| `g$` | Normal | Go to last tab (:tablast) |
| `gr` | Normal | Go to previous tab (:tabprevious) |
| `Ctrl-<Down>` | Normal | Move to split below (Ctrl-w j) |
| `Ctrl-<Up>` | Normal | Move to upper split (Ctrl-w k) |
| `Ctrl-<Left>` | Normal | Move to left split (Ctrl-w h) |
| `Ctrl-<Right>` | Normal | Move to right split (Ctrl-w l) |
| `*` | Visual | Search selection forwards |
| `#` | Visual | Search selection backwards |
| `,`<Space>` | Normal | Remove all spaces at EOL |
| `Ctrl-r` | Visual | Replace selection |
| `<leader> l j` | Normal | Next on location list |
| `<leader> l k` | Normal | Previous on location list |
| `<leader> S` | Normal/Visual | Source selection |
| Key | Mode | Action |
| ------------------- | ------------- | ---------------------------------------------------------------- |
| `<F2>` | _All_ | Toggle tagbar |
| `<F3>` | _All_ | Toggle Vimfiler |
| `<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-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 |
| `<leader>`+`ts` | Normal | Toggle spell-checker (:setlocal spell!) |
| `<leader>`+`tn` | Normal | Toggle line numbers (:setlocal nonumber!) |
| `<leader>`+`tl` | Normal | Toggle hidden characters (:setlocal nolist!) |
| `<leader>`+`th` | Normal | Toggle highlighted search (:set hlsearch!) |
| `<leader>`+`tw` | Normal | Toggle wrap (:setlocal wrap! breakindent!) |
| `g0` | Normal | Go to first tab (:tabfirst) |
| `g$` | Normal | Go to last tab (:tablast) |
| `gr` | Normal | Go to previous tab (:tabprevious) |
| `Ctrl-<Down>` | Normal | Move to split below (Ctrl-w j) |
| `Ctrl-<Up>` | Normal | Move to upper split (Ctrl-w k) |
| `Ctrl-<Left>` | Normal | Move to left split (Ctrl-w h) |
| `Ctrl-<Right>` | Normal | Move to right split (Ctrl-w l) |
| `*` | Visual | Search selection forwards |
| `#` | Visual | Search selection backwards |
| `, <Space>` | Normal | Remove all spaces at EOL |
| `Ctrl-r` | Visual | Replace selection |
| `<leader> l j` | Normal | Next on location list |
| `<leader> l k` | Normal | Previous on location list |
| `<leader> S` | Normal/Visual | Source selection |
### Native functions

View File

@ -697,7 +697,6 @@ can be get by `<Leader> q r`, if you want to disable this feature, you can use `
| Key Bindings | Descriptions |
| -------------- | ------------------------------------------ |
| `<Leader> c d` | Switch to the directory of the open buffer |
| `SPC f s` | Write (:w) |
| `Ctrl-s` | Write (:w) |
| `SPC f W` | Write as root (need sudo layer) |