Mercurial > vim
view runtime/macros/less.sh @ 12946:eae40b455a72 v8.0.1349
patch 8.0.1349: options test fails when using Motif or GTK GUI
commit https://github.com/vim/vim/commit/17471e84a72b5137a6010a98c4adb780237750db
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 26 23:47:18 2017 +0100
patch 8.0.1349: options test fails when using Motif or GTK GUI
Problem: Options test fails when using Motif or GTK GUI.
Solution: Use "fixed" instead of "fixedsys" for Unix. Don't try "xxx" for
guifonteset. Don't set 'termencoding' to anything but "utf-8" for
GTK. Give an error if 'termencoding' can't be converted.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 27 Nov 2017 00:00:05 +0100 |
parents | 1b584a6f446c |
children |
line wrap: on
line source
#!/bin/sh # Shell script to start Vim with less.vim. # Read stdin if no arguments were given and stdin was redirected. if test -t 1; then if test $# = 0; then if test -t 0; then echo "Missing filename" 1>&2 exit fi vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' - else vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' "$@" fi else # Output is not a terminal, cat arguments or stdin if test $# = 0; then if test -t 0; then echo "Missing filename" 1>&2 exit fi cat else cat "$@" fi fi