Re:Show HN: Twitch Installs Arch Linux – A cooperative text-...
by mgr86 on Friday October 30, 2015 @10:42AM
(#10478076)
It's been awhile since a fresh install but is it ViM. is Vi still around? I just seem to recall some things not working right. Such as not being able to ZZ or ZQ out of a file.
[ Parent
| on HN ]
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-...
by aidenn0 on Friday October 30, 2015 @12:13PM
(#10478686)
vim defaults to 100% backwards compatible with vi. It has an option "nocompat" that enables some non-backwards compatible improvements.
ZZ definitely still works regardless of nocompat though.
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-...
by TranquilMarmot on Friday October 30, 2015 @11:34AM
(#10478427)
ZZ and ZQ work, at least on every instance of vim I've ever used
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-...
by Gonzih on Friday October 30, 2015 @10:45AM
(#10478099)
vi is built-in in arch installation. so...
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-...
by valarauca1 on Friday October 30, 2015 @11:28AM
(#10478398)
Vi is everywhere. Its part of the POSIX standard and comes out of the box (in one flavor or another) with every Linux Distro, OSX, HP-UX, AIX, Solaris, Darwin, FreeBSD, OpenBSD, and DragonFlyBSD.
ViM is just Vi iMproved. They share most their keybinds but VIM has the whole plugin architecture thing.
This is a big sticking point for a lot of VIM users [1]. If you ever end up on a Unix box that doesn't have VIM, you can always fall back on Vi.
[1]: /users/religious fanatics/
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-...
by zck on Friday October 30, 2015 @11:59AM
(#10478586)
At least on Ubuntu, vi is really VIM:
zck@zck-desktop:~$ vi --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:32)
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-...
by LukeShu on Friday October 30, 2015 @01:57PM
(#10479371)
On Arch, vi is the original Bill Joy vi.
$ vi --version
vi: illegal option -- -
Usage: vi [- | -s] [-l] [-L] [-R] [-r [file]] [-t tag]
[-v] [-V] [-w size] [+cmd | -c cmd] file...
$ pacman -Qi vi
Name : vi
Version : 1:070224-2
Description : The original ex/vi text editor
Architecture : x86_64
URL : http://ex-vi.sourceforge.net/
Licenses : custom:ex
Groups : base
Provides : None
Depends On : ncurses
Optional Deps : s-nail: used by the preserve command for notification [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 290.00 KiB
Packager : Evangelos Foutras <[email protected]>
Build Date : Sun 06 Sep 2015 03:34:15 PM EDT
Install Date : Fri 18 Sep 2015 10:33:33 PM EDT
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
(ok, I'm not actually on Arch, but I'm downstream of Arch, and that package is directly from Arch)
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-...
by RexRollman on Friday October 30, 2015 @06:16PM
(#10480861)
You are correct:
Re:Show HN: Twitch Installs Arch Linux – A cooperative text-...
by xiaodown on Friday October 30, 2015 @12:55PM
(#10478955)
Eh, yeah, but it usually links to the "basic" version (which, I assume, is compatibility mode for old school vi).
root@dicks:~# which vi
/usr/bin/vi
root@dicks:~# file /usr/bin/vi
/usr/bin/vi: symbolic link to `/etc/alternatives/vi'
root@dicks:~# file /etc/alternatives/vi
/etc/alternatives/vi: symbolic link to `/usr/bin/vim.basic'
root@dicks:~# file /usr/bin/vim.basic
/usr/bin/vim.basic: ELF 64-bit LSB executable, x86-64, (snip)
root@dicks:~# vi --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:32)