1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 13:50: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

@ -79,14 +79,16 @@ function! s:vimfilerinit()
nnoremap <silent><buffer><expr> sg vimfiler#do_action('vsplit')
nnoremap <silent><buffer><expr> sv vimfiler#do_action('split')
nnoremap <silent><buffer><expr> st vimfiler#do_action('tabswitch')
nmap <buffer> gx <Plug>(vimfiler_execute_vimfiler_associated)
nmap <buffer> ' <Plug>(vimfiler_toggle_mark_current_line)
nmap <buffer> v <Plug>(vimfiler_quick_look)
nmap <buffer> p <Plug>(vimfiler_preview_file)
nmap <buffer> V <Plug>(vimfiler_clear_mark_all_lines)
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> gx <Plug>(vimfiler_execute_vimfiler_associated)
nmap <buffer> ' <Plug>(vimfiler_toggle_mark_current_line)
nmap <buffer> v <Plug>(vimfiler_quick_look)
nmap <buffer> p <Plug>(vimfiler_preview_file)
nmap <buffer> V <Plug>(vimfiler_clear_mark_all_lines)
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