chore(vifm): update configuration and theme

This commit is contained in:
Yorick Barbanneau 2025-03-16 21:10:30 +01:00
parent 9232baa632
commit 8d678f1222
2 changed files with 16 additions and 16 deletions

View file

@ -1,5 +1,4 @@
" vim: filetype=vifm :
" vim: filetype=vim :
" Command used to edit files in various contexts. The default is vim.
" If you would like to use another vi clone such as Elvis or Vile
" you will need to change this setting.
@ -56,7 +55,7 @@ set vimhelp
set norunexec
" List of color schemes to try (picks the first one supported by the terminal)
colorscheme base16-default-dark
colorscheme base16-default-dark
" Format for displaying time in file list. For example:
" TIME_STAMP_FORMAT=%m/%d-%H:%M
@ -173,7 +172,7 @@ fileviewer {*.pdf},<application/pdf> pdftotext -nopgbrk %c -
filetype {*.pdf},<application/pdf>,<video/*>
\ xdg-open
fileviewer {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
\ chafa -f sixel --polite on -s %pwx%ph --animate off %c
\ chafa -f sixel --polite on -s %pwx%ph --animate off %c
\ %pd %N
filetype {*.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm},<image/*>
\ xdg-open
@ -230,7 +229,7 @@ if has('win')
nnoremap yp :!echo %"d:gs!\!/! %i | clip<cr>
" Yank path to current file to Windows clipboard with forward slashes
nnoremap yf :!echo %"c:gs!\!/! %i | clip<cr>
elseif $WAYLAND_DISPLAY
elseif $WAYLAND_DISPLAY != ''
if executable('wl-copy')
" Yank current directory path into primary and selection clipboards
nnoremap yd :!echo -n %d | wl-copy %i &&
@ -239,7 +238,7 @@ elseif $WAYLAND_DISPLAY
nnoremap yf :!echo -n %c:p | wl-copy %i &&
\ echo -n %c:p | wl-copy -p %i<cr>
endif
elseif $DISPLAY
elseif $DISPLAY != ''
if executable('xclip')
" Yank current directory path into the clipboard
nnoremap yd :!echo %d | xclip %i<cr>
@ -266,9 +265,9 @@ nnoremap A cw
" nnoremap A cW
" Open console in current directory
if $DISPLAY && executable('xterm')
if $DISPLAY != '' && executable('xterm')
nnoremap ,t :!xterm &<cr>
elseif $TERMINAL
elseif $TERMINAL != ''
nnoremap ,t :!$TERMINAL &<cr>
endif
@ -299,7 +298,7 @@ nnoremap <a-o> :sync %c<cr>
" Swap panes
nnoremap <c-u> <c-w>x
" source somes plugins
" source some plugins
source ~/.config/vifm/devicons.vifm
" ------------------------------------------------------------------------------