123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520 |
- set vicmd=nvim
- set syscalls
- set trash
- set history=100
- set nofollowlinks
- set sortnumbers
- set undolevels=100
- set novimhelp
- set norunexec
- set timefmt=%d/%m\ %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
- if !has('win')
- set slowfs=curlftpfs
- endif
- set statusline=" Hint: %z%= %A %10u:%-7g %15s %20d "
- mark h ~/
- command! df df -h %m 2> /dev/null
- command! diff vim -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 vim "+grep %a"
- command! reload :write | restart
- filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c
- fileviewer *.pdf
- \ vifmimg pdfpreview %px %py %pw %ph %c
- \ %pc
- \ vifmimg clear
-
- filextype *.epub zathura %c %i &, apvlv %c, xpdf %c
- fileviewer *.epub
- \ vifmimg pdfpreview %px %py %pw %ph %c
- \ %pc
- \ vifmimg clear
-
- filextype *.ps,*.eps,*.ps.gz
- \ {View in zathura}
- \ zathura %f,
- \ {View in gv}
- \ gv %c %i &,
- filextype *.djvu
- \ {View in zathura}
- \ zathura %f,
- \ {View in apvlv}
- \ apvlv %f,
- filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus
- \ {View using cmus}
- \ alacritty -e cmus %f &,
- \ {Play using ffplay}
- \ ffplay -nodisp -autoexit %c,
- \ {Play using MPlayer}
- \ mplayer %f,
- fileviewer *.mp3 mp3info
- fileviewer *.flac soxi
- 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 ffplay}
- \ ffplay -fs -autoexit %f,
- \ {View using Dragon}
- \ dragon %f:p,
- \ {View using mplayer}
- \ mplayer %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]
- \ vifmimg videopreview %px %py %pw %ph %c
- \ %pc
- \ vifmimg clear
-
- filextype *.html,*.htm
- \ {Open with emacs}
- \ emacsclient -c %c &,
- \ {Open with vim}
- \ vim %c &,
- \ {Open with dwb}
- \ dwb %f %i &,
- \ {Open with firefox}
- \ firefox %f &,
- \ {Open with uzbl}
- \ uzbl-browser %f %i &,
- filetype *.html,*.htm links, lynx
- filetype *.o nm %f | less
- filetype *.[1-8] man ./%c
- fileviewer *.[1-8] man ./%c | col -b
- filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
- \ {View in sxiv}
- \ sxiv -ia %f &,
- \ {View in imv}
- \ imv -b 1D2330 -d %d &,
- \ {View in feh}
- \ feh %d &,
- \ {View in cacaview}
- \ cacaview %c &,
- fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm
- \ vifmimg draw %px %py %pw %ph %c
- \ %pc
- \ vifmimg clear
- fileviewer *.gif
- \ vifmimg gifpreview %px %py %pw %ph %c
- \ %pc
- \ vifmimg clear
- filextype *.ora
- \ {Edit in MyPaint}
- \ mypaint %f,
- filextype *.vym
- \ {Open with VYM}
- \ vym %f &,
- filetype *.md5
- \ {Check MD5 hash sum}
- \ md5sum -c %f %S,
- filetype *.sha1
- \ {Check SHA1 hash sum}
- \ sha1sum -c %f %S,
- filetype *.sha256
- \ {Check SHA256 hash sum}
- \ sha256sum -c %f %S,
- filetype *.sha512
- \ {Check SHA512 hash sum}
- \ sha512sum -c %f %S,
- filetype *.asc
- \ {Check signature}
- \ !!gpg --verify %c,
- filetype *.torrent ktorrent %f &
- fileviewer *.torrent dumptorrent -v %c
- filetype *.zip,*.jar,*.war,*.ear,*.oxt,*.apkg
- \ {Mount with fuse-zip}
- \ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR,
- \ {View contents}
- \ zip -sf %c | less,
- \ {Extract here}
- \ tar -xf %c,
- fileviewer *.zip,*.jar,*.war,*.ear,*.oxt zip -sf %c
- filetype *.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz
- \ {Mount with archivemount}
- \ FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR,
- fileviewer *.tgz,*.tar.gz tar -tzf %c
- fileviewer *.tar.bz2,*.tbz2 tar -tjf %c
- fileviewer *.tar.txz,*.txz xz --list %c
- fileviewer *.tar tar -tf %c
- filetype *.rar
- \ {Mount with rar2fs}
- \ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR,
- fileviewer *.rar unrar v %c
- filetype *.iso
- \ {Mount with fuseiso}
- \ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR,
- filetype *.ssh
- \ {Mount with sshfs}
- \ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR %FOREGROUND,
- filetype *.ftp
- \ {Mount with curlftpfs}
- \ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %FOREGROUND,
- filetype *.7z
- \ {Mount with fuse-7z}
- \ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR,
- fileviewer *.7z 7z l %c
- filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx libreoffice %f &
- fileviewer *.doc catdoc %c
- fileviewer *.docx docx2txt.pl %f -
- filetype *.tudu tudu -f %c
- filextype *.pro qtcreator %f &
- filextype */
- \ {View in thunar}
- \ Thunar %f &,
- set classify=' :dir:/, :exe:, :reg:, :link:'
- set classify+=' ::../::, ::*.sh::, ::*.[hc]pp::, ::*.[hc]::, ::/^copying|license$/::, ::.git/,,*.git/::, ::*.epub,,*.fb2,,*.djvu::, ::*.pdf::, ::*.htm,,*.html,,**.[sx]html,,*.xml::'
- set classify+=' ::*.7z,,*.ace,,*.arj,,*.bz2,,*.cpio,,*.deb,,*.dz,,*.gz,,*.jar,,*.lzh,,*.lzma,,*.rar,,*.rpm,,*.rz,,*.tar,,*.taz,,*.tb2,,*.tbz,,*.tbz2,,*.tgz,,*.tlz,,*.trz,,*.txz,,*.tz,,*.tz2,,*.xz,,*.z,,*.zip,,*.zoo::'
- set classify+=' ::*.bmp,,*.gif,,*.jpeg,,*.jpg,,*.ico,,*.png,,*.ppm,,*.svg,,*.svgz,,*.tga,,*.tif,,*.tiff,,*.xbm,,*.xcf,,*.xpm,,*.xspf,,*.xwd::'
- set classify+=' ::*.aac,,*.anx,,*.asf,,*.au,,*.axa,,*.flac,,*.m2a,,*.m4a,,*.mid,,*.midi,,*.mp3,,*.mpc,,*.oga,,*.ogg,,*.ogx,,*.ra,,*.ram,,*.rm,,*.spx,,*.wav,,*.wma,,*.ac3::'
- set classify+=' ::*.avi,,*.ts,,*.axv,,*.divx,,*.m2v,,*.m4p,,*.m4v,,.mka,,*.mkv,,*.mov,,*.mp4,,*.flv,,*.mp4v,,*.mpeg,,*.mpg,,*.nuv,,*.ogv,,*.pbm,,*.pgm,,*.qt,,*.vob,,*.wmv,,*.xvid::'
- set classify+=' ::*.doc,,*.docx::, ::*.xls,,*.xls[mx]::, ::*.pptx,,*.ppt::'
- set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
- \phistory,fhistory,dirstack,registers,bookmarks,bmarks
- nnoremap sx :!sxiv -t %d & <cr>
- nnoremap gp :!gimp %f & <cr>
- nnoremap s :shell<cr>
- nnoremap S :sort<cr>
- nnoremap w :view<cr>
- vnoremap w :view<cr>gv
- nnoremap gb :file &<cr>l
- 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 ,t :!alacritty &<cr>
- nnoremap ,c :write | edit $MYVIFMRC | restart<cr>
- nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC &<cr>
- nnoremap ,w :set wrap!<cr>
- nnoremap <f3> :!less %f<cr>
- nnoremap <f4> :edit<cr>
- nnoremap <f5> :copy<cr>
- nnoremap <f6> :move<cr>
- nnoremap <f7> :mkdir<space>
- nnoremap <f8> :delete<cr>
- " vifm --server-name "$VIFM_SERVER_NAME" --remote +"cd '$PWD'
|