dotfiles

My dotfiles: zsh, lf, sxiv, i3, ranger, mpd and more
Log | Files | Refs | Submodules | README | LICENSE

vifmrc (2708B)


      1 " vim: filetype=vifm
      2 source ${XDG_CONFIG_HOME:-$HOME/.config}/vifm/vifmshortcuts
      3 
      4 set vicmd=$EDITOR
      5 set syscalls
      6 set nofollowlinks
      7 set sortnumbers
      8 set undolevels=100
      9 set wildmenu
     10 set wildstyle=popup
     11 set scrolloff=4
     12 set ignorecase
     13 set smartcase
     14 set nohlsearch
     15 set incsearch
     16 set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
     17 colorscheme luke
     18 
     19 map <C-h> <C-w>h
     20 map <C-j> <C-w>j
     21 map <C-k> <C-w>k
     22 map <C-l> <C-w>l
     23 map <C-o> <C-w>o
     24 map <C-s> <C-w>s
     25 map <C-v> <C-w>v
     26 
     27 map R :restart<CR>
     28 map x :!sxiv -ft * 2>/dev/null &<CR>
     29 nnoremap o :file &<cr>
     30 map E :!$EDITOR %f<CR>
     31 map mkd :mkdir<space>
     32 map bg :!setbg %f &<CR>
     33 map X :!ext %f &<CR>
     34 nnoremap s :shell<cr>
     35 nnoremap w :view<cr>
     36 vnoremap w :view<cr>gv
     37 nnoremap yd :!echo %d | xclip %i<cr>
     38 nnoremap yf :!echo %c:p | xclip %i<cr>
     39 nnoremap I cw<c-a>
     40 nnoremap cc cw<c-u>
     41 nnoremap A cw
     42 nnoremap ,w :set wrap!<cr>
     43 nmap <space> tj
     44 nmap q ZQ
     45 
     46 fileview */ tree %c -L 1 --dirsfirst
     47 fileview ../ tree %c -L 1 --dirsfirst
     48 fileviewer *.html w3m -dump %c
     49 filextype *.html,*.htm firefox %f 2>/dev/null &
     50 
     51 fileviewer *.docx docx2txt %c -
     52 fileviewer *.odt odt2txt %c -
     53 
     54 filetype *.csv,*.xlsx sc-im %c
     55 fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - /  /g" | cut -c -%pw
     56 
     57 filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus mpv --no-audio-display %c
     58 filextype *.pdf,*.ps,*.eps,*.ps.gz,*.djvu,*.epub,*.cbz,*.cbr,*.cb7 zathura %f 2>/dev/null &,
     59 fileviewer *.pdf pdftotext -l 1 -nopgbrk %c -
     60 fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.qt,*.divx,*.as[fx],*mp3,*.flac file
     61 filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,*.as[fx] mpv %f 2>/dev/null &,
     62 
     63 fileview *.tar.gz atool -l --format=tar %f 2>/dev/null | awk '{$1=$2=$3=$4=$5=""; print $0}'
     64 fileview *.zip,*.cbz    atool -l --format=zip %f 2>/dev/null | tail +4 | awk '{$1=$2=$3=""; print $0}'
     65 fileview *.rar,*.cbr    atool -l --format=rar %f 2>/dev/null | tail +9 | awk '{$1=$2=$3=$4=""; print $0}'
     66 fileview *.7z,*.cb7     atool -l --format=7z %f 2>/dev/null | tail +20 | awk '{$1=$2=$3=$4=$5=""; print $0}'
     67 filetype *.zip,*.7z,*.rar,*.tar.gz,*.tar.xz ext %f
     68 
     69 fileviewer *.[1-8] man ./%c | col -b
     70 filetype *.[1-8] man ./%c
     71 
     72 fileviewer *.jpg,*.jpeg,*.png,*.ico,*.gif vifmimg draw %px %py %pw %ph %c %pc vifmimg clear
     73 filextype *.bmp,*.jpg,*.jpeg,*.png,*.ico,*.gif,*.xpm  rotdir %f 2>/dev/null | sxiv -ia 2>/dev/null &
     74 
     75 filextype *.svg inkscape %f 2>/dev/null &
     76 filextype *.xcf gimp %f 2>/dev/null &
     77 
     78 set vifminfo=dhistory,chistory,tui,shistory,phistory,fhistory,dirstack,registers,bookmarks,bmarks