summaryrefslogtreecommitdiffstats
path: root/.config/vifm/vifmrc
blob: 1b551a854b4168f8a594a2f416532f41aa18c012 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
" vifm configuration

colorscheme solarized-dark

set dotdirs=treeleafsparent
set fastrun
set history=100
set ignorecase
set incsearch
set nofollowlinks
set scrolloff=4
set smartcase
set sortnumbers
set statusline="  %t %= %A %8u:%-6g %7E %18d  "
set syscalls
set timefmt="%Y-%m-%d %H:%M"
set vicmd="nvim"
set vifminfo=tui,dhistory,savedirs,chistory,shistory,phistory,fhistory
set wildmenu

filextype *.djvu,*.epub,*.pdf,*.ps zathura %c 2>/dev/null &
filextype *.bmp,*.gif,*.jpeg,*.jpg,*jxl,*.png,*.tif,*.tiff,*.webp nsxiv -a -b %f &
filetype  *.mp3,*.ogg mpv %f
filextype *.mp4,*.mp4.part,*.webm,*.webm.part,*.mkv mpv --no-terminal %f &
filextype *.html,*.htm chromium %f &
filetype  *.[1-8] man ./%c
filetype  *.tar,*.tar.bz2,*.tar.gz,*.tar.xz,*.tar.zst,*.tgz tar xf %f &
filetype  *.rar unrar %f &
filetype  *.zip unzip %f &

command! diff vim -d %b
command! du ncdu
command! mkcd :mkdir %a | cd %a

nnoremap s :shell<cr>
nnoremap I cw<c-a>
nnoremap A cw
nnoremap T :!st &<cr>

cnoremap <C-p> <Up>
cnoremap <C-n> <Down>

" vim: ft=vifm