diff --git a/terminal/.config/vifm/vifmrc b/terminal/.config/vifm/vifmrc index b69eb05..7d7cffe 100644 --- a/terminal/.config/vifm/vifmrc +++ b/terminal/.config/vifm/vifmrc @@ -23,6 +23,15 @@ set vicmd=nvim " doesn't support progress measuring. 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 " 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 @@ -31,6 +40,7 @@ set syscalls " This probably shouldn't be an option. set trash set trashdir=$XDG_DATA_HOME/Trash +set confirm-=delete " This is how many directories to store in the directory history. set history=100 @@ -215,8 +225,9 @@ nmap Q :q "nnoremap nnoremap -" quick find mirroring my vim filefinder -nnoremap f :FZFfind +" switch pane with tab, like cpoption did +nnoremap w + " Start shell in current directory nnoremap s :shell @@ -237,8 +248,8 @@ nnoremap gb :file &l " create a tab nnoremap t :tabnew -" yank current directory path into the clipboard " clip is universal clipper from `sh` module +" yank current directory path into the clipboard nnoremap yd :!echo -n %d | clip %i " yank current file path into the clipboard nnoremap yf :!echo -n %c:p | clip %i @@ -255,9 +266,6 @@ nnoremap A cw nnoremap cw cW nnoremap cW cw -" Open editor to edit vifmrc and apply settings after returning to vifm -nnoremap V :write | edit $MYVIFMRC | restart - " esc quits out of preview mode (it does in vim, why not here?) qnoremap q