mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	 a98a6996c2
			
		
	
	a98a6996c2
	
	
	
		
			
			Vim runtime files based on 7.4.384 / hg changeset 7090d7f160f7
Excluding:
  Amiga icons (*.info, icons/)
  doc/hangulin.txt
  tutor/
  spell/
  lang/ (only used for menu translations)
  macros/maze/, macros/hanoi/, macros/life/, macros/urm/
      These were used to test vi compatibility.
  termcap
      "Demonstration of a termcap file (for the Amiga and Archimedes)"
Helped-by: Rich Wareham <rjw57@cam.ac.uk>
Helped-by: John <john.schmidt.h@gmail.com>
Helped-by: Yann <yann@yann-salaun.com>
Helped-by: Christophe Badoit <c.badoit@lesiteimmo.com>
Helped-by: drasill <github@tof2k.com>
Helped-by: Tae Sandoval Murgan <taecilla@gmail.com>
Helped-by: Lowe Thiderman <lowe.thiderman@gmail.com>
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			588 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			588 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/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
 |