fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian Homborgcompletions: Stop checking for command existence43df5ba82

master
950 B22 linesraw
1# plain vi (as bundled with SunOS 5.8)
2# todo:
3# -wn : Set the default window size to n
4# +command : same as -c command
5
6# Check if vi is really vim
7if vi --version >/dev/null 2>/dev/null
8    complete -c vi -w vim
9else
10    complete -c vi -s s -d 'Suppress all interactive user feedback'
11    complete -c vi -s C -d 'Encrypt/decrypt text'
12    complete -c vi -s l -d 'Set up for editing LISP programs'
13    complete -c vi -s L -d 'List saved file names after crash'
14    complete -c vi -s R -d 'Read-only mode'
15    complete -c vi -s S -d 'Use linear search for tags if tag file not sorted'
16    complete -c vi -s v -d 'Start in display editing state'
17    complete -c vi -s V -d 'Verbose mode'
18    complete -c vi -s x -d 'Encrypt/decrypt text'
19    complete -c vi -r -s r -d 'Recover file after crash'
20    complete -c vi -r -s t -d 'Edit the file containing a tag'
21    complete -c vi -r -c t -d 'Begin editing by executing the specified  editor command'
22end