summary refs log tree commit diff
path: root/.config/vifm/vifmrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/vifm/vifmrc')
-rw-r--r--.config/vifm/vifmrc286
1 files changed, 0 insertions, 286 deletions
diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc
deleted file mode 100644
index c8429b1..0000000
--- a/.config/vifm/vifmrc
+++ /dev/null
@@ -1,286 +0,0 @@
-" vim: filetype=vim :
-
-colorscheme nihoncolors
-
-set vicmd=nvim
-set trash
-set history=100
-set nofollowlinks
-set sortnumbers
-set undolevels=100
-set vimhelp
-set norunexec
-set timefmt=%m/%d\ %H:%M
-set wildmenu
-set wildstyle=popup
-set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
-set ignorecase
-set smartcase
-set nohlsearch
-set incsearch
-set scrolloff=4
-
-" Don't do too many requests to slow file systems
-if !has('win')
-    set slowfs=curlftpfs
-endif
-
-set statusline="  Hint: %z%= %A %10u:%-7g %15s %20d  "
-
-" ------------------------------------------------------------------------------
-
-mark b ~/bin/
-mark h ~/
-
-" ------------------------------------------------------------------------------
-
-" :com[mand][!] command_name action
-" The following macros can be used in a command
-" %a is replaced with the user arguments.
-" %c the current file under the cursor.
-" %C the current file under the cursor in the other directory.
-" %f the current selected file, or files.
-" %F the current selected file, or files in the other directory.
-" %b same as %f %F.
-" %d the current directory name.
-" %D the other window directory name.
-" %m run the command in a menu window
-
-command! df df -h %m 2> /dev/null
-command! diff vi -d %f %F
-command! zip zip -r %f.zip %f
-command! run !! ./%f
-command! make !!make %a
-command! mkcd :mkdir %a | cd %a
-command! vgrep vi "+grep %a"
-command! reload :write | restart
-
-" ------------------------------------------------------------------------------
-
-" Pdf
-filextype *.pdf
-        \ {View in zathura}
-        \ zathura --fork %c:p,
-        \ {View in mupdf}
-        \ mupdf %c &,
-fileviewer *.pdf pdftotext -nopgbrk %c -
-
-filextype *.ps,*.eps,*.ps.gz,*.djvu,*.cbz
-        \ {View in zathura}
-        \ zathura --fork %c:p,
-
-" Audio
-filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus
-       \ {Play using mpv}
-       \ mpv --no-video %c,
-       \ {Play using ffplay}
-       \ ffplay -nodisp %c,
-       \ {Enqueue using xap}
-       \ xap add %c:p,
-fileviewer *.mp3 mp3info
-
-" Video
-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]
-        \ {View using mpv}
-        \ mpv %f,
-        \ {View using mpv (muted)}
-        \ mpv --mute %f,
-        \ {View using ffplay}
-        \ ffplay -fs %f,
-        \ {Enqueue using xap}
-        \ xap add %f,
-        \ {Open in LosslessCut}
-        \ lossless-cut.desktop %f,
-        \ {Chromecast}
-        \ go-chromecast --first --with-ui load %f,
-
-fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
-          \*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
-          \*.as[fx]
-        \ ffprobe -pretty %c 2>&1,
-
-fileviewer *.mp4,*.mkv,*.webm,
-          \*.m4a,*.mp3,*.opus,
-        \ mediainfo %c 2>&1,
-
-" Web
-filextype *.html,*.htm
-        \ {Open with w3m}
-        \ w3m %f %i &,
-        \ {Open with firefox}
-        \ firefox %f &,
-
-" Object
-filetype *.o nm %f | less
-
-" Man page
-filetype *.[1-8] man ./%c
-fileviewer *.[1-8] man ./%c | col -b
-
-" Images
-filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm,*.webp,*.svg
-        \ {View in qimgv}
-        \ swaymsg exec -- qimgv '%f:p',
-        \ {View in swayimg}
-        \ swayimg %c,
-        \ {View in imv}
-        \ imv %c,
-        \ {View in mvi}
-        \ mvi %c,
-        \ {Edit with GIMP}
-        \ swaymsg exec -- $HOME/AppImages/gimp.AppImage %f:p,
-        \ {Edit with Darktable}
-        \ swaymsg exec -- darktable %f:p,
-        \ {View mediainfo}
-        \ mediainfo %c,
-fileviewer *.jpg,*.jpeg,*.png,*.gif,*.svg
-        \ swaymsg exec -- swayimg %f:p >/dev/null 2>&1 ; mediainfo %c 2>&1,
-" fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
-"       \ vifm-show-sixel %c %pw %ph %pd 2>/dev/null || mediainfo %c 2>&1
-
-" MD5
-filetype *.md5
-       \ {Check MD5 hash sum}
-       \ md5sum -c %f %S,
-" SHA1
-filetype *.sha1
-       \ {Check SHA1 hash sum}
-       \ sha1sum -c %f %S,
-" SHA256
-filetype *.sha256
-       \ {Check SHA256 hash sum}
-       \ sha256sum -c %f %S,
-" SHA512
-filetype *.sha512
-       \ {Check SHA512 hash sum}
-       \ sha512sum -c %f %S,
-" GPG signature
-filetype *.asc
-       \ {Check signature}
-       \ !!gpg --verify %c,
-
-filetype *.zip,*.jar,*.war,*.ear,*.oxt,*.apkg
-       \ {Extract here}
-       \ tar -xf %c,
-filetype *.zip
-       \ {Extract ZIP}
-       \ unzip %c
-fileviewer *.zip,*.jar,*.war,*.ear,*.oxt unzip -l %c
-
-filetype *.7z
-       \ {Extract 7z}
-       \ 7z x %c,
-fileviewer *.7z 7z l %c
-
-filetype *.rar
-       \ {Extract RAR}
-       \ unrar x %c,
-fileviewer *.rar unrar v %c
-
-" ArchiveMount
-fileviewer *.tgz,*.tar.gz tar -tzf %c
-fileviewer *.tar.bz2,*.tbz2 tar -tjf %c
-fileviewer *.tar.xz,*.txz tar -tJf %c
-fileviewer *.tar tar -tf %c
-
-filetype *.ove
-        \ {Open with Olive}
-        \ swx olive.desktop %d/%c,
-
-filetype *
-      \ {Open with nuke}
-      \ nuke %f,
-      \ {Open with nvim}
-      \ nvim %f,
-      \ {Copy file path}
-      \ url-launcher "%c:p",
-      \ {Check size}
-      \ ncdu -rx %c:p,
-
-" ------------------------------------------------------------------------------
-" FUSE
-
-command ssh
-\ : let $SSH_FILE = system('mktemp /tmp/vifm-XXXX.ssh')
-\ | execute '!echo ''%a'' > $SSH_FILE; ls $SSH_FILE %%U'
-" \ | execute 'normal <cr>'
-" \ | execute '!rm $SSH_FILE'
-
-fileviewer *.ssh cat %c
-filetype *.ssh
-        \ {Mount with sshfs}
-        \ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR,
-
-filetype *.encfs
-        \ {Mount with encfs}
-        \ FUSE_MOUNT2|encfs %PARAM %DESTINATION_DIR,
-
-" ------------------------------------------------------------------------------
-
-" What should be saved automatically between vifm runs
-" Like in previous versions of vifm
-" set vifminfo=options,filetypes,commands,bookmarks,dhistory,state,cs
-" Like in vi
-set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
-    \phistory,fhistory,dirstack,registers,bookmarks,bmarks
-
-" ------------------------------------------------------------------------------
-
-" Examples of configuring both panels
-
-" Customize view columns a bit (enable ellipsis for truncated file names)
-"
-" set viewcolumns=-{name}..,6{}.
-
-" Filter-out build and temporary files
-"
-" filter! /^.*\.(lo|o|d|class|py[co])$|.*~$/
-
-" ------------------------------------------------------------------------------
-
-" Start shell in current directory
-nnoremap s :shell<cr>
-" Display sorting dialog
-nnoremap S :sort<cr>
-
-" Toggle visibility of preview window
-nnoremap w :view<cr>
-vnoremap w :view<cr>gv
-
-" Choose fileviewer to use
-nnoremap gs :file<cr>
-" Open file in the background using its default program
-nnoremap gb :file &<cr>l
-
-" Yanking...
-nnoremap yf :!echo -n %c:p | wl-copy %i<cr>
-nnoremap yn :!echo -n %c | wl-copy %i<cr>
-nnoremap yd :!echo -n %d | wl-copy %i<cr>
-nnoremap yff :!cat -n %c:p | wl-copy %i<cr>
-
-" Mappings for faster renaming
-nnoremap I cw<c-a>
-nnoremap cc cw<c-u>
-nnoremap A cw
-
-" Open console in current directory
-nnoremap ;t :!swaymsg exec -- foot<cr>
-" Open editor to edit vifmrc and apply settings after returning to vifm
-nnoremap ;c :write | edit $MYVIFMRC | restart<cr>
-" Toggle wrap setting on ,w key
-" nnoremap ;w :if system(expand("awk 'BEGIN{print (%pw > %ph)}'")) | split! | else | vsplit! | endif<cr>
-
-nnoremap ;F :!fd -t f -e jpg -e png . %c:p:h | shuf | flipr -q -i -
-nnoremap ;I :!fd -t f -e jpg -e png -e gif . %c:p:h | shuf | imv -b 000000 -t 0.8
-nnoremap ;P :!~/bin/photosort/photosort -n -s -d /photos/ %c:p
-nnoremap ;w :!go-chromecast load --with-ui %f
-nnoremap ;R :!~/bin/rsyncez %f ?
-nnoremap ;t :!tailscale file cp --verbose %f DEST:
-
-nnoremap q :quit<cr>
-nnoremap - :goto ..<cr>
-nnoremap <esc> :hideui<cr>
-
-nnoremap