VIMVRC(5)

πŸ“¦ version 0.9.1, in alpine 3.24, arch rolling, fedora 43, fedora 44

🌸 NAME 🌸

hi bestie πŸ’– welcome to vimivrc(5) β€” the manual page for the configuration files of the vimiv image viewer. yes we're doing config lore today, and yes it's iconic.


πŸ“ SYNOPSIS πŸ“

/etc/vimiv/vimivrc, $XDG_CONFIG_HOME/vimiv/vimivrc, ~/.vimiv/vimivrc

/etc/vimiv/keys.conf, $XDG_CONFIG_HOME/vimiv/keys.conf,
~/.vimiv/keys.conf

πŸ’« DESCRIPTION πŸ’«

okay so vimiv gets configured through two files:

  • the vimivrc for your basic configuration
  • the keys.conf for your keybindings

by default these files are installed to /etc/vimiv/. and listen, the best practice here (fr fr, do this) is to copy them over to $XDG_CONFIG_HOME/vimiv/ and then configure the copied files. leave the originals alone, they're innocent πŸ₯Ί

more info in a nicer format lives at:

http://karlch.github.io/vimiv/documentation/configuration/


✨ SETTINGS ✨

so all your settings go in the vimivrc file, and that file is split into four sections:

  • GENERAL
  • LIBRARY
  • EDIT
  • ALIASES

the first three are the ones that group actual settings, and the fourth is where you define aliases. what each setting means and what values are possible? explained right below, bestie 🫢

🌈 GENERAL 🌈

  • start_fullscreen, Bool β€” if yes, start fullscreen.
  • start_slideshow, Bool β€” if yes, start the slideshow at startup.
  • slideshow_delay, Float β€” set the delay for the slideshow.
  • shuffle, Bool β€” if yes, shuffle the images in the filelist randomly.
  • display_bar, Bool β€” if yes, show the statusbar at the bottom. else hide it.
heads up: error messages are still displayed even if the statusbar is hidden. the drama never stops πŸ’€
  • default_thumbsize, Tuple β€” size for the thumbnails, in the form of (x, y).
  • geometry, String β€” a string in the form of "WIDTHxHEIGHT" specifying the default size for the window.
note: not all window managers respect this setting. some of them simply do not care πŸ’…
  • recursive, Bool β€” if yes, search the given directory recursively for images at startup.
  • rescale_svg, Bool β€” if yes, rescale vector graphics automatically by reloading the image. otherwise just zoom as if they were a normal image.
  • overzoom, Float β€” a float defining the maximum amount to scale images up by trying to fit the window when first loading the image.
  • search_case_sensitive, Bool β€” if yes, search case sensitively. ignore case otherwise.
  • incsearch, Bool β€” if yes, search incrementally when typing.
  • copy_to_primary, Bool β€” if yes, copy to primary selection instead of clipboard.
  • commandline_padding, Int β€” padding to use in the command line and statusbar.
  • thumb_padding, Int β€” padding to use between thumbnails.
note: on top of the padding, the column spacing gets updated dynamically to best fit the current window width. she adapts πŸ’β€β™€οΈ
  • completion_height, Int β€” height of the completion menu when showing command line completions.
  • play_animations, Bool β€” if yes, animated gif are played. otherwise stay at the first/current frame.

πŸ¦‹ LIBRARY πŸ¦‹

  • start_show_library, Bool β€” if yes, always show the library at start-up.
  • library_width, Int β€” default width of the library when an image is open.
  • expand_lib, Bool β€” if yes, automatically expand the library to full window size if no image is open.
  • border_width, Int β€” width of the border separating library and image.
  • markup, String β€” markup used to highlight search results. this must be a correct markup opening in the form of one <span ...> element, because it gets closed with </span>.
  • show_hidden, Bool β€” if yes, show hidden files in the library and open hidden images.
  • desktop_start_dir, String β€” the directory in which vimiv should start if opened via the .desktop file.
  • file_check_amount, Int β€” the amount of files vimiv should check in a directory for whether they are images or not. this affects the size column of directories in the library. as soon as this number is reached, checks are stopped and a + is appended, e.g. 30+. a higher number increases precision and information at the cost of speed.
  • tilde_in_statusbar, Bool β€” if yes, collapse $HOME to ~ in the statusbar in the library.

πŸŽ€ EDIT πŸŽ€

  • autosave_images, Bool β€” if yes, automatically save rotated/flipped images to disk. otherwise, to keep changes :w must be called explicitly. no sneaky saves otherwise, periodt.

πŸ‘‘ ALIASES πŸ‘‘

you can totally configure aliases for the command line in this section. an alias is defined in the form of:

aliasname: command

see also: the alias command. iykyk πŸ’…


πŸ”₯ KEYBINDINGS πŸ”₯

keybindings live in the keys.conf file. and similar to the vimivrc, this file is split up into sections:

  • IMAGE: keybindings defined here apply in image mode.
  • THUMBNAIL: keybindings defined here apply in thumbnail mode.
  • LIBRARY: keybindings defined here apply in library mode.
  • MANIPULATE: keybindings defined here apply in manipulate mode.
  • COMMAND: keybindings defined here apply in the command line.

keybindings are defined in the form of:

keyname: command [arguments]

keyname has to be a valid key symbol like "a" or "b", but also e.g. "colon" for ":". a super useful tool in X to check for these names interactively is xev πŸ‘€

supported modifiers are:

  • Shift via Shift+keyname
  • Control via ^keyname
  • Alt via Alt+keyname

command [arguments] has to be a valid vimiv command with correct arguments. for a complete list of commands with explanations, check the commands documentation.

mouse bindings are defined in the same form. simply use "Button" and the corresponding number like "Button1" as keyname. yes, mouse girlies are fed too 🐭✨


πŸ’œ COMMANDS πŸ’œ

  • accept_changes β€” accept changes made in manipulate.
  • alias β€” add an alias for a command.
  • autorotate β€” rotate all images in the current filelist according to exif data.
  • center β€” scroll to the center of the image.
  • copy_abspath β€” copy the absolute path of the currently selected file to the clipboard.
  • copy_basename β€” copy the base name of the currently selected file to the clipboard.
  • delete β€” delete the current image.
  • discard_changes β€” discard any changes made in manipulate mode and leave it.
  • edit β€” edit brightness, contrast or saturation of the current image.
  • first β€” move to the first image of the filelist in image/thumbnail mode.
  • first_lib β€” move to the first file of the filelist in the library.
  • fit β€” fit the image to the current window size.
  • fit_horiz β€” fit the image horizontally to the current window size.
  • fit_vert β€” fit the image vertically to the current window size.
  • flip β€” flip the current image.
  • focus_library β€” focus the library.
  • format β€” format all currently open filenames.
  • fullscreen β€” toggle fullscreen mode.
  • last β€” move to the last image of the filelist in image/thumbnail mode.
  • last_lib β€” move to the last file of the filelist in the library.
  • library β€” toggle the library.
  • manipulate β€” enter manipulate mode.
  • mark β€” mark the currently selected image.
  • mark_all β€” mark all images in the current filelist.
  • mark_between β€” mark all images between the last two marked images.
  • mark_toggle β€” toggle the current mark status.
  • move_up β€” move up one directory in the library.
  • next β€” move to the next image in the filelist of image mode.
  • next! β€” force moving to the next image in the filelist of image mode.
  • prev β€” move to the previous image in the filelist of image mode.
  • prev! β€” force moving to the previous image in the filelist of image mode.
  • q β€” quit vimiv.
  • q! β€” force quitting vimiv.
  • reload_lib β€” reload the library.
  • rotate β€” rotate the image counter-clockwise.
  • set β€” change the value of a setting.
  • slideshow β€” toggle the slideshow.
  • tag_write β€” write the names of all currently marked images to a tagfile.
  • tag_load β€” load all images in a tagfile into image mode.
  • tag_remove β€” delete a tagfile.
  • thumbnail β€” toggle thumbnail mode.
  • undelete β€” undelete an image.
  • unfocus_library β€” focus the widget last focused before the library.
  • version β€” display pop-up with version information.
  • w β€” explicitly save changed images to disk.
  • wq β€” same as :w but also quit vimiv.
  • zoom_in β€” zoom in.
  • zoom_out β€” zoom out.
  • zoom_to β€” zoom image to a given percentage.

πŸ™ˆ HIDDEN COMMANDS πŸ™ˆ

the following commands can only be bound to keys and are not accessible from the command line. secret menu energy, lowkey πŸ‘€

  • clear_status β€” clear any numbers or messages from the statusbar and reset search.
  • command β€” enter the command line.
  • scroll β€” scroll image or thumbnail.
  • scroll_lib β€” scroll the library.
  • search β€” search for text in the current filelist.
  • search_next β€” navigate to the next search result.
  • search_prev β€” navigate to the previous search result.
  • history_down β€” go down by one in command history.
  • history_up β€” go up by one in command history.
  • discard_command β€” leave the command line discarding currently entered text.
  • complete β€” start command line completion.
  • complete_inverse β€” start command line completion selecting items inversely.
  • slider β€” change the value of the currently focused slider.
  • focus_slider β€” focus one of the manipulate sliders.

🌈 SEE ALSO 🌈

vimiv(1), date(1)


and that's the whole page, bestie 🫢 this was vimivrc(5) from the vimiv project, on Linux, dated May 2017 β€” go configure something cute, slay, and don't forget to copy your config first πŸ’–βœ¨

πŸ“¦ where this page comes from