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

Remove vimfiler message when toggle buffer

This commit is contained in:
wsdjeg 2017-06-09 22:29:52 +08:00 committed by Wang Shidong
parent a40cc8ed6c
commit c10761bfa4
3 changed files with 22 additions and 13 deletions

View File

@ -187,7 +187,7 @@ endfunction
function! zvim#util#OpenVimfiler() abort
if bufnr('vimfiler') == -1
VimFiler
silent VimFiler
if exists(':AirlineRefresh')
AirlineRefresh
endif
@ -198,7 +198,7 @@ function! zvim#util#OpenVimfiler() abort
endif
wincmd p
else
VimFiler
silent VimFiler
doautocmd WinEnter
if exists(':AirlineRefresh')
AirlineRefresh

View File

@ -87,6 +87,8 @@ function! s:vimfilerinit()
nmap <buffer> i <Plug>(vimfiler_switch_to_history_directory)
nmap <buffer> <Tab> <Plug>(vimfiler_switch_to_other_window)
nmap <buffer> <C-r> <Plug>(vimfiler_redraw_screen)
nmap <buffer> <Left> <Plug>(vimfiler_smart_h)
nmap <buffer> <Right> <Plug>(vimfiler_smart_l)
endf
" vim:set et sw=2:

View File

@ -827,13 +827,14 @@ Key Binding | Description
-----------| -----------
`<F3>` or `SPC f t` | Toggle file explorer
| **Within _VimFiler_ buffers** | |
`h` or `RET` | go to parent node and collapse expanded directory
`<Left>` or `h` | go to parent node and collapse expanded directory
`<Down>` or `j` | select next file or directory
`<Up>` or `k` | select previous file or directory
`l` | open selected file or expand directory
`<Right>` or `l` | open selected file or expand directory
`Ctrl`+`j` | Un-map
`Ctrl`+`l` | Un-map
`E` | Un-map
`.` | toggle visible ignored files
`sv` | Split edit
`sg` | Vertical split edit
`p` | Preview
@ -846,7 +847,13 @@ Key Binding | Description
##### Open file with file tree.
By default a file is opened in the last active window,
If there is only one file buffer opened, a file is opened in the active window, otherwise we need to use vim-choosewin to select a window to open the file.
Key Binding | Description
-----------| -----------
`l` or `Enter` | open file in one window
`sg` | open file in an vertically split window
`sv` | open file in an horizontally split window
### Auto-saving