Commits on May 28, 2018
  1. vimcat: kill potential leftover cat process (#233)

    achilleas-k authored and rkitover committed May 28, 2018
    Introduced for the cleanup of the cat processes (cat_pid).
    Closes #231
Commits on Feb 13, 2018
  1. clarify build directions

    nmschulte authored and rkitover committed Feb 8, 2018
  2. allow use PREFIX from environment

    nmschulte authored and rkitover committed Feb 7, 2018
    PREFIX=/home/nmschulte/.local make ...
    make PREFIX=/home/nmschulte/.local ...
Commits on Dec 5, 2017
  1. vimcat: use fifo not file, even on cygwin etc.

    rkitover committed Dec 5, 2017
    In 09fd981 the tail -f call for reading the fifo was replaced with a cat
    loop, this works fine on cygwin and presumably everywhere else it didn't
    work before, so remove the OS check for making a regular file instead of
    a fifo and always make a fifo instead.
    This also fixes vimcat on cygwin/msys since 09fd981 broke it, the cat
    loop would repeat the file over and over.
Commits on Dec 4, 2017
  1. vimcat: tail -f no longer works with a fifo

    rkitover committed Dec 4, 2017
    Use a backgrounded infinite loop that repeatedly executes cat on the
    fifo instead of `tail -f`. This works even better. When the fifo is
    empty, cat will block and wait for more data.
Commits on Nov 25, 2017
  1. fix vim-plug compat #221

    rkitover committed Nov 25, 2017
    vim-plug expects its plugin store directory to be in the first entry in
    runtimepath, which is generally ~/.vim or similar, because vimpager
    prepends its runtime to the runtimepath, this fails.
    Restore runtimepath to the default for the duration of ~/.vimrc
    processing so that vim-plug and similar things work.
    The vimpager runtime is added back to the runtimepath in BufReadPre for
    any file so that our plugins still work correctly.
Commits on Oct 16, 2017
  1. debian/: fix some lintian warnings/errors

    rkitover committed Oct 16, 2017
    - Remove `Testsuite: autopkgtest` from control, as this is detected
      automatically now.
    - Change watch url to https instead of http.
    - Make sure `/bin` is in the PATH before `/usr/bin` on Debian, lintian
      complains if the shebang is `/usr/bin/ash` rather than `/bin/ash`.
  2. add vim.basic command support to vimcat (#223)

    MarrekNozka authored and rkitover committed Oct 16, 2017
    becouse vim.basic (in Debian) is compile without GUI and vimcat is
    faster after.
Commits on Aug 29, 2017
  1. use docker for travis, update debian/ #220

    rkitover committed Aug 29, 2017
    Switch the travis config to using Ubuntu Artful (the dev release) via
    The previous two commits: 30d392e and e76538b, had no effect because the
    `dist:` field for `.travis.yml` only supports releases up to "trusty"
    and later versions have no effect.
    Currently the docker image will be built on travis, but later we may
    store it in the hub for faster test runs.
    Add autopkgtest support to debian/ using the bats test suite.
    Break the `make install-deb` rule into multiple rules, this allows
    calling `make build-deb` to just build and not install, and for the
    Dockerfile, `make build-deb-deps` to just install the the build deps.
Commits on Aug 20, 2017
  1. inc travis dist: xenial -> zesty, hopefully fix

    rkitover committed Aug 20, 2017
    Tried going from trusty to xenial, but xenial does not have a dpkg new
    enough for lintian either, trying zesty now.
  2. inc travis dist: trusty -> xenial, hopefully fix

    rkitover committed Aug 20, 2017
    lintian from debian unstable no longer builds on trusty, trying xenial.
  3. fix make install-deb for non-English locales #219

    rkitover committed Aug 20, 2017
    On some versions of Debian/Ubuntu, the prompt for gdebi is not "Y/n" but
    is locale-appropriate, and the piped in `echo y` does not work as
    To work around this, run gdebi with `LANG=C`.
Commits on Jul 24, 2017
  1. turn off man.vim keyboard mappings #214

    rkitover committed Jul 24, 2017
    Execute `let g:no_man_maps = 1` in vimpager initialization (SetOptions()
    in autoload/vimpager.vim) so that man.vim (which is invoked for
    `ft=man`) does not set any keyboard mappings such as 'q'.
    Thanks to @dylnmc for reporting the problem and providing the solution.
Commits on Feb 27, 2017
  1. prepend badge to and

    rkitover committed Feb 27, 2017
    Add markdown_src/ with the code for the
    badge, and prepend it to the generated markdown/*.md files after doctoc
    generates the TOC in the Makefile.
Commits on Feb 17, 2017
  1. fix broken ${vimrc:+-u "$vimrc"} due to bad IFS interaction (#207)

    aroig authored and rkitover committed Feb 17, 2017
    For some reason, those "add -u if variable is set" things do not
    have the intended effect due to the IFS change. It looks like
    vim gets '-u $vimrc' as a single argument.
    Here is a test example:
        vim ${vimrc:+-u "$vimrc"}
    Fixed by temporarily restoring the IFS on the subshell
Commits on Oct 19, 2016
  1. Remove white text from usage messages (#204)

    cmcaine authored and rkitover committed Oct 19, 2016
    * Remove white text from usage messages
    * Bold options in usage messages + tests.
  2. add cmcaine to CONTRIBUTORS

    rkitover committed Oct 19, 2016
    We should move this list into a separate CONTRIBUTORS.yml at some point.
  3. Merge pull request #205 from cmcaine/vimcat_redir

    rkitover committed Oct 19, 2016
    Emulate cat if no args and stdin is tty
Commits on Oct 18, 2016
Commits on Oct 17, 2016
  1. improve rc selection + default hl opts #203

    rkitover committed Oct 17, 2016
    Only pass -u $vimrc to vim in vimpager if necessary (a vimpagerrc exists
    etc.) Otherwise let it use the defaults. I couldn't do this before
    because I didn't know how to use the ${:+} POSIX parameter expansion
    properly, it is amazingly useful.
    Move the bg=dark setting for the case of no rc to after --cmd, because
    $MYVIMRC is not set until later.
    Add similar bg=dark setting code to the vimpager vimscript.
  2. update test fixtures for updated usage screens

    rkitover committed Oct 17, 2016
    Update bats test fixtures for changes in vimpager and vimcat usage (-h)
  3. s/vim/(n)vim/ in vimcat usage

    rkitover committed Oct 17, 2016
    Make neovim support more explicit in vimcat usage (-h .)
  4. better support for neovim #203

    rkitover committed Oct 17, 2016
    Call find_vim_executable() before find_vimpagerrc_files() and
    read_vim_settings(), and use the found $tvim (terminal vim) in the
    latter two functions instead of hardcoding `vim`.
    This fixes properly finding ~/.config/nvim/init.vim if the user does not
    have the ~/.vimrc symlink.
    Also check for "$user_vimrc_dir/.vimpagerrc" etc. more carefully, by
    making sure $user_vimrc_dir is set and quote "$vim_cmd" on invokation of
    Also s/vim/(n)vim/g in the usage() text to make neovim compatibility
    more explicit.
  5. fix standalone/vimcat broken in b519b51

    rkitover committed Oct 17, 2016
    Adjust the standalone/vimcat recipe in Makefile to take into account
    the new vimcat#Init() function.
  6. fix typo in vimscript #203

    rkitover committed Oct 17, 2016
    Had `a.opts.rc` instead of `a:opts.rc` in one place in
  7. set hl opts in vimcat only for users w/o rc #203

    rkitover committed Oct 17, 2016
    Add a vimcat#Init function to run at --cmd time for vimcat, which only
    sets bg=dark and hi Normal ctermbg=NONE only for users who have neither
    a .vimcatrc nor any kind of .vimrc.
    Also add cpo and scriptencoding boilerplate to autoload/vimcat.vim .
Commits on Sep 12, 2016
  1. update debian/ for new Standards-Version etc.

    rkitover committed Sep 12, 2016
    - Do a $(MAKE) clean in install-deb target before building orig tarball
      to make sure no work files are included.
    - Bump Standards-Version in control to latest (3.9.8) and increment
    - Add ash to build deps and deps.
    - Remove newer-standards-version override.
    - Remove shell-script-fails-syntax-check override since the vimscript
      is no longer part of vimcat.
  2. man pages in nvim and other minor vimscript fixes

    rkitover committed Sep 12, 2016
    - Use ls instead of ls! in CloseBuffer in less.vim, I don't remember
      why I used ls! initially, but it causes all sorts of problems with
      unlisted buffers.
    - Make PostProcess in vimpager.vim not run for buffers with no name or
      buffers for which we don't have an index.
    - Add a silent! redraw! on VimEnter as well as the one for each
      post-processed file, in case the post-processing hook is not called
      and there is a modeline error.
    - Remove the [Modified] as well as the [readonly] tag from the status
      line, in vimpager_utils.vim as well as less.vim .
    - Change ConcealRetab in vimpager_utils.vim to only modify the buffer if
      necessary, and if the buffer is modified to set buftype=nowrite .
    - Add ft=sh to the vimcat modeline so that it is not picked up by
      AnsiEsc checking.
  3. find full path of shell if it's a builtin #201

    rkitover committed Sep 12, 2016
    `command -v ash` in busybox ash returns `ash` instead of the full path,
    because it's considered a bultin.
    Modify `scripts/find_shell` which is invoked by the Makefile to
    configure the shell used for installation to find the full path of the
    shell if it's not an absolute path, by manually searching PATH.
Commits on Sep 3, 2016
  1. fix errant copypasta in 0c12a06

    rkitover committed Sep 3, 2016
    quit() in vimpager should use $tmp, while vimcat uses $tmp_dir, these
    should be made consistent at some point.
Commits on Sep 2, 2016
  1. minor improvements for #199

    rkitover committed Sep 2, 2016
    Move check for zsh right below, since depending on
    configuration it may not be used.
    Use parameter expansion instead of dirname in quit().
    Add code to vimcat as well.
  2. Merge pull request #199 from kAworu/make-zsh-emulate-sh

    rkitover committed Sep 2, 2016
    Make zsh emulate sh
Commits on Aug 4, 2016
  1. add dot files to d/copyright, broken in 57f1361

    rkitover committed Aug 4, 2016
    Fix travis fail with .mailmap and .gitignore missing copyright info,
    added to .orig.tar.gz in 57f1361 to fix adding the .mailmap in a60976c .