mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:00:04 +08:00
Change home and end key in defx buffer (#2738)
* Change home and end key in defx buffer * Add Ctrl-home key binding * Update doc
This commit is contained in:
parent
c14804c4e7
commit
ed51e65daf
@ -129,8 +129,10 @@ function! s:defx_init()
|
||||
\ defx#do_action('redraw')
|
||||
nnoremap <silent><buffer><expr> <C-g>
|
||||
\ defx#do_action('print')
|
||||
nnoremap <silent><buffer><expr> cd
|
||||
\ defx#do_action('change_vim_cwd')
|
||||
nnoremap <silent><buffer> <Home> :call cursor(2, 1)<cr>
|
||||
nnoremap <silent><buffer> <End> :call cursor(line('$'), 1)<cr>
|
||||
nnoremap <silent><buffer><expr> <C-Home>
|
||||
\ defx#do_action('cd', SpaceVim#plugins#projectmanager#current_root())
|
||||
endf
|
||||
|
||||
" in this function we should vim-choosewin if possible
|
||||
|
@ -1097,7 +1097,7 @@ Buffer 操作相关快捷键都是以 `SPC b` 为前缀的:
|
||||
| `SPC f E` | open a file with elevated privileges (sudo edit)(TODO) |
|
||||
| `SPC f f` | 打开文件 |
|
||||
| `SPC f F` | 打开光标下的文件 |
|
||||
| `SPC f o` | open a file using the default external program(TODO) |
|
||||
| `SPC f o` | 代开文件树,并定位到当前文件 |
|
||||
| `SPC f R` | rename the current file(TODO) |
|
||||
| `SPC f s` | 保存文件 |
|
||||
| `SPC f S` | 保存所有文件 |
|
||||
|
@ -1117,7 +1117,7 @@ Files manipulation commands (start with f):
|
||||
| `SPC f W` | save a file with elevated privileges (sudo layer) |
|
||||
| `SPC f f` | open file |
|
||||
| `SPC f F` | try to open the file under point |
|
||||
| `SPC f o` | open a file using the default external program(TODO) |
|
||||
| `SPC f o` | Find current file in file tree |
|
||||
| `SPC f R` | rename the current file(TODO) |
|
||||
| `SPC f s` | save a file |
|
||||
| `SPC f S` | save all files |
|
||||
@ -1191,6 +1191,9 @@ 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 |
|
||||
| `<Home>` | Jump to first line |
|
||||
| `<End>` | Jump to last line |
|
||||
| `Ctrl-Home` | Switch to project root directory |
|
||||
| `Ctrl-r` | Redraw |
|
||||
|
||||
##### Open file with file tree.
|
||||
|
Loading…
Reference in New Issue
Block a user