diff --git a/README.md b/README.md index bbac83aef..716098fb6 100644 --- a/README.md +++ b/README.md @@ -428,8 +428,7 @@ Key | Mode | Action Key | Mode | Action ----- |:----:| ------------------ -`;`+`e` | Normal | Toggle file explorer -`;`+`a` | Normal | Toggle file explorer on current file +`` | Normal | Toggle file explorer | **Within _VimFiler_ buffers** ||| `Ctrl`+`j` | Normal | Un-map `Ctrl`+`l` | Normal | Un-map @@ -438,8 +437,11 @@ Key | Mode | Action `sg` | Normal | Vertical split edit `p` | Normal | Preview `i` | Normal | Switch to directory history +`v` | Normal | Quick look +`gx` | Normal | Execute with vimfiler associated +`'` | Normal | Toggle mark current line +`V` | Normal | Clear all marks `Ctrl`+`r` | Normal | Redraw -`Ctrl`+`q` | Normal | Quick look ##### Plugin: neocomplete diff --git a/config/plugins/vimfiler.vim b/config/plugins/vimfiler.vim index 826ab680c..ba9e5f9cc 100644 --- a/config/plugins/vimfiler.vim +++ b/config/plugins/vimfiler.vim @@ -50,4 +50,26 @@ augroup END function! s:vimfilerinit() set nonumber set norelativenumber + + silent! nunmap + silent! nunmap + silent! nunmap + silent! nunmap gr + silent! nunmap gf + silent! nunmap - + + nnoremap gr :Denite grep:=selected() -buffer-name=grep + nnoremap gf :Denite file_rec:=selected() + nnoremap gd :call change_vim_current_dir() + nnoremap sg vimfiler#do_action('vsplit') + nnoremap sv vimfiler#do_action('split') + nnoremap st vimfiler#do_action('tabswitch') + nmap gx (vimfiler_execute_vimfiler_associated) + nmap ' (vimfiler_toggle_mark_current_line) + nmap v (vimfiler_quick_look) + nmap p (vimfiler_preview_file) + nmap V (vimfiler_clear_mark_all_lines) + nmap i (vimfiler_switch_to_history_directory) + nmap (vimfiler_switch_to_other_window) + nmap (vimfiler_redraw_screen) endf