From :h :Man: > when running `man` from the shell and with that `MANPAGER` [='nvim > +Man!'] in your environment, `man` will pre-format the manpage using > `groff`. Thus, Nvim will inevitably display the manual page as it was > passed to it from stdin. One of the caveats of this is that the width > will _always_ be hard-wrapped Since I actually don't like `g:man_hardwrap=0`/`MANPAGER=999` (e.g. scrolling can be a mess with very long wrapped lines), add an autocommand that is meant to reload the manpage through `:edit` after every resize, so that its hard-wrapping adjusts to the new size. This is slightly hacky, but does its job quite well. Move the man.vim into after/ftplugin so that it overwrites the `set wrap` of the global ftplugin, which I want turned off, since it messes with the buffer shortly when resizing.
My dotfiles
This is a collection of the configuration files and scripts I use for various tools and environments.
Although some files support macOS, most of them assume that they are used on a GNU/Linux system. The systems I use include an Artix, a Manjaro and an Ubuntu installation. All of them running i3wm and the arch-based systems without a DE. I use my fork of st as terminal, zsh as shell and neovim as text editor.
The repository mimics my $HOME, trying to conform to the XDG Base Directory
Specification as close as possible. An exception is etc/ -> /etc/, as well
as meta/ and some other files in the root of the repository (e.g. this README
or the LICENSE) which are not in my $HOME.
The most interesting files are probably in .config/zsh and .config/vim.
Installation
The repository content can be installed via dotbot. All existing files which would be overridden are first packed into an archive for backup (see meta/archive) and then dotbot places symlinks in the appropriate places for the different files and folders in this repository.
To start the installation run:
$ ./meta/install