dots/.config/vifm/vifmrc

57 lines
1.4 KiB
Plaintext

colorscheme eighties
set ignorecase
set incsearch
set nofollowlinks
set nohlsearch
set scrolloff=4
set smartcase
set sortnumbers
set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
set syscalls
set statusline=" %t%= %A %10u:%-7g %20d "
set timefmt='%Y/%m/%d %H:%M'
set undolevels=100
set vicmd=$EDITOR
set wildmenu
set wildstyle=popup
map R :restart<CR>
map E :!$EDITOR %f<CR>
map mkd :mkdir<space>
map X :!aunpack %f &<CR>
nnoremap s :shell<cr>
nnoremap w :view<cr>
vnoremap w :view<cr>gv
nnoremap yd :!echo %d | wl-copy %i<cr>
nnoremap yf :!echo %c:p | wl-copy %i<cr>
nnoremap I cw<c-a>
nnoremap A cw
nnoremap ,w :set wrap!<cr>
nmap <space> tj
nmap q ZQ
fileviewer <text/html> elinks -dump %c
filetype *.csv,*.xlsx sc-im %c
fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw
filetype *.pdf,*.ps,*.eps,*.ps.gz,*.djvu,*.epub zathura %f 2>/dev/null &
filetype *.zip,*.rar,*.tar.gz,*.iso,*.xz,*.tar,*.tgz aunpack %f
fileviewer *.zip,*.rar,*.tar.gz atool -l %f
filetype *.[1-8] man ./%c
fileviewer *.[1-8] man ./%c | col -b
filetype <audio/*> mpv --no-video %c
filetype <video/*> mpv %f 2>/dev/null &
fileviewer <audio/*,video/*> exiftool
filetype <image/*> rotdir %f 2>/dev/null | imv 2>/dev/null &
fileviewer <image/*> sixel %c %pw %ph %pd %pc
filetype *.torrent torwrap add %c
fileviewer *.torrent transmission-show
set vifminfo=dhistory,chistory,tui,shistory,phistory,fhistory,dirstack,registers