vifm: Remove compatibility options
Removed the compatibility options set by default in vifm, which has 2 large effects: Will remove the default tab mapping to switch panes. I re-enabled it for now since it has become somewhat part of my muscle memory but I believe it is better to have it as an explicit mapping which I can change than hunting for this option somewhere down the road. Second, it makes dd/DD/yy behave very differently, *only* working on the currently highlighted file. To operate on the currently selected files like previously one uses ds/Ds/ys instead. I want to re-train my muscle memory for this instead since it will make my usage more flexible in the future. There is also dS/DS/yS for operating on non-selected files instead which is even more flexible.
This commit is contained in:
parent
eeca1f3817
commit
e90d1c9c39
1 changed files with 14 additions and 6 deletions
|
@ -23,6 +23,15 @@ set vicmd=nvim
|
||||||
" doesn't support progress measuring.
|
" doesn't support progress measuring.
|
||||||
set syscalls
|
set syscalls
|
||||||
|
|
||||||
|
" disable 'compatibility' options, by default kept for legacy I suppose?
|
||||||
|
" Turning it off:
|
||||||
|
" Makes dd/DD/yy only work on currently highlighted file, use ds/Ds/ys for
|
||||||
|
" working on selected files (or dS, DS, yS for inversion).
|
||||||
|
" Makes tab not automatically switch panels.
|
||||||
|
" Makes permanent filter commands act differently, no clue haven't really made
|
||||||
|
" use of them yet.
|
||||||
|
set cpoptions=
|
||||||
|
|
||||||
" Trash Directory
|
" Trash Directory
|
||||||
" The default is to move files that are deleted with dd or :d to
|
" The default is to move files that are deleted with dd or :d to
|
||||||
" the trash directory. If you change this you will not be able to move
|
" the trash directory. If you change this you will not be able to move
|
||||||
|
@ -31,6 +40,7 @@ set syscalls
|
||||||
" This probably shouldn't be an option.
|
" This probably shouldn't be an option.
|
||||||
set trash
|
set trash
|
||||||
set trashdir=$XDG_DATA_HOME/Trash
|
set trashdir=$XDG_DATA_HOME/Trash
|
||||||
|
set confirm-=delete
|
||||||
|
|
||||||
" This is how many directories to store in the directory history.
|
" This is how many directories to store in the directory history.
|
||||||
set history=100
|
set history=100
|
||||||
|
@ -215,8 +225,9 @@ nmap Q :q<cr>
|
||||||
"nnoremap <space> <nop>
|
"nnoremap <space> <nop>
|
||||||
nnoremap <space><space> <space>
|
nnoremap <space><space> <space>
|
||||||
|
|
||||||
" quick find mirroring my vim filefinder
|
" switch pane with tab, like cpoption did
|
||||||
nnoremap <space>f :FZFfind<cr>
|
nnoremap <tab> <c-w>w
|
||||||
|
|
||||||
|
|
||||||
" Start shell in current directory
|
" Start shell in current directory
|
||||||
nnoremap s :shell<cr>
|
nnoremap s :shell<cr>
|
||||||
|
@ -237,8 +248,8 @@ nnoremap gb :file &<cr>l
|
||||||
" create a tab
|
" create a tab
|
||||||
nnoremap <space>t :tabnew<cr>
|
nnoremap <space>t :tabnew<cr>
|
||||||
|
|
||||||
" yank current directory path into the clipboard
|
|
||||||
" clip is universal clipper from `sh` module
|
" clip is universal clipper from `sh` module
|
||||||
|
" yank current directory path into the clipboard
|
||||||
nnoremap yd :!echo -n %d | clip %i<cr>
|
nnoremap yd :!echo -n %d | clip %i<cr>
|
||||||
" yank current file path into the clipboard
|
" yank current file path into the clipboard
|
||||||
nnoremap yf :!echo -n %c:p | clip %i<cr>
|
nnoremap yf :!echo -n %c:p | clip %i<cr>
|
||||||
|
@ -255,9 +266,6 @@ nnoremap A cw
|
||||||
nnoremap cw cW
|
nnoremap cw cW
|
||||||
nnoremap cW cw
|
nnoremap cW cw
|
||||||
|
|
||||||
" Open editor to edit vifmrc and apply settings after returning to vifm
|
|
||||||
nnoremap <space>V :write | edit $MYVIFMRC | restart<cr>
|
|
||||||
|
|
||||||
" esc quits out of preview mode (it does in vim, why not here?)
|
" esc quits out of preview mode (it does in vim, why not here?)
|
||||||
qnoremap <esc> q
|
qnoremap <esc> q
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue