summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-07-18 20:44:53 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-07-18 20:44:53 +0200
commit4ecc62976ab69eca2b7c93ea81fea4c9e8d15963 (patch)
treee4c6202a133679e2219c686e4b8374607143a3c9
parentRevert (diff)
downloaddotfiles-bsd-4ecc62976ab69eca2b7c93ea81fea4c9e8d15963.tar.gz
dotfiles-bsd-4ecc62976ab69eca2b7c93ea81fea4c9e8d15963.tar.bz2
dotfiles-bsd-4ecc62976ab69eca2b7c93ea81fea4c9e8d15963.tar.xz
dotfiles-bsd-4ecc62976ab69eca2b7c93ea81fea4c9e8d15963.tar.zst
dotfiles-bsd-4ecc62976ab69eca2b7c93ea81fea4c9e8d15963.zip
Added vifm rice
Diffstat (limited to '')
-rw-r--r--.config/vifm/colors/jozan.vifm33
-rw-r--r--.config/vifm/vifmrc81
-rw-r--r--.gitignore4
3 files changed, 118 insertions, 0 deletions
diff --git a/.config/vifm/colors/jozan.vifm b/.config/vifm/colors/jozan.vifm
new file mode 100644
index 0000000..3dcced4
--- /dev/null
+++ b/.config/vifm/colors/jozan.vifm
@@ -0,0 +1,33 @@
+highlight clear
+highlight Win cterm=none ctermfg=white ctermbg=none
+highlight Directory cterm=bold ctermfg=cyan ctermbg=default
+highlight Link cterm=bold ctermfg=blue ctermbg=default
+highlight BrokenLink cterm=bold ctermfg=red ctermbg=default
+highlight Socket cterm=bold ctermfg=magenta ctermbg=default
+highlight Device cterm=bold ctermfg=red ctermbg=default
+highlight Fifo cterm=bold ctermfg=cyan ctermbg=default
+highlight Executable cterm=bold ctermfg=green ctermbg=default
+highlight Selected cterm=bold ctermfg=magenta ctermbg=default
+highlight CurrLine cterm=bold,reverse ctermfg=default ctermbg=default
+highlight TopLine cterm=none ctermfg=black ctermbg=blue
+highlight TopLineSel cterm=bold ctermfg=black ctermbg=default
+highlight StatusLine cterm=bold ctermfg=black ctermbg=blue
+highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black
+highlight CmdLine cterm=none ctermfg=white ctermbg=none
+highlight ErrorMsg cterm=none ctermfg=red ctermbg=black
+highlight Border cterm=none ctermfg=white ctermbg=none
+highlight JobLine cterm=bold,reverse ctermfg=black ctermbg=magenta
+highlight SuggestBox cterm=bold ctermfg=default ctermbg=default
+highlight CmpMismatch cterm=bold ctermfg=white ctermbg=red
+highlight AuxWin cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
+highlight TabLine cterm=none ctermfg=white ctermbg=black
+highlight TabLineSel cterm=bold,reverse ctermfg=default ctermbg=default
+highlight User1 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
+highlight User2 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
+highlight User3 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
+highlight User4 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
+highlight User5 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
+highlight User6 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
+highlight User7 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
+highlight User8 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
+highlight User9 cterm=bold,underline,reverse,standout,italic ctermfg=default ctermbg=default
diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc
new file mode 100644
index 0000000..175401e
--- /dev/null
+++ b/.config/vifm/vifmrc
@@ -0,0 +1,81 @@
+" vim: filetype=vifm
+source ~/.config/vifm/vifmshortcuts
+
+set vicmd=nvim
+set syscalls
+set nofollowlinks
+set sortnumbers
+set undolevels=100
+set wildmenu
+set wildstyle=popup
+set scrolloff=4
+set ignorecase
+set smartcase
+set nohlsearch
+set incsearch
+set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
+colorscheme jozan
+
+map <C-h> <C-w>h
+map <C-j> <C-w>j
+map <C-k> <C-w>k
+map <C-l> <C-w>l
+map <C-o> <C-w>o
+map <C-s> <C-w>s
+map <C-v> <C-w>v
+
+map R :restart<CR>
+map x :!sxiv -ft * 2>/dev/null &<CR>
+nnoremap o :file &<cr>
+map E :!$EDITOR %f<CR>
+map mkd :mkdir<space>
+map bg :!setbg %f &<CR>
+map X :!ext %f &<CR>
+nnoremap S :shell<cr>
+nnoremap w :view<cr>
+vnoremap w :view<cr>gv
+nnoremap yd :!echo %d | xclip %i<cr>
+nnoremap yf :!echo %c:p | xclip %i<cr>
+nnoremap I cw<c-a>
+nnoremap cc cw<c-u>
+nnoremap A cw
+nnoremap ,w :set wrap!<cr>
+nnoremap zh za
+nmap <space> tj
+nmap q ZQ
+nnoremap <F2> :rename<CR>
+nnoremap <F7> :mkdir<space>
+map gh :cd ~/<CR>
+map gr :cd /<CR>
+map gm :cd /mnt<CR>
+
+fileview */ tree %c -L 1 --dirsfirst
+fileview ../ tree %c -L 1 --dirsfirst
+fileviewer *.html w3m -dump %c
+filextype *.html,*.htm firefox %f 2>/dev/null &
+
+fileviewer *.docx docx2txt %c -
+fileviewer *.odt odt2txt %c -
+
+filetype *.csv,*.xlsx sc-im %c
+fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" | cut -c -%pw
+
+filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus st -e mpv --no-audio-display --audio-channels=stereo --input-ipc-server=/tmp/mpvsoc$(date +%%s) %c 2>/dev/null &,
+filextype *.pdf,*.ps,*.eps,*.ps.gz,*.djvu,*.epub zathura %f 2>/dev/null &,
+fileviewer *.pdf pdftotext -l 1 -nopgbrk %c -
+fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.qt,*.divx,*.as[fx],*mp3,*.flac file
+filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,*.as[fx] mpv --audio-channels=stereo --input-ipc-server=/tmp/mpvsoc$(date +%%s) %f 2>/dev/null &,
+
+fileview *.zip,*.rar,*.tar.gz atool -l %f
+filetype *.zip,*.rar,*.tar.gz ext %f
+
+fileviewer *.[1-8] man ./%c | col -b
+filetype *.[1-8] man ./%c
+
+fileviewer *.jpg,*.jpeg,*.png,*.ico vifmimg draw %px %py %pw %ph %c %pc vifmimg clear
+filextype *.bmp,*.jpg,*.jpeg,*.png,*.ico,*.gif,*.xpm sxiv -ia %f 2>/dev/null &
+
+filextype *.svg inkscape %f 2>/dev/null &
+filextype *.xcf gimp %f 2>/dev/null &
+
+set vifminfo=dhistory,chistory,tui,shistory,phistory,fhistory,dirstack,registers,bookmarks,bmarks
diff --git a/.gitignore b/.gitignore
index 7f749bb..233464e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,6 @@
.config/zsh/history
.emacs.d/org/todo
+.config/vifm/scripts
+.config/vifm/vifm-help.txt
+.config/vifm/colors/Default.vifm
+.config/vifm/vifminfo