Rework ViFM configuration and theme

This commit is contained in:
Yorick Barbanneau 2023-12-24 18:01:25 +01:00
parent 5bef12e558
commit dcc6fce4c6
4 changed files with 91 additions and 12 deletions

View file

@ -168,11 +168,14 @@ command! reload :write | restart full
"
" You can also add %CLEAR if you want to clear screen before running FUSE
" program. There is also %FOREGROUND, which is useful for entering passwords.
fileviewer .*/,*/ ls --group-directories-first --classify --color %c
fileviewer {*.pdf},<application/pdf> pdftotext -nopgbrk %c -
filetype {*.pdf},<application/pdf>
\ xdg-open
fileviewer {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
\ chafa -f sixel -s %pwx%ph %c:p %pd %N 2>/dev/null
filetype {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
\ xdg-open
fileviewer *.zip,*.jar,*.war,*.ear,*.oxt tar -tf %f
fileviewer *.tgz,*.tar.gz tar -tzf %c
fileviewer *.tar.bz2,*.tbz2 tar -tjf %c
@ -185,12 +188,12 @@ fileviewer {*.rar},<application/x-rar> unrar v %c
fileviewer {*.7z},<application/x-7z-compressed> 7z l %c
fileviewer <text/*> bat --color always --wrap never --pager never %c -p
filetype * xdg-open
fileviewer * echo "Unknown file type..."
" Customize view columns a bit (enable ellipsis for truncated file names)
set viewcolumns=-{name}..,6{}.
" Show vertical border
set fillchars=vborder:
set fillchars=vborder:
" Filter-out build and temporary files
" filter! {*.lo,*.o,*.d,*.class,*.pyc,*.pyo,.*~}
@ -294,6 +297,9 @@ nnoremap <a-o> :sync %c<cr>
" Swap panes
nnoremap <c-u> <c-w>x
" source somes plugins
source ~/.config/vifm/devicons.vifm
" ------------------------------------------------------------------------------
" Various customization examples
" ------------------------------------------------------------------------------