Skip to content
Commits on Apr 29, 2016
  1. @lucc

    Speed up reading of vim vars. (#163)

    lucc committed with Apr 29, 2016
    * Read all vim variables in one go.
    This reduces the number of vim processes that are started to read the vim
    variables to only one.  Emulated arrays are used to pass the values to the
    main function.
    * Remove read_vim_vars() and use the code inline in main().
    As the function is (and should) now only ever be called once it can be
  2. add travis job to check deb build #146

    committed Apr 29, 2016
    This .travis.yml will hopefully test that building a deb on Ubuntu
    14.04 works.
  3. improved support for older pandoc versions #146

    committed Apr 29, 2016
    If the version of pandoc does not support `-f markdown_github`, use `-f
    markdown` and write out a title metadata block to a temp file.
    Otherwise, use `-M key=val` options for adding metadata.
  4. support older pandoc #146

    committed Apr 29, 2016
    Don't use -M or markdown_github on pandoc versions that do not support
    them (like on ubuntu 14 and earlier.)
  5. @lucc

    Remove unneeded tr.

    lucc committed Apr 29, 2016
    POSIX requires the shell to strip trailing newlines when performing command
Commits on Apr 27, 2016
Commits on Apr 26, 2016
  1. new style for sh code + minor refactoring

    committed Apr 26, 2016
    Superfluous braces around variables will no longer be used, "$foo" is
    fine, unless it's a parameter expansion.
    For numeric variables like $#, $?, $$ etc. quotes are not necessary as
    minor improvements:
    - prime util functions in main() so that detected versions are cached
      for subprocesses
    - fix cygpath -w resolution of file path for cygwin
    - try to strip both passed-in and resolve()'d versions of tmp_dir in
      status line function
    - write
  2. regression: read file commands when calling vimcat

    committed Apr 26, 2016
    Since file specific pre-processing commands are now in
    ${tmp}/<file-num>.vim, update the call to vimcat to use this file (so
    that e.g. short man pages are highlighted correctly.)
  3. read symlinks to $0

    committed Apr 26, 2016
    When looking for the project dir, if $0 is a symlink than find the
    target of any symlinks.
Commits on Apr 25, 2016
  1. fix incompatibility with dein#load_state() #166

    committed Apr 25, 2016
    Disable the loading of all of our plugins at --cmd time to make sure
    older versions the user may have are not loaded, and then explicitly
    re-add the vimpager runtime to the runtimepath at BufReadPre time and
    explicitly load all plugins from it.
    The main problem with dein#load_state() is that it completely overwrite
    the runtimepath, hence re-adding it is necessary.
    Older versions of plugins were also in the reporter's vim configuration,
    so this commit solves both problems.
  2. vimcat: add -N -u NONE to sleep call using vim

    committed Apr 25, 2016
    Justin M. Keyes pointed out that the vim command to sleep 1.1s should
    have -N -u NONE (turn off nocompatible and don't use a vimrc.)
    Also changed to "$vim" instead of vim.
Commits on Apr 24, 2016
  1. fix ex command to sleep for 1.1s for neovim

    committed Apr 24, 2016
    The vim -Es command to sleep for 1.1s in vimcat flashes the screen when
    vim is neovim, fix this by adding >/dev/null.
    See neovim/neovim#4640.
  2. @lucc

    Remove left over line in argument handling. (#173)

    lucc committed with Apr 24, 2016
    The line should have been removed in 0949ca7 but was forgotten.
  3. update ChangeLog_vimpager.yml

    committed Apr 24, 2016
Commits on Apr 23, 2016
  1. @lucc

    Add -x option to vimpager.

    lucc committed with Apr 23, 2016
  2. vimcat: stream to file if fifo doesn't work #167

    committed Apr 23, 2016
    On Windows and Solaris stream output to a file instead of a fifo, and
    give tail -f 1.1s to catch up at the end.
    This leads to jerkier output than a working fifo.
  3. Merge pull request #170 from lucc/cat

    committed Apr 23, 2016
    Replace marker file with a shell variable.
  4. Merge pull request #169 from lucc/fix

    committed Apr 23, 2016
    Fix prinf call for filenames that contain "%".
  5. Merge pull request #168 from lucc/makefile

    committed Apr 23, 2016
    Clean up makefile.
  6. @lucc

    Clean up makefile.

    lucc committed Apr 20, 2016
    Remove line continuation in commands where possible and use makes internal
    echo functionality (which can be suppressed with `make -n` in contrast to
    `echo` in the commands).
  7. @lucc
  8. use bourne source of inc/ in vimcat

    committed Apr 23, 2016
    The first line that reads inc/ to find a shell has to be
    original bourne compatible.
  9. @lucc
  10. fix doc tar error in make when no pandoc #167

    committed Apr 23, 2016
    Do not try to generate doc.tar.gz on make if pandoc is not available and
    the man pages and html were not generated, otherwise tar makes make
    error out due to nonexistant files.
  11. Merge pull request #164 from lucc/args

    committed Apr 23, 2016
    Rework handling of arguments.
  12. @lucc

    Remove last dependencies on seq.

    lucc committed Apr 21, 2016
    The code is still present in files in the prototypes directory.
  13. @lucc

    Rework file preprocessing in the shell script.

    lucc committed Apr 22, 2016
    Files are not copied to /tmp unconditionally but only if they are modified
    (e.g. decompressed, ansi escape sequences removed, ...).  If input is read
    from stdin it is still saved to /tmp and paged from there.
    The file specific vim scripts are written to numbered files in /tmp (according
    to the position of the original file in the argument array).  This makes them
    agnostic about the fact that the original file might be in /tmp or somewhere
  14. @lucc

    Rework argument handling and passing of filenames.

    lucc committed Apr 21, 2016
    Implement some argument handling in vimscript instead of the shell
    script.  Also use the argument array of shell functions (`$@`) in order to
    pass file arguments around.
    This is done by these changes:
    1. The shell variables `$extra_c` and `$extra_cmd` are still available in the
       function `page_files` so they need not be passed as arguments.
    2. This makes it possible to use the arguments array of `page_files` to pass
       the actual file arguments.
    3. Remove some additional escaping from the file arguments to `page_files`.
       This makes it possible to use the arguments to `page_files` either as
       arguments to autoload/vimpager.vim or vimcat directly without further
       escaping in the shell script.  The order of the arguments to `page_files`
       should now be the same as in the `orig_file_names` and `ansi_files`
       (emulated) arrays.  The vimcat preparation part of the function relies on
    4. Modeline errors are now suppressed by an autocmd which means that it even
       works for all files in the argument list.  Before it only worked for the
       first argument.  This also affects the semantics of the `$VIMPAGER_DEBUG`
       environment variable.
    5. Remove obsolete autocmd that was used to delete the initial empty buffer in
Commits on Apr 21, 2016
  1. Merge pull request #165 from lucc/wc-fix

    committed Apr 21, 2016
    Remove unnecessary awk call after wc -l.
  2. @lucc
Commits on Apr 20, 2016
  1. s/balance-vimcat/balance-shellvim/

    committed Apr 20, 2016
    Rename scripts/balance-vimcat to scripts/balance-shellvim which fits
    better with the more generic make rule.
  2. s/MY_SHELL/POSIX_SHELL/, doc make vars, add prefix

    committed Apr 20, 2016
    Rename MY_SHELL variable holding the POSIX shell found to POSIX_SHELL
    and add it to docs #161.
    Add support for make install prefix=/foo as is the GNU autoconf
    convention, as separate from PREFIX which is the configured path.
    Document make variables: DESTDIR, PREFIX, prefix and POSIX_SHELL.
Commits on Apr 19, 2016
  1. Merge pull request #161 from lucc/MY_SHELL-fix

    committed Apr 19, 2016
    Substitute $MY_SHELL in all places when configuring vimpager.
  2. @lucc
  3. fix vimcat invocation when it is in PATH

    committed Apr 19, 2016
    Since ${MY_SHELL} is used to run vimcat, it must be the full path if
    located in the PATH. Set to "$(command -v vimcat)".
Something went wrong with that request. Please try again.