Update vifm config file and add theme
This commit is contained in:
parent
c6e5c6407a
commit
ca959d11e1
2 changed files with 50 additions and 13 deletions
29
vifm/colors/gruvbox.vifm
Normal file
29
vifm/colors/gruvbox.vifm
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
" gruvbox color scheme approximation for vifm
|
||||||
|
|
||||||
|
" Reset all styles first
|
||||||
|
highlight clear
|
||||||
|
|
||||||
|
highlight Border cterm=none ctermfg=235 ctermbg=default
|
||||||
|
|
||||||
|
highlight TopLine cterm=none ctermfg=214 ctermbg=235
|
||||||
|
highlight TopLineSel cterm=bold ctermfg=214 ctermbg=237
|
||||||
|
|
||||||
|
highlight Win cterm=none ctermfg=223 ctermbg=default
|
||||||
|
"highlight OtherWin cterm=none ctermfg=223 ctermbg=236
|
||||||
|
highlight Directory cterm=bold ctermfg=109 ctermbg=default
|
||||||
|
highlight CurrLine cterm=bold,inverse ctermfg=default ctermbg=default
|
||||||
|
highlight OtherLine cterm=bold ctermfg=default ctermbg=235
|
||||||
|
highlight Selected cterm=none ctermfg=223 ctermbg=237
|
||||||
|
|
||||||
|
highlight JobLine cterm=bold ctermfg=116 ctermbg=238
|
||||||
|
highlight StatusLine cterm=bold ctermfg=144 ctermbg=236
|
||||||
|
highlight ErrorMsg cterm=bold ctermfg=167 ctermbg=default
|
||||||
|
highlight WildMenu cterm=bold ctermfg=235 ctermbg=144
|
||||||
|
highlight CmdLine cterm=none ctermfg=223 ctermbg=default
|
||||||
|
|
||||||
|
highlight Executable cterm=bold ctermfg=142 ctermbg=default
|
||||||
|
highlight Link cterm=none ctermfg=132 ctermbg=default
|
||||||
|
highlight BrokenLink cterm=bold ctermfg=167 ctermbg=default
|
||||||
|
highlight Device cterm=none,standout ctermfg=214 ctermbg=default
|
||||||
|
highlight Fifo cterm=none ctermfg=172 ctermbg=default
|
||||||
|
highlight Socket cterm=bold ctermfg=223 ctermbg=default
|
||||||
34
vifm/vifmrc
34
vifm/vifmrc
|
|
@ -1,6 +1,6 @@
|
||||||
" vim: filetype=vifm :
|
" vim: filetype=vifm :
|
||||||
"
|
"
|
||||||
" Sample configuration file for vifm (last updated: 11 May, 2025)
|
" Sample configuration file for vifm (last updated: 7 September 2025)
|
||||||
"
|
"
|
||||||
" You can edit this file by hand. The " character at the beginning of a line
|
" 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
|
" comments out the line. Blank lines are ignored. The basic format for each
|
||||||
|
|
@ -43,6 +43,8 @@ elseif executable('vile')
|
||||||
elseif $EDITOR != ''
|
elseif $EDITOR != ''
|
||||||
echo 'Note: using `'.$EDITOR.'` as an editor'
|
echo 'Note: using `'.$EDITOR.'` as an editor'
|
||||||
let &vicmd = $EDITOR
|
let &vicmd = $EDITOR
|
||||||
|
elseif executable('vi')
|
||||||
|
set vicmd=vi
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" This makes vifm perform file operations on its own instead of relying on
|
" This makes vifm perform file operations on its own instead of relying on
|
||||||
|
|
@ -135,8 +137,12 @@ endif
|
||||||
" Add -s to the default value to suppress "Permission denied" errors
|
" Add -s to the default value to suppress "Permission denied" errors
|
||||||
set grepprg="grep -n -H -I -r -s %i %a %s"
|
set grepprg="grep -n -H -I -r -s %i %a %s"
|
||||||
|
|
||||||
|
" Enable preview of files in the right miller column (add `set miller` to turn
|
||||||
|
" it on)
|
||||||
|
set milleroptions+=rpreview:all
|
||||||
|
|
||||||
" List of color schemes to try (picks the first one supported by the terminal)
|
" List of color schemes to try (picks the first one supported by the terminal)
|
||||||
colorscheme Default-256 Default
|
colorscheme gruvbox
|
||||||
|
|
||||||
" ------------------------------------------------------------------------------
|
" ------------------------------------------------------------------------------
|
||||||
" Bookmarks
|
" Bookmarks
|
||||||
|
|
@ -180,8 +186,6 @@ command! reload :write | restart full
|
||||||
" File handlers and previewers
|
" File handlers and previewers
|
||||||
" ------------------------------------------------------------------------------
|
" ------------------------------------------------------------------------------
|
||||||
|
|
||||||
filetype {*.pdf},<application/pdf> xdg-open %c %i &
|
|
||||||
|
|
||||||
" Setting up handlers that are considered in all environments:
|
" Setting up handlers that are considered in all environments:
|
||||||
" filetype {pattern1,pattern2} program1,{Optional description}program2
|
" filetype {pattern1,pattern2} program1,{Optional description}program2
|
||||||
"
|
"
|
||||||
|
|
@ -277,15 +281,19 @@ fileviewer {*.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus,
|
||||||
filextype {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
filextype {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||||
\*.fl[icv],*.m2v,*.mov,*.webm,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
\*.fl[icv],*.m2v,*.mov,*.webm,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||||
\*.as[fx],*.unknown_video},
|
\*.as[fx],*.unknown_video},
|
||||||
\<video/*>
|
\<video/*> vlc %f
|
||||||
\ {View using ffplay}
|
" filextype {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||||
\ ffplay -fs -hide_banner -autoexit %f,
|
" \*.fl[icv],*.m2v,*.mov,*.webm,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||||
\ {View using Dragon}
|
" \*.as[fx],*.unknown_video},
|
||||||
\ dragon %f:p,
|
" \<video/*>
|
||||||
\ {View using mplayer}
|
" \ {View using ffplay}
|
||||||
\ mplayer %f,
|
" \ ffplay -fs -hide_banner -autoexit %f,
|
||||||
\ {Play using mpv}
|
" \ {View using Dragon}
|
||||||
\ mpv %f,
|
" \ dragon %f:p,
|
||||||
|
" \ {View using mplayer}
|
||||||
|
" \ mplayer %f,
|
||||||
|
" \ {Play using mpv}
|
||||||
|
" \ mpv %f,
|
||||||
fileviewer {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
fileviewer {*.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
|
||||||
\*.fl[icv],*.m2v,*.mov,*.webm,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
\*.fl[icv],*.m2v,*.mov,*.webm,*.mts,*.m4v,*.r[am],*.qt,*.divx,
|
||||||
\*.as[fx],*.unknown_video},
|
\*.as[fx],*.unknown_video},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue