From e146e947c52ac4adbe426b3f893faff1e46ed5f8 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 19 Apr 2016 15:24:25 +0100 Subject: Use GNU stow for dotfiles management --- vifm/.vifm/.gitignore | 3 + vifm/.vifm/colors/default.vifm | 52 +++++ vifm/.vifm/colors/matrix.vifm | 21 ++ vifm/.vifm/colors/solarized.vifm | 45 ++++ vifm/.vifm/colorschemes | 37 ++++ vifm/.vifm/scripts/README | 6 + vifm/.vifm/vifm-help.txt | 226 ++++++++++++++++++++ vifm/.vifm/vifmrc | 440 +++++++++++++++++++++++++++++++++++++++ vifm/colors/default.vifm | 52 ----- vifm/colors/matrix.vifm | 21 -- vifm/colors/solarized.vifm | 45 ---- vifm/colorschemes | 37 ---- vifm/scripts/README | 6 - vifm/vifm-help.txt | 226 -------------------- vifm/vifmrc | 440 --------------------------------------- 15 files changed, 830 insertions(+), 827 deletions(-) create mode 100644 vifm/.vifm/.gitignore create mode 100644 vifm/.vifm/colors/default.vifm create mode 100644 vifm/.vifm/colors/matrix.vifm create mode 100644 vifm/.vifm/colors/solarized.vifm create mode 100644 vifm/.vifm/colorschemes create mode 100644 vifm/.vifm/scripts/README create mode 100644 vifm/.vifm/vifm-help.txt create mode 100644 vifm/.vifm/vifmrc delete mode 100644 vifm/colors/default.vifm delete mode 100644 vifm/colors/matrix.vifm delete mode 100644 vifm/colors/solarized.vifm delete mode 100644 vifm/colorschemes delete mode 100644 vifm/scripts/README delete mode 100644 vifm/vifm-help.txt delete mode 100644 vifm/vifmrc (limited to 'vifm') diff --git a/vifm/.vifm/.gitignore b/vifm/.vifm/.gitignore new file mode 100644 index 0000000..8c6b1ef --- /dev/null +++ b/vifm/.vifm/.gitignore @@ -0,0 +1,3 @@ +Trash +vifminfo* +vimfiles diff --git a/vifm/.vifm/colors/default.vifm b/vifm/.vifm/colors/default.vifm new file mode 100644 index 0000000..c3c72dd --- /dev/null +++ b/vifm/.vifm/colors/default.vifm @@ -0,0 +1,52 @@ +" You can edit this file by hand. +" The " character at the beginning of a line comments out the line. +" Blank lines are ignored. + +" The Default color scheme is used for any directory that does not have +" a specified scheme and for parts of user interface like menus. A +" color scheme set for a base directory will also +" be used for the sub directories. + +" The standard ncurses colors are: +" Default = -1 = None, can be used for transparency or default color +" Black = 0 +" Red = 1 +" Green = 2 +" Yellow = 3 +" Blue = 4 +" Magenta = 5 +" Cyan = 6 +" White = 7 + +" Available style values (some of them can be combined): +" bold +" underline +" reverse or inverse +" standout +" none + +" Vifm supports 256 colors you can use color numbers 0-255 +" (requires properly set up terminal: set your TERM environment variable +" (directly or using resources) to some color terminal name (e.g. +" xterm-256color) from /usr/lib/terminfo/; you can check current number +" of colors in your terminal with tput colors command) + +" highlight group cterm=style ctermfg=foreground_color ctermbg=background_color + +highlight Win cterm=none ctermfg=white ctermbg=black +highlight Directory cterm=bold ctermfg=cyan ctermbg=default +highlight Link cterm=bold ctermfg=yellow 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 ctermfg=default ctermbg=blue +highlight TopLine cterm=none ctermfg=black ctermbg=white +highlight TopLineSel cterm=bold ctermfg=black ctermbg=default +highlight StatusLine cterm=bold ctermfg=black ctermbg=white +highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black +highlight CmdLine cterm=none ctermfg=white ctermbg=black +highlight ErrorMsg cterm=none ctermfg=red ctermbg=black +highlight Border cterm=none ctermfg=black ctermbg=white diff --git a/vifm/.vifm/colors/matrix.vifm b/vifm/.vifm/colors/matrix.vifm new file mode 100644 index 0000000..70a9f76 --- /dev/null +++ b/vifm/.vifm/colors/matrix.vifm @@ -0,0 +1,21 @@ +highlight Win cterm=none ctermfg=green ctermbg=black + +highlight TopLine cterm=none ctermfg=green ctermbg=none +highlight TopLineSel cterm=none ctermfg=green ctermbg=none +highlight StatusLine cterm=none ctermfg=green ctermbg=none +highlight Border cterm=none ctermfg=green ctermbg=none + +highlight Selected cterm=bold ctermfg=red ctermbg=default +highlight CurrLine cterm=bold ctermfg=black ctermbg=green + +highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black +highlight CmdLine cterm=none ctermfg=white ctermbg=black +highlight ErrorMsg cterm=none ctermfg=red ctermbg=black + +highlight Directory cterm=none ctermfg=blue ctermbg=default +highlight Link cterm=none ctermfg=yellow ctermbg=default +highlight BrokenLink cterm=none ctermfg=red ctermbg=default +highlight Socket cterm=none ctermfg=yellow ctermbg=default +highlight Device cterm=none ctermfg=yellow ctermbg=default +highlight Fifo cterm=none ctermfg=yellow ctermbg=default +highlight Executable cterm=none ctermfg=green ctermbg=default diff --git a/vifm/.vifm/colors/solarized.vifm b/vifm/.vifm/colors/solarized.vifm new file mode 100644 index 0000000..a792bd9 --- /dev/null +++ b/vifm/.vifm/colors/solarized.vifm @@ -0,0 +1,45 @@ +" VIFM COLORS +" solarized dark +" based on: https://github.com/istib/dotfiles/blob/master/vifm/vifm-colors + +" Default = -1 = None, can be used for transparency or default color +" Black = 0 +" Red = 1 +" Green = 2 +" Yellow = 3 +" Blue = 4 +" Magenta = 5 +" Cyan = 6 +" White = 7 + +" STYLES +" bold +" underline +" reverse or inverse +" standout +" none + + +highlight clear + +highlight Win cterm=none ctermfg=default ctermbg=none + +highlight TopLine cterm=none ctermfg=blue ctermbg=none +highlight TopLineSel cterm=none ctermfg=blue ctermbg=none +highlight StatusLine cterm=none ctermfg=blue ctermbg=none +highlight Border cterm=none ctermfg=blue ctermbg=none + +highlight Selected cterm=bold ctermfg=magenta ctermbg=default +highlight CurrLine cterm=bold ctermfg=default ctermbg=blue + +highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black +highlight CmdLine cterm=none ctermfg=white ctermbg=black +highlight ErrorMsg cterm=none ctermfg=red ctermbg=black + +highlight Directory cterm=none ctermfg=cyan ctermbg=default +highlight Link cterm=none ctermfg=yellow ctermbg=default +highlight BrokenLink cterm=none ctermfg=red ctermbg=default +highlight Socket cterm=none ctermfg=magenta ctermbg=default +highlight Device cterm=none ctermfg=red ctermbg=default +highlight Fifo cterm=none ctermfg=cyan ctermbg=default +highlight Executable cterm=none ctermfg=green ctermbg=default diff --git a/vifm/.vifm/colorschemes b/vifm/.vifm/colorschemes new file mode 100644 index 0000000..006bb44 --- /dev/null +++ b/vifm/.vifm/colorschemes @@ -0,0 +1,37 @@ +# You can edit this file by hand. +# The # character at the beginning of a line comments out the line. +# Blank lines are ignored. + +# The Default color scheme is used for any directory that does not have +# a specified scheme. A color scheme set for a base directory will also +# be used for the sub directories. + +# The standard ncurses colors are: +# Black = 0 +# Red = 1 +# Green = 2 +# Yellow = 3 +# Blue = 4 +# Magenta = 5 +# Cyan = 6 +# White = 7 + +# COLORSCHEME=OneWordDescription +# DIRECTORY=/Full/Path/To/Base/Directory +# COLOR=Window_name=foreground_color_number=background_color_number + + +COLORSCHEME=Default +DIRECTORY=/ +COLOR=MENU=white=black +COLOR=BORDER=black=white +COLOR=WIN=white=black +COLOR=STATUS_BAR=white=black +COLOR=CURR_LINE=white=blue +COLOR=DIRECTORY=cyan=black +COLOR=LINK=yellow=black +COLOR=SOCKET=magenta=black +COLOR=DEVICE=red=black +COLOR=EXECUTABLE=green=black +COLOR=SELECTED=magenta=black +COLOR=CURRENT=blue=black diff --git a/vifm/.vifm/scripts/README b/vifm/.vifm/scripts/README new file mode 100644 index 0000000..8165c2f --- /dev/null +++ b/vifm/.vifm/scripts/README @@ -0,0 +1,6 @@ +This directory is dedicated for user-supplied scripts/executables. +vifm modifies its PATH environment variable to let user run those +scripts without specifying full path. All subdirectories are added +as well. File in a subdirectory overrules file with the same name +in parent directories. Restart might be needed to recognize files +in newly created or renamed subdirectories. diff --git a/vifm/.vifm/vifm-help.txt b/vifm/.vifm/vifm-help.txt new file mode 100644 index 0000000..2b6bbba --- /dev/null +++ b/vifm/.vifm/vifm-help.txt @@ -0,0 +1,226 @@ +The basic vi key bindings are used to move through the files and popup + windows. + + k is up + j is down + + h is updir + l is handle file and is the same as Return. + + Ctrl-c or the Escape key will cancel most operations. + Ctrl-l will clear and redraw the screen. + + gg top of list + G bottom of list + cw change word is used to rename a file. + m [a-z][A-Z][0-9] to set bookmark + ' letter to goto bookmark + v start or stop visualy selecting files. This works with the j and k keys + for movement. This is different then in vi in that v in visual mode will + leave the selected files highlighted. If you want to clear the selected + files Ctrl-c or Esc will unselect the files. + dd - the default setting is to move the selected files to the trash + directory. + yy - will yank the selected files. + p - will copy the yanked files to the current directory or move the files + to the current directory if they were deleted with dd or :d or if the + files were yanked 'yy' from the Trash directory. + + Space or Tab to switch lists. + + Most movement commands also accept a count 12j would move down 12 lines. + [count] % percent of file list + [count] j or k + [count] G or gg + [count] dd or yy the count is from the current file downward. + :[count] user command is not yet implemented. + :[count] command + The only builtin :[count] command is :[count]d[elete]. :3d would delete + three files starting at the current file position moving down. + + :number - move to the line number :12 would move to the 12th line. + :0 move to the top of the list. + :$ move to the bottom of the list. + + Return or l - handle file + Default file type program or if on a directory enter the directory + + Ctrl-g toggles full file information window. + Ctrl-b - jump back one page. + Ctrl-f - jump forward one page. + + /regular expression pattern - will highlight all files matching the pattern + in the current file list. /\.c$ would highlight all the .c files. + N find previous match. + n find next match. + + Files can also be tagged or selected with 't'. Pressing 't' on a selected + file will unselect it. This can be used by itself to select files or with a + /search pattern or with visually selected files. + + :commands + :com is a menu of user commands + :com name action - will set a new user command + Unlike vim user commands do not have to start with a capital letter. + User commands are run in a shell by default. To run a command in + the background you must set it as a background command with & at the end + of the commands action. + :com rm rm %f & + + :apropos manpage - will create a menu with the results from the + apropos command. + :com! name action - will overwrite a preciously set command. + :delc command_name will remove the command_name user command + :fil regular_expression pattern will filter the files out of the directory + listing that match the regular expression. + :fil \.o$ - would filter all files ending in .o from the filelist. + :empty will permanently remove 'rm -fr' files from the Trash directory. + :locate filename - will create a menu with the results from the locate + command. + :sh will start a shell + :q or :x will exit vifm + :! program will execute the program in a shell + :!command & will run the process in the background. + programs that write to stdout like ls will create an error message + showing partial output of the command. + :!! same as :! but will pause the screen before returning to vifm. + :!!ls -l + :e load file into vi + :only - switch to a one window view. + :pwd - show the present working directory + :ch[ange] - create a menu window to alter a files properties. + :cd - change directory + :cd ~/bin + :s[ort] - popup menu of different sorting methods + :sp[lit] - switch to a two window view. + :his[tory] - popup menu of directories visited + :jobs - shows menu of current backgrounded processes. + :view - toggle on and off the quick file view. + :h[elp] - this crude help file + :marks - popup menu of bookmarks + :screen toggles whether to use the screen program or not. + :sync - change the other panel to the current panel directory. + + +command macros + %a user arguments + %f all of the selected files + %F all of the selected files in the other directory list. + %d current directory name + %D other file list directory name + :com mv mv %f %D + would set the mv command to mv all of the selected files to the other + directory. + + If you want a command to accept arguments you must use %a. + :com mkdir mkdir %a & + :com mygrep vim "+grep %a" + %a is simply replaced with the user arguments and the arguments are + considered to be optional. + :com lsl ls -l %a | less - would run ls -l | less with or without + an argument being given. + +search patterns can be set with :com name /pattern + :com backup /~$ + + + file filters + The basic vim folding key bindings are used for filtering files. + zO show the filtered files + zM Filter the files matching the filename filter. + zo show all the dot files + zm filter all the .dot files + zf filter all the selected files + This will work with all selecting methods. Visually selecting files, + using a / search pattern or in combination with 't'. + :fil[ter] regular expression + :in[vert] invert the filter + All directorys will show the ../ file no matter what the filter setting is + with the exception of the / directory. + Each file list has its own filter. + filtered files are not checked in / search or :commands + + file name filters can be set with :com name fil pattern + :com ofiles fil \.o$ + +Configuration. + + The default configuration file is ~/.vifm/vifmrc. + If you want to change any settings vifm must not be running when you edit + the file as it will overwrite any changes you make when it exits. + + Screen configuration. If you use the screen program, vifm can be configured + to use a new screen window for opening files or running :!programs. + +Misc. + Ctrl-c or Escape to clear all selected files + + vifm.vim is a vim plugin that allows the use of vifm from vim. It is + included in the source tarball but it is not installed by default and must + be manually placed in either the default vim/plugin directory or in + ~/.vim/plugin/ + To use vifm to load a file into a running vim use the following commands: + :Edit - open a file in the current buffer. + :Split - split the buffer and open a file. + :Vsplit - vertically split a buffer and open a file. + :Diff - open a file to compare to the current file using the vim :diff + command. + You can edit the vifm.vim script to change the command name used if they + conflict with other user commands. + + Starting options: + /full/path/to/directoryone - using vifm /usr/local will start vifm + with the /usr/local directory. The default is to start vifm in + the current directory. + /full/path/to/directorytwo - using two full paths will start vifm with + the first path in the left file list and the second path in the right + file list. + --version - will print the version number and exit. + --help - will show help file. + -f - will run vifm but selecting a file will write the file name to + ~/.vifm/vimfiles instead of opening the file. This is used for the + vifm.vim script to load files from vifm into a running vim. + +Menus + bookmarks escape or Ctrl-c to abort j and k to move through + dd on a bookmark to remove. + + sort menu j and k to move - Escape or Ctrl-c to clear - return or l to + select and exit the menu. + +Reserved :commands + ! + change + cd + cmap + com + d + delc + e + empty + fi + fil + file + filter + h + help + his + history + in + invert + map + marks + nmap + pw + pwd + q + s + screen + sh + sort + unmap + view + vifm + vmap + x + diff --git a/vifm/.vifm/vifmrc b/vifm/.vifm/vifmrc new file mode 100644 index 0000000..8a301db --- /dev/null +++ b/vifm/.vifm/vifmrc @@ -0,0 +1,440 @@ +" vim: filetype=vifm : +" Sample configuration file for vifm (last updated: 26 Sep, 2015) +" 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. + +" ------------------------------------------------------------------------------ + +" This is the actual command used to start vi. 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 + +" Trash Directory +" The default is to move files that are deleted with dd or :d to +" the trash directory. If you change this you will not be able to move +" files by deleting them and then using p to put the file in the new location. +" I recommend not changing this until you are familiar with vifm. +" This probably shouldn't be an option. + +set trash + +" This is how many directories to store in the directory history. + +set history=100 + +" Automatically resolve symbolic links on l or Enter. + +set nofollowlinks + +" With this option turned on you can run partially entered commands with +" unambiguous beginning using :! (e.g. :!Te instead of :!Terminal or :!Te). + +set fastrun + +" Natural sort of (version) numbers within text. + +set sortnumbers + +" Maximum number of changes that can be undone. + +set undolevels=100 + +" If you installed the vim.txt help file set vimhelp. +" If would rather use a plain text help file set novimhelp. + +set novimhelp + +" If you would like to run an executable file when you +" press return on the file name set this. + +set norunexec + +" Use KiB, MiB, ... instead of KB, MB, ... + +set noiec + +" Selected color scheme + +colorscheme solarized.vifm + +" The FUSE_HOME directory will be used as a root dir for all FUSE mounts. +" Unless it exists with write/exec permissions set, vifm will attempt to +" create it. + +set fusehome=/tmp/vifm_FUSE + +" Format for displaying time in file list. For example: +" TIME_STAMP_FORMAT=%m/%d-%H:%M +" See man date or man strftime for details. + +set timefmt=%m/%d\ %H:%M + +" Show list of matches on tab completion in command-line mode + +set wildmenu + +" Ignore case in search patterns unless it contains at least one uppercase +" letter + +set ignorecase +set smartcase + +" Don't highlight search results automatically + +set nohlsearch + +" Use increment searching (search while typing) +set incsearch + +" Try to leave some space from cursor to upper/lower border in lists + +set scrolloff=4 + +" Don't do too many requests to slow file systems + +if !has('win') + set slowfs=curlftpfs +endif + +" Set custom status line look + +set statusline=" %t%= %A %10u:%-7g %15s %20d " + +" ------------------------------------------------------------------------------ + +" :mark mark /full/directory/path [filename] + +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 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 +command link ln -s -r %d/%f %D + +" ------------------------------------------------------------------------------ + +" The file type is for the default programs to be used with +" a file extension. +" :filetype pattern1,pattern2 defaultprogram,program2 +" :fileviewer pattern1,pattern2 consoleviewer +" The other programs for the file type can be accessed with the :file command +" The command macros %f, %F, %d, %F may be used in the commands. +" The %a macro is ignored. To use a % you must put %%. + +" For automated FUSE mounts, you must register an extension with :file[x]type +" in one of following formats: +" +" :filetype extensions FUSE_MOUNT|some_mount_command using %SOURCE_FILE and %DESTINATION_DIR variables +" %SOURCE_FILE and %DESTINATION_DIR are filled in by vifm at runtime. +" A sample line might look like this: +" :filetype *.zip,*.jar,*.war,*.ear FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR +" +" :filetype extensions FUSE_MOUNT2|some_mount_command using %PARAM and %DESTINATION_DIR variables +" %PARAM and %DESTINATION_DIR are filled in by vifm at runtime. +" A sample line might look like this: +" :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR +" %PARAM value is filled from the first line of file (whole line). +" Example first line for SshMount filetype: root@127.0.0.1:/ +" +" You can also add %CLEAR if you want to clear screen before running FUSE +" program. + +" Pdf +filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c +fileviewer *.pdf pdftotext -nopgbrk %c - + +" PostScript +filextype *.ps,*.eps,*.ps.gz + \ {View in zathura} + \ zathura %f, + \ {View in gv} + \ gv %c %i &, + +" Djvu +filextype *.djvu + \ {View in zathura} + \ zathura %f, + \ {View in apvlv} + \ apvlv %f, + +" Audio +filetype *.wav,*.mp3,*.flac,*.ogg,*.m4a,*.wma,*.ape,*.ac3 + \ mpv %f, + \ {Play using ffplay} + \ ffplay -nodisp %c, + \ {Play using MPlayer} + \ mplayer %f, + \ ffplay %c, +fileviewer *.mp3 mp3info +fileviewer *.flac soxi + +" Video +filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.vob,*.flv,*.m2v,*.mov,*.webm,*.ts,*.m4v + \ {View using vlc} + \ vlc %c, + \ {View using ffplay} + \ ffplay -fs %c, + \ {View using Dragon} + \ dragon %f, + \ {View using mplayer} + \ mplayer %f, +fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.vob,*.flv,*.m2v,*.mov,*.webm,*.ts,*.m4v + \ ffprobe -pretty %c 2>&1 + +" Web +filextype *.html,*.htm + \ {Open with uzbl} + \ qutebrowser %f %i &, + \ {Open with dwb} + \ dwb %f %i &, + \ {Open with firefox} + \ firefox %f &, +filetype *.html,*.htm links, lynx + +" Object +filetype *.o nm %f | less + +" Man page +filetype *.[1-8] man ./%c +fileviewer *.[1-8] man ./%c | col -b + +" Image +filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm + \ {View in feh} + \ feh %d --scale-down --start-at %d/%c 2>/dev/null &, + \ {View in sxiv} + \ sxiv, + \ {View in gpicview} + \ gpicview %c, + \ {View in shotwell} + \ shotwell, +fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm convert -identify %f -verbose /dev/null + +" MD5 +filetype *.md5 + \ {Check MD5 hash sum} + \ md5sum -c %f, + +" GPG signature +filetype *.asc + \ {Check signature} + \ !!gpg --verify %c, + +" GMSH file +filetype *.geo, *.msh, *.pos + \ {Open in gmsh} + \ gmsh %d, + +" Torrent +filetype *.torrent ktorrent %f & +fileviewer *.torrent dumptorrent -v %c + +" FuseZipMount +filetype *.zip,*.jar,*.war,*.ear,*.oxt + \ {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 + +" ArchiveMount +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 + +" Rar2FsMount and rar archives +filetype *.rar + \ {Mount with rar2fs} + \ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR, +fileviewer *.rar unrar v %c + +" IsoMount +filetype *.iso + \ {Mount with fuseiso} + \ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR, + +" SshMount +filetype *.ssh + \ {Mount with sshfs} + \ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR, + +" FtpMount +filetype *.ftp + \ {Mount with curlftpfs} + \ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR, + +" Fuse7z and 7z archives +filetype *.7z + \ {Mount with fuse-7z} + \ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR, +fileviewer *.7z 7z l %c + +" Office files +filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx libreoffice %f & +fileviewer *.doc catdoc %c +fileviewer *.docx, docx2txt.pl %f - + +" TuDu files +filetype *.tudu tudu -f %c + +" Qt projects +filextype *.pro qtcreator %f & + +" Directories +filextype */ + \ {View in thunar} + \ Thunar %f &, + +" Syntax highlighting in preview +" +" Explicitly set highlight type for some extensions +" +" 256-color terminal +" fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dante --syntax c %c +" fileviewer Makefile,Makefile.* highlight -O xterm256 -s dante --syntax make %c +" +" 16-color terminal +" fileviewer *.c,*.h highlight -O ansi -s dante %c +" +" Or leave it for automatic detection +" +" fileviewer *[^/] pygmentize -O style=monokai -f console256 -g + +" Displaying pictures in terminal +" +" fileviewer *.jpg,*.png shellpic %c + +" Open all other files with default system programs (you can also remove all +" :file[x]type commands above to ensure they don't interfere with system-wide +" settings). By default all unknown files are opened with 'vi[x]cmd' +" uncommenting one of lines below will result in ignoring 'vi[x]cmd' option +" for unknown file types. +" For *nix: +" filetype * xdg-open +" For OS X: +" filetype * open +" For Windows: +" filetype * start, explorer + +" ------------------------------------------------------------------------------ + +" 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) +" +" windo set viewcolumns=-{name}..,6{}. + +" Filter-out build and temporary files +" +" windo filter! /^.*\.(lo|o|d|class|py[co])$|.*~$/ + +" ------------------------------------------------------------------------------ + +" Sample mappings + +" Start shell in current directory +nnoremap s :shell + +" Display sorting dialog +nnoremap S :sort + +" Toggle visibility of preview window +nnoremap w :view +vnoremap w :viewgv + +" Open file in existing instance of gvim +nnoremap o :!gvim --remote-tab-silent %f +" Open file in new instance of gvim +nnoremap O :!gvim %f + +" Open file in the background using its default program +nnoremap gb :file &l + +" Yank current directory path into the clipboard +nnoremap yd :!echo %d | xclip %i + +" Yank current file path into the clipboard +nnoremap yf :!echo %c:p | xclip %i + +" Mappings for faster renaming +nnoremap I cw +nnoremap cc cw +nnoremap A cw + +" Open console in current directory +nnoremap ,t :!xterm & + +" Open vim to edit vifmrc and apply settings after returning to vifm +nnoremap ,c :write | execute ':!vim $MYVIFMRC' | restart +" Open gvim to edit vifmrc +nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC & + +" Toggle wrap setting on ,w key +nnoremap ,w :set wrap! + +" Example of standard two-panel file managers mappings +nnoremap :!less %f +nnoremap :edit +nnoremap :copy +nnoremap :move +nnoremap :mkdir +nnoremap :delete + +" ------------------------------------------------------------------------------ + +" Various customization examples + +" Use ag (the silver searcher) instead of grep +" +" set grepprg=ag\ --line-numbers\ %i\ %a\ %s + +" Add additional place to look for executables +" +" let $PATH=$HOME.'/bin/fuse:'.$PATH + +" Block particular shortcut +" +" nnoremap + +" My settings +set relativenumber diff --git a/vifm/colors/default.vifm b/vifm/colors/default.vifm deleted file mode 100644 index c3c72dd..0000000 --- a/vifm/colors/default.vifm +++ /dev/null @@ -1,52 +0,0 @@ -" You can edit this file by hand. -" The " character at the beginning of a line comments out the line. -" Blank lines are ignored. - -" The Default color scheme is used for any directory that does not have -" a specified scheme and for parts of user interface like menus. A -" color scheme set for a base directory will also -" be used for the sub directories. - -" The standard ncurses colors are: -" Default = -1 = None, can be used for transparency or default color -" Black = 0 -" Red = 1 -" Green = 2 -" Yellow = 3 -" Blue = 4 -" Magenta = 5 -" Cyan = 6 -" White = 7 - -" Available style values (some of them can be combined): -" bold -" underline -" reverse or inverse -" standout -" none - -" Vifm supports 256 colors you can use color numbers 0-255 -" (requires properly set up terminal: set your TERM environment variable -" (directly or using resources) to some color terminal name (e.g. -" xterm-256color) from /usr/lib/terminfo/; you can check current number -" of colors in your terminal with tput colors command) - -" highlight group cterm=style ctermfg=foreground_color ctermbg=background_color - -highlight Win cterm=none ctermfg=white ctermbg=black -highlight Directory cterm=bold ctermfg=cyan ctermbg=default -highlight Link cterm=bold ctermfg=yellow 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 ctermfg=default ctermbg=blue -highlight TopLine cterm=none ctermfg=black ctermbg=white -highlight TopLineSel cterm=bold ctermfg=black ctermbg=default -highlight StatusLine cterm=bold ctermfg=black ctermbg=white -highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black -highlight CmdLine cterm=none ctermfg=white ctermbg=black -highlight ErrorMsg cterm=none ctermfg=red ctermbg=black -highlight Border cterm=none ctermfg=black ctermbg=white diff --git a/vifm/colors/matrix.vifm b/vifm/colors/matrix.vifm deleted file mode 100644 index 70a9f76..0000000 --- a/vifm/colors/matrix.vifm +++ /dev/null @@ -1,21 +0,0 @@ -highlight Win cterm=none ctermfg=green ctermbg=black - -highlight TopLine cterm=none ctermfg=green ctermbg=none -highlight TopLineSel cterm=none ctermfg=green ctermbg=none -highlight StatusLine cterm=none ctermfg=green ctermbg=none -highlight Border cterm=none ctermfg=green ctermbg=none - -highlight Selected cterm=bold ctermfg=red ctermbg=default -highlight CurrLine cterm=bold ctermfg=black ctermbg=green - -highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black -highlight CmdLine cterm=none ctermfg=white ctermbg=black -highlight ErrorMsg cterm=none ctermfg=red ctermbg=black - -highlight Directory cterm=none ctermfg=blue ctermbg=default -highlight Link cterm=none ctermfg=yellow ctermbg=default -highlight BrokenLink cterm=none ctermfg=red ctermbg=default -highlight Socket cterm=none ctermfg=yellow ctermbg=default -highlight Device cterm=none ctermfg=yellow ctermbg=default -highlight Fifo cterm=none ctermfg=yellow ctermbg=default -highlight Executable cterm=none ctermfg=green ctermbg=default diff --git a/vifm/colors/solarized.vifm b/vifm/colors/solarized.vifm deleted file mode 100644 index a792bd9..0000000 --- a/vifm/colors/solarized.vifm +++ /dev/null @@ -1,45 +0,0 @@ -" VIFM COLORS -" solarized dark -" based on: https://github.com/istib/dotfiles/blob/master/vifm/vifm-colors - -" Default = -1 = None, can be used for transparency or default color -" Black = 0 -" Red = 1 -" Green = 2 -" Yellow = 3 -" Blue = 4 -" Magenta = 5 -" Cyan = 6 -" White = 7 - -" STYLES -" bold -" underline -" reverse or inverse -" standout -" none - - -highlight clear - -highlight Win cterm=none ctermfg=default ctermbg=none - -highlight TopLine cterm=none ctermfg=blue ctermbg=none -highlight TopLineSel cterm=none ctermfg=blue ctermbg=none -highlight StatusLine cterm=none ctermfg=blue ctermbg=none -highlight Border cterm=none ctermfg=blue ctermbg=none - -highlight Selected cterm=bold ctermfg=magenta ctermbg=default -highlight CurrLine cterm=bold ctermfg=default ctermbg=blue - -highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black -highlight CmdLine cterm=none ctermfg=white ctermbg=black -highlight ErrorMsg cterm=none ctermfg=red ctermbg=black - -highlight Directory cterm=none ctermfg=cyan ctermbg=default -highlight Link cterm=none ctermfg=yellow ctermbg=default -highlight BrokenLink cterm=none ctermfg=red ctermbg=default -highlight Socket cterm=none ctermfg=magenta ctermbg=default -highlight Device cterm=none ctermfg=red ctermbg=default -highlight Fifo cterm=none ctermfg=cyan ctermbg=default -highlight Executable cterm=none ctermfg=green ctermbg=default diff --git a/vifm/colorschemes b/vifm/colorschemes deleted file mode 100644 index 006bb44..0000000 --- a/vifm/colorschemes +++ /dev/null @@ -1,37 +0,0 @@ -# You can edit this file by hand. -# The # character at the beginning of a line comments out the line. -# Blank lines are ignored. - -# The Default color scheme is used for any directory that does not have -# a specified scheme. A color scheme set for a base directory will also -# be used for the sub directories. - -# The standard ncurses colors are: -# Black = 0 -# Red = 1 -# Green = 2 -# Yellow = 3 -# Blue = 4 -# Magenta = 5 -# Cyan = 6 -# White = 7 - -# COLORSCHEME=OneWordDescription -# DIRECTORY=/Full/Path/To/Base/Directory -# COLOR=Window_name=foreground_color_number=background_color_number - - -COLORSCHEME=Default -DIRECTORY=/ -COLOR=MENU=white=black -COLOR=BORDER=black=white -COLOR=WIN=white=black -COLOR=STATUS_BAR=white=black -COLOR=CURR_LINE=white=blue -COLOR=DIRECTORY=cyan=black -COLOR=LINK=yellow=black -COLOR=SOCKET=magenta=black -COLOR=DEVICE=red=black -COLOR=EXECUTABLE=green=black -COLOR=SELECTED=magenta=black -COLOR=CURRENT=blue=black diff --git a/vifm/scripts/README b/vifm/scripts/README deleted file mode 100644 index 8165c2f..0000000 --- a/vifm/scripts/README +++ /dev/null @@ -1,6 +0,0 @@ -This directory is dedicated for user-supplied scripts/executables. -vifm modifies its PATH environment variable to let user run those -scripts without specifying full path. All subdirectories are added -as well. File in a subdirectory overrules file with the same name -in parent directories. Restart might be needed to recognize files -in newly created or renamed subdirectories. diff --git a/vifm/vifm-help.txt b/vifm/vifm-help.txt deleted file mode 100644 index 2b6bbba..0000000 --- a/vifm/vifm-help.txt +++ /dev/null @@ -1,226 +0,0 @@ -The basic vi key bindings are used to move through the files and popup - windows. - - k is up - j is down - - h is updir - l is handle file and is the same as Return. - - Ctrl-c or the Escape key will cancel most operations. - Ctrl-l will clear and redraw the screen. - - gg top of list - G bottom of list - cw change word is used to rename a file. - m [a-z][A-Z][0-9] to set bookmark - ' letter to goto bookmark - v start or stop visualy selecting files. This works with the j and k keys - for movement. This is different then in vi in that v in visual mode will - leave the selected files highlighted. If you want to clear the selected - files Ctrl-c or Esc will unselect the files. - dd - the default setting is to move the selected files to the trash - directory. - yy - will yank the selected files. - p - will copy the yanked files to the current directory or move the files - to the current directory if they were deleted with dd or :d or if the - files were yanked 'yy' from the Trash directory. - - Space or Tab to switch lists. - - Most movement commands also accept a count 12j would move down 12 lines. - [count] % percent of file list - [count] j or k - [count] G or gg - [count] dd or yy the count is from the current file downward. - :[count] user command is not yet implemented. - :[count] command - The only builtin :[count] command is :[count]d[elete]. :3d would delete - three files starting at the current file position moving down. - - :number - move to the line number :12 would move to the 12th line. - :0 move to the top of the list. - :$ move to the bottom of the list. - - Return or l - handle file - Default file type program or if on a directory enter the directory - - Ctrl-g toggles full file information window. - Ctrl-b - jump back one page. - Ctrl-f - jump forward one page. - - /regular expression pattern - will highlight all files matching the pattern - in the current file list. /\.c$ would highlight all the .c files. - N find previous match. - n find next match. - - Files can also be tagged or selected with 't'. Pressing 't' on a selected - file will unselect it. This can be used by itself to select files or with a - /search pattern or with visually selected files. - - :commands - :com is a menu of user commands - :com name action - will set a new user command - Unlike vim user commands do not have to start with a capital letter. - User commands are run in a shell by default. To run a command in - the background you must set it as a background command with & at the end - of the commands action. - :com rm rm %f & - - :apropos manpage - will create a menu with the results from the - apropos command. - :com! name action - will overwrite a preciously set command. - :delc command_name will remove the command_name user command - :fil regular_expression pattern will filter the files out of the directory - listing that match the regular expression. - :fil \.o$ - would filter all files ending in .o from the filelist. - :empty will permanently remove 'rm -fr' files from the Trash directory. - :locate filename - will create a menu with the results from the locate - command. - :sh will start a shell - :q or :x will exit vifm - :! program will execute the program in a shell - :!command & will run the process in the background. - programs that write to stdout like ls will create an error message - showing partial output of the command. - :!! same as :! but will pause the screen before returning to vifm. - :!!ls -l - :e load file into vi - :only - switch to a one window view. - :pwd - show the present working directory - :ch[ange] - create a menu window to alter a files properties. - :cd - change directory - :cd ~/bin - :s[ort] - popup menu of different sorting methods - :sp[lit] - switch to a two window view. - :his[tory] - popup menu of directories visited - :jobs - shows menu of current backgrounded processes. - :view - toggle on and off the quick file view. - :h[elp] - this crude help file - :marks - popup menu of bookmarks - :screen toggles whether to use the screen program or not. - :sync - change the other panel to the current panel directory. - - -command macros - %a user arguments - %f all of the selected files - %F all of the selected files in the other directory list. - %d current directory name - %D other file list directory name - :com mv mv %f %D - would set the mv command to mv all of the selected files to the other - directory. - - If you want a command to accept arguments you must use %a. - :com mkdir mkdir %a & - :com mygrep vim "+grep %a" - %a is simply replaced with the user arguments and the arguments are - considered to be optional. - :com lsl ls -l %a | less - would run ls -l | less with or without - an argument being given. - -search patterns can be set with :com name /pattern - :com backup /~$ - - - file filters - The basic vim folding key bindings are used for filtering files. - zO show the filtered files - zM Filter the files matching the filename filter. - zo show all the dot files - zm filter all the .dot files - zf filter all the selected files - This will work with all selecting methods. Visually selecting files, - using a / search pattern or in combination with 't'. - :fil[ter] regular expression - :in[vert] invert the filter - All directorys will show the ../ file no matter what the filter setting is - with the exception of the / directory. - Each file list has its own filter. - filtered files are not checked in / search or :commands - - file name filters can be set with :com name fil pattern - :com ofiles fil \.o$ - -Configuration. - - The default configuration file is ~/.vifm/vifmrc. - If you want to change any settings vifm must not be running when you edit - the file as it will overwrite any changes you make when it exits. - - Screen configuration. If you use the screen program, vifm can be configured - to use a new screen window for opening files or running :!programs. - -Misc. - Ctrl-c or Escape to clear all selected files - - vifm.vim is a vim plugin that allows the use of vifm from vim. It is - included in the source tarball but it is not installed by default and must - be manually placed in either the default vim/plugin directory or in - ~/.vim/plugin/ - To use vifm to load a file into a running vim use the following commands: - :Edit - open a file in the current buffer. - :Split - split the buffer and open a file. - :Vsplit - vertically split a buffer and open a file. - :Diff - open a file to compare to the current file using the vim :diff - command. - You can edit the vifm.vim script to change the command name used if they - conflict with other user commands. - - Starting options: - /full/path/to/directoryone - using vifm /usr/local will start vifm - with the /usr/local directory. The default is to start vifm in - the current directory. - /full/path/to/directorytwo - using two full paths will start vifm with - the first path in the left file list and the second path in the right - file list. - --version - will print the version number and exit. - --help - will show help file. - -f - will run vifm but selecting a file will write the file name to - ~/.vifm/vimfiles instead of opening the file. This is used for the - vifm.vim script to load files from vifm into a running vim. - -Menus - bookmarks escape or Ctrl-c to abort j and k to move through - dd on a bookmark to remove. - - sort menu j and k to move - Escape or Ctrl-c to clear - return or l to - select and exit the menu. - -Reserved :commands - ! - change - cd - cmap - com - d - delc - e - empty - fi - fil - file - filter - h - help - his - history - in - invert - map - marks - nmap - pw - pwd - q - s - screen - sh - sort - unmap - view - vifm - vmap - x - diff --git a/vifm/vifmrc b/vifm/vifmrc deleted file mode 100644 index 8a301db..0000000 --- a/vifm/vifmrc +++ /dev/null @@ -1,440 +0,0 @@ -" vim: filetype=vifm : -" Sample configuration file for vifm (last updated: 26 Sep, 2015) -" 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. - -" ------------------------------------------------------------------------------ - -" This is the actual command used to start vi. 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 - -" Trash Directory -" The default is to move files that are deleted with dd or :d to -" the trash directory. If you change this you will not be able to move -" files by deleting them and then using p to put the file in the new location. -" I recommend not changing this until you are familiar with vifm. -" This probably shouldn't be an option. - -set trash - -" This is how many directories to store in the directory history. - -set history=100 - -" Automatically resolve symbolic links on l or Enter. - -set nofollowlinks - -" With this option turned on you can run partially entered commands with -" unambiguous beginning using :! (e.g. :!Te instead of :!Terminal or :!Te). - -set fastrun - -" Natural sort of (version) numbers within text. - -set sortnumbers - -" Maximum number of changes that can be undone. - -set undolevels=100 - -" If you installed the vim.txt help file set vimhelp. -" If would rather use a plain text help file set novimhelp. - -set novimhelp - -" If you would like to run an executable file when you -" press return on the file name set this. - -set norunexec - -" Use KiB, MiB, ... instead of KB, MB, ... - -set noiec - -" Selected color scheme - -colorscheme solarized.vifm - -" The FUSE_HOME directory will be used as a root dir for all FUSE mounts. -" Unless it exists with write/exec permissions set, vifm will attempt to -" create it. - -set fusehome=/tmp/vifm_FUSE - -" Format for displaying time in file list. For example: -" TIME_STAMP_FORMAT=%m/%d-%H:%M -" See man date or man strftime for details. - -set timefmt=%m/%d\ %H:%M - -" Show list of matches on tab completion in command-line mode - -set wildmenu - -" Ignore case in search patterns unless it contains at least one uppercase -" letter - -set ignorecase -set smartcase - -" Don't highlight search results automatically - -set nohlsearch - -" Use increment searching (search while typing) -set incsearch - -" Try to leave some space from cursor to upper/lower border in lists - -set scrolloff=4 - -" Don't do too many requests to slow file systems - -if !has('win') - set slowfs=curlftpfs -endif - -" Set custom status line look - -set statusline=" %t%= %A %10u:%-7g %15s %20d " - -" ------------------------------------------------------------------------------ - -" :mark mark /full/directory/path [filename] - -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 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 -command link ln -s -r %d/%f %D - -" ------------------------------------------------------------------------------ - -" The file type is for the default programs to be used with -" a file extension. -" :filetype pattern1,pattern2 defaultprogram,program2 -" :fileviewer pattern1,pattern2 consoleviewer -" The other programs for the file type can be accessed with the :file command -" The command macros %f, %F, %d, %F may be used in the commands. -" The %a macro is ignored. To use a % you must put %%. - -" For automated FUSE mounts, you must register an extension with :file[x]type -" in one of following formats: -" -" :filetype extensions FUSE_MOUNT|some_mount_command using %SOURCE_FILE and %DESTINATION_DIR variables -" %SOURCE_FILE and %DESTINATION_DIR are filled in by vifm at runtime. -" A sample line might look like this: -" :filetype *.zip,*.jar,*.war,*.ear FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR -" -" :filetype extensions FUSE_MOUNT2|some_mount_command using %PARAM and %DESTINATION_DIR variables -" %PARAM and %DESTINATION_DIR are filled in by vifm at runtime. -" A sample line might look like this: -" :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR -" %PARAM value is filled from the first line of file (whole line). -" Example first line for SshMount filetype: root@127.0.0.1:/ -" -" You can also add %CLEAR if you want to clear screen before running FUSE -" program. - -" Pdf -filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c -fileviewer *.pdf pdftotext -nopgbrk %c - - -" PostScript -filextype *.ps,*.eps,*.ps.gz - \ {View in zathura} - \ zathura %f, - \ {View in gv} - \ gv %c %i &, - -" Djvu -filextype *.djvu - \ {View in zathura} - \ zathura %f, - \ {View in apvlv} - \ apvlv %f, - -" Audio -filetype *.wav,*.mp3,*.flac,*.ogg,*.m4a,*.wma,*.ape,*.ac3 - \ mpv %f, - \ {Play using ffplay} - \ ffplay -nodisp %c, - \ {Play using MPlayer} - \ mplayer %f, - \ ffplay %c, -fileviewer *.mp3 mp3info -fileviewer *.flac soxi - -" Video -filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.vob,*.flv,*.m2v,*.mov,*.webm,*.ts,*.m4v - \ {View using vlc} - \ vlc %c, - \ {View using ffplay} - \ ffplay -fs %c, - \ {View using Dragon} - \ dragon %f, - \ {View using mplayer} - \ mplayer %f, -fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.vob,*.flv,*.m2v,*.mov,*.webm,*.ts,*.m4v - \ ffprobe -pretty %c 2>&1 - -" Web -filextype *.html,*.htm - \ {Open with uzbl} - \ qutebrowser %f %i &, - \ {Open with dwb} - \ dwb %f %i &, - \ {Open with firefox} - \ firefox %f &, -filetype *.html,*.htm links, lynx - -" Object -filetype *.o nm %f | less - -" Man page -filetype *.[1-8] man ./%c -fileviewer *.[1-8] man ./%c | col -b - -" Image -filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm - \ {View in feh} - \ feh %d --scale-down --start-at %d/%c 2>/dev/null &, - \ {View in sxiv} - \ sxiv, - \ {View in gpicview} - \ gpicview %c, - \ {View in shotwell} - \ shotwell, -fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm convert -identify %f -verbose /dev/null - -" MD5 -filetype *.md5 - \ {Check MD5 hash sum} - \ md5sum -c %f, - -" GPG signature -filetype *.asc - \ {Check signature} - \ !!gpg --verify %c, - -" GMSH file -filetype *.geo, *.msh, *.pos - \ {Open in gmsh} - \ gmsh %d, - -" Torrent -filetype *.torrent ktorrent %f & -fileviewer *.torrent dumptorrent -v %c - -" FuseZipMount -filetype *.zip,*.jar,*.war,*.ear,*.oxt - \ {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 - -" ArchiveMount -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 - -" Rar2FsMount and rar archives -filetype *.rar - \ {Mount with rar2fs} - \ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR, -fileviewer *.rar unrar v %c - -" IsoMount -filetype *.iso - \ {Mount with fuseiso} - \ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR, - -" SshMount -filetype *.ssh - \ {Mount with sshfs} - \ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR, - -" FtpMount -filetype *.ftp - \ {Mount with curlftpfs} - \ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR, - -" Fuse7z and 7z archives -filetype *.7z - \ {Mount with fuse-7z} - \ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR, -fileviewer *.7z 7z l %c - -" Office files -filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx libreoffice %f & -fileviewer *.doc catdoc %c -fileviewer *.docx, docx2txt.pl %f - - -" TuDu files -filetype *.tudu tudu -f %c - -" Qt projects -filextype *.pro qtcreator %f & - -" Directories -filextype */ - \ {View in thunar} - \ Thunar %f &, - -" Syntax highlighting in preview -" -" Explicitly set highlight type for some extensions -" -" 256-color terminal -" fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dante --syntax c %c -" fileviewer Makefile,Makefile.* highlight -O xterm256 -s dante --syntax make %c -" -" 16-color terminal -" fileviewer *.c,*.h highlight -O ansi -s dante %c -" -" Or leave it for automatic detection -" -" fileviewer *[^/] pygmentize -O style=monokai -f console256 -g - -" Displaying pictures in terminal -" -" fileviewer *.jpg,*.png shellpic %c - -" Open all other files with default system programs (you can also remove all -" :file[x]type commands above to ensure they don't interfere with system-wide -" settings). By default all unknown files are opened with 'vi[x]cmd' -" uncommenting one of lines below will result in ignoring 'vi[x]cmd' option -" for unknown file types. -" For *nix: -" filetype * xdg-open -" For OS X: -" filetype * open -" For Windows: -" filetype * start, explorer - -" ------------------------------------------------------------------------------ - -" 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) -" -" windo set viewcolumns=-{name}..,6{}. - -" Filter-out build and temporary files -" -" windo filter! /^.*\.(lo|o|d|class|py[co])$|.*~$/ - -" ------------------------------------------------------------------------------ - -" Sample mappings - -" Start shell in current directory -nnoremap s :shell - -" Display sorting dialog -nnoremap S :sort - -" Toggle visibility of preview window -nnoremap w :view -vnoremap w :viewgv - -" Open file in existing instance of gvim -nnoremap o :!gvim --remote-tab-silent %f -" Open file in new instance of gvim -nnoremap O :!gvim %f - -" Open file in the background using its default program -nnoremap gb :file &l - -" Yank current directory path into the clipboard -nnoremap yd :!echo %d | xclip %i - -" Yank current file path into the clipboard -nnoremap yf :!echo %c:p | xclip %i - -" Mappings for faster renaming -nnoremap I cw -nnoremap cc cw -nnoremap A cw - -" Open console in current directory -nnoremap ,t :!xterm & - -" Open vim to edit vifmrc and apply settings after returning to vifm -nnoremap ,c :write | execute ':!vim $MYVIFMRC' | restart -" Open gvim to edit vifmrc -nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC & - -" Toggle wrap setting on ,w key -nnoremap ,w :set wrap! - -" Example of standard two-panel file managers mappings -nnoremap :!less %f -nnoremap :edit -nnoremap :copy -nnoremap :move -nnoremap :mkdir -nnoremap :delete - -" ------------------------------------------------------------------------------ - -" Various customization examples - -" Use ag (the silver searcher) instead of grep -" -" set grepprg=ag\ --line-numbers\ %i\ %a\ %s - -" Add additional place to look for executables -" -" let $PATH=$HOME.'/bin/fuse:'.$PATH - -" Block particular shortcut -" -" nnoremap - -" My settings -set relativenumber -- cgit v1.2.3