mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:30:05 +08:00
Add keybinding for resize defx (#3084)
This commit is contained in:
parent
4607151b5b
commit
6cb57388cc
@ -35,6 +35,10 @@ call defx#custom#column('icon', {
|
||||
\ 'root_icon': ' ',
|
||||
\ })
|
||||
|
||||
call defx#custom#column('filename', {
|
||||
\ 'max_width': -90,
|
||||
\ })
|
||||
|
||||
augroup vfinit
|
||||
au!
|
||||
autocmd FileType defx call s:defx_init()
|
||||
@ -142,6 +146,10 @@ function! s:defx_init()
|
||||
nnoremap <silent><buffer> <End> :call cursor(line('$'), 1)<cr>
|
||||
nnoremap <silent><buffer><expr> <C-Home>
|
||||
\ defx#do_action('cd', SpaceVim#plugins#projectmanager#current_root())
|
||||
nnoremap <silent><buffer><expr> > defx#do_action('resize',
|
||||
\ defx#get_context().winwidth + 10)
|
||||
nnoremap <silent><buffer><expr> < defx#do_action('resize',
|
||||
\ defx#get_context().winwidth - 10)
|
||||
endf
|
||||
|
||||
" in this function we should vim-choosewin if possible
|
||||
|
@ -1176,6 +1176,8 @@ SpaceVim 的文件树提供了版本控制信息的接口,但是这一特性
|
||||
| `p` | 预览文件 |
|
||||
| `i` | 切换至文件夹历史 |
|
||||
| `v` | 快速查看 |
|
||||
| `>` | 放大文件树窗口宽度 |
|
||||
| `<` | 缩小文件树窗口宽度 |
|
||||
| `g x` | 使用相关程序执行该文件 |
|
||||
| `'` | 标记光标下的文件(夹) |
|
||||
| `V` | 清除所有标记 |
|
||||
|
@ -1201,6 +1201,8 @@ Navigation is centered on the `hjkl` keys with the hope of providing a fast navi
|
||||
| `g x` | Execute with vimfiler associated |
|
||||
| `'` | Toggle mark current line |
|
||||
| `V` | Clear all marks |
|
||||
| `>` | iecrease filetree screenwidth |
|
||||
| `<` | dncrease filetree screenwidth |
|
||||
| `<Home>` | Jump to first line |
|
||||
| `<End>` | Jump to last line |
|
||||
| `Ctrl-Home` | Switch to project root directory |
|
||||
@ -1274,52 +1276,52 @@ which will tell you the functional of all mappings starting with `g`.
|
||||
After pressing prefix `z` in normal mode, if you do not remember the mappings, you will see the guide
|
||||
which will tell you the functional of all mappings starting with `z`.
|
||||
|
||||
| Key Bindings | Descriptions |
|
||||
| ------------ | -------------------------------------------- |
|
||||
| `z <Right>` | scroll screen N characters to left |
|
||||
| `z +` | cursor to screen top line N |
|
||||
| `z -` | cursor to screen bottom line N |
|
||||
| `z .` | cursor line to center |
|
||||
| `z <Enter>` | cursor line to top |
|
||||
| `z =` | spelling suggestions |
|
||||
| `z A` | toggle folds recursively |
|
||||
| `z C` | close folds recursively |
|
||||
| `z D` | delete folds recursively |
|
||||
| `z E` | eliminate all folds |
|
||||
| `z F` | create a fold for N lines |
|
||||
| `z G` | mark good spelled (update internal wordlist) |
|
||||
| `z H` | scroll half a screenwidth to the right |
|
||||
| `z L` | scroll half a screenwidth to the left |
|
||||
| `z M` | set `foldlevel` to zero |
|
||||
| `z N` | set `foldenable` |
|
||||
| `z O` | open folds recursively |
|
||||
| `z R` | set `foldlevel` to deepest fold |
|
||||
| `z W` | mark wrong spelled (update internal wordlist)|
|
||||
| `z X` | re-apply `foldlevel` |
|
||||
| `z ^` | cursor to screen bottom line N |
|
||||
| `z a` | toggle a fold |
|
||||
| `z b` | redraw, cursor line at bottom |
|
||||
| `z c` | close a fold |
|
||||
| `z d` | delete a fold |
|
||||
| `z e` | right scroll horizontally to cursor position |
|
||||
| `z f` | create a fold for motion |
|
||||
| `z g` | mark good spelled |
|
||||
| `z h` | scroll screen N characters to right |
|
||||
| `z i` | toggle foldenable |
|
||||
| `z j` | mode to start of next fold |
|
||||
| `z k` | mode to end of previous fold |
|
||||
| `z l` | scroll screen N characters to left |
|
||||
| `z m` | subtract one from `foldlevel` |
|
||||
| `z n` | reset `foldenable` |
|
||||
| `z o` | open fold |
|
||||
| `z r` | add one to `foldlevel` |
|
||||
| `z s` | left scroll horizontally to cursor position |
|
||||
| `z t` | cursor line at top of window |
|
||||
| `z v` | open enough folds to view cursor line |
|
||||
| `z w` | mark wrong spelled |
|
||||
| `z x` | re-apply foldlevel and do "zV" |
|
||||
| `z z` | smart scroll |
|
||||
| `z <Left>` | scroll screen N characters to right |
|
||||
| Key Bindings | Descriptions |
|
||||
| ------------ | --------------------------------------------- |
|
||||
| `z <Right>` | scroll screen N characters to left |
|
||||
| `z +` | cursor to screen top line N |
|
||||
| `z -` | cursor to screen bottom line N |
|
||||
| `z .` | cursor line to center |
|
||||
| `z <Enter>` | cursor line to top |
|
||||
| `z =` | spelling suggestions |
|
||||
| `z A` | toggle folds recursively |
|
||||
| `z C` | close folds recursively |
|
||||
| `z D` | delete folds recursively |
|
||||
| `z E` | eliminate all folds |
|
||||
| `z F` | create a fold for N lines |
|
||||
| `z G` | mark good spelled (update internal wordlist) |
|
||||
| `z H` | scroll half a screenwidth to the right |
|
||||
| `z L` | scroll half a screenwidth to the left |
|
||||
| `z M` | set `foldlevel` to zero |
|
||||
| `z N` | set `foldenable` |
|
||||
| `z O` | open folds recursively |
|
||||
| `z R` | set `foldlevel` to deepest fold |
|
||||
| `z W` | mark wrong spelled (update internal wordlist) |
|
||||
| `z X` | re-apply `foldlevel` |
|
||||
| `z ^` | cursor to screen bottom line N |
|
||||
| `z a` | toggle a fold |
|
||||
| `z b` | redraw, cursor line at bottom |
|
||||
| `z c` | close a fold |
|
||||
| `z d` | delete a fold |
|
||||
| `z e` | right scroll horizontally to cursor position |
|
||||
| `z f` | create a fold for motion |
|
||||
| `z g` | mark good spelled |
|
||||
| `z h` | scroll screen N characters to right |
|
||||
| `z i` | toggle foldenable |
|
||||
| `z j` | mode to start of next fold |
|
||||
| `z k` | mode to end of previous fold |
|
||||
| `z l` | scroll screen N characters to left |
|
||||
| `z m` | subtract one from `foldlevel` |
|
||||
| `z n` | reset `foldenable` |
|
||||
| `z o` | open fold |
|
||||
| `z r` | add one to `foldlevel` |
|
||||
| `z s` | left scroll horizontally to cursor position |
|
||||
| `z t` | cursor line at top of window |
|
||||
| `z v` | open enough folds to view cursor line |
|
||||
| `z w` | mark wrong spelled |
|
||||
| `z x` | re-apply foldlevel and do "zV" |
|
||||
| `z z` | smart scroll |
|
||||
| `z <Left>` | scroll screen N characters to right |
|
||||
|
||||
### Searching
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user