Update vifm config

This commit is contained in:
Wiktor Zykubek 2020-03-17 23:27:59 +01:00
parent 9a705294dc
commit 7095ac87c6
3 changed files with 55 additions and 30 deletions

View File

@ -2,10 +2,10 @@
LocationMode=path-bar
ShowHidden=true
ShowSizeColumn=true
GeometryX=540
GeometryY=237
GeometryX=263
GeometryY=81
GeometryWidth=840
GeometryHeight=630
SortColumn=name
SortOrder=ascending
SortColumn=modified
SortOrder=descending
StartupMode=recent

View File

@ -0,0 +1,30 @@
highlight clear
highlight Win ctermfg=white ctermbg=none cterm=none
highlight Directory ctermfg=blue ctermbg=default cterm=bold
highlight Link ctermfg=cyan ctermbg=default cterm=none
highlight BrokenLink ctermfg=red ctermbg=default cterm=bold
highlight Socket ctermfg=magenta ctermbg=default cterm=bold
highlight Device ctermfg=red ctermbg=default cterm=bold
highlight Fifo ctermfg=red ctermbg=default cterm=bold
highlight Executable ctermfg=green ctermbg=default cterm=bold
highlight Selected ctermfg=black ctermbg=8 cterm=bold
highlight CurrLine ctermfg=8 ctermbg=white cterm=bold,reverse
highlight TopLine ctermfg=none ctermbg=none cterm=none
highlight OtherLine ctermfg=7 ctermbg=none
highlight TopLineSel ctermfg=white ctermbg=none cterm=bold
highlight StatusLine ctermfg=7 ctermbg=234 cterm=none
highlight WildMenu ctermfg=4 ctermbg=black cterm=reverse
highlight CmdLine ctermfg=7 ctermbg=233 cterm=none
highlight ErrorMsg ctermfg=red ctermbg=233 cterm=none
highlight Border ctermfg=black ctermbg=none cterm=none
highlight JobLine ctermfg=black ctermbg=white cterm=none,reverse
highlight SuggestBox ctermfg=8 ctermbg=233 cterm=none
highlight CmpMismatch ctermfg=white ctermbg=red cterm=bold
highlight AuxWin ctermfg=default ctermbg=default cterm=none,underline,reverse,standout,italic
highlight TabLine ctermfg=9 ctermbg=0 cterm=none
highlight TabLineSel ctermfg=default ctermbg=default cterm=none,reverse
highlight /^.*\.(mp3|ogg|oga|flac|m4a)$/ ctermfg=magenta
highlight /^.*\.(jpg|jpeg|png|gif|tiff|webp|bmp|svg|svgz)$/ ctermfg=yellow
highlight /^.*\.(zip|gz|bz2|xz|tar|tgz|tbz2|7z|rar|iso|rpm|deb)$/ ctermfg=red

View File

@ -1,19 +1,15 @@
" vim: filetype=vifm :
" Sample configuration file for vifm (last updated: 2 June, 2019)
" You can edit this file by hand.
" The " character at the beginning of a line comments out the line.
" Blank lines are ignored.
" The basic format for each item is shown with an example.
"
" ██ ████
" ░░ ░██░
" ██ ██ ██ ██████ ██████████
" ░██ ░██░██░░░██░ ░░██░░██░░██
" ░░██ ░██ ░██ ░██ ░██ ░██ ░██
" ░░████ ░██ ░██ ░██ ░██ ░██
" ░░██ ░██ ░██ ███ ░██ ░██
" ░░ ░░ ░░ ░░░ ░░ ░░
" ------------------------------------------------------------------------------
" 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.
set vicmd=vim
" set vicmd=elvis\ -G\ termcap
" set vicmd=vile
" Editor
set vicmd=nvim
" This makes vifm perform file operations on its own instead of relying on
" standard utilities like `cp`. While using `cp` and alike is a more universal
@ -64,7 +60,7 @@ set norunexec
" Selected color scheme
colorscheme Default
colorscheme biual
" Format for displaying time in file list. For example:
" TIME_STAMP_FORMAT=%m/%d-%H:%M
@ -215,7 +211,7 @@ fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
" Web
filextype *.html,*.htm
\ {Open with dwb}
\ dwb %f %i &,
\ qutebrowser %f %i &,
\ {Open with firefox}
\ firefox %f &,
\ {Open with uzbl}
@ -231,14 +227,10 @@ fileviewer *.[1-8] man ./%c | col -b
" Images
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
\ {View in sxiv}
\ sxiv %f,
\ {View in gpicview}
\ gpicview %c,
\ {View in shotwell}
\ shotwell,
\ {View in feh}
\ feh -F %d --start-at %d/%c 2>/dev/null
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
\ identify %f
\ gimp %f
" OpenRaster
filextype *.ora
@ -376,8 +368,8 @@ filextype */
" What should be saved automatically between vifm sessions. Drop "savedirs"
" value if you don't want vifm to remember last visited directories for you.
set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
\phistory,fhistory,dirstack,registers,bookmarks,bmarks
set vifminfo=chistory,shistory,
\phistory,dirstack,registers,bookmarks,bmarks
" ------------------------------------------------------------------------------
@ -481,3 +473,6 @@ nnoremap <f8> :delete<cr>
" vifm --server-name "$VIFM_SERVER_NAME" --remote +"cd '$PWD'"
"
" let $VIFM_SERVER_NAME = v:servername
" vim: filetype=vifm