How can I check what version of the VI editor I have?

47,673

Solution 1

According to http://www.vim.org/download.php, Sun Solaris Vim is included in the Companion Software: http://wwws.sun.com/software/solaris/freeware/.

vi has had the :ve[rsion] command going back at least as far as 1979, so it should work on any Solaris release.

Solution 2

The command to show the version is

:version

which can be abbreviated to

:ve

Solution 3

You should try to find the vi version with the package manager:

pkginfo | grep -i vi 

or:

pkginfo '*vi*'

Solution 4

You can simply open the editor by typing

vi

This will open the default page that shows the version number.

Share:
47,673

Related videos on Youtube

cwd
Author by

cwd

Updated on September 18, 2022

Comments

  • cwd
    cwd over 1 year

    How can I check what version of the vi editor I have? What's the best way to upgrade it or install vim on Solaris?

  • Paolo
    Paolo over 12 years
    Please someone explaining what's wrong with this answer. Thanks.
  • Keith Thompson
    Keith Thompson over 12 years
    On Solaris 9, vi --version prints vi: illegal option -- -. vim recognizes the --version option; other vi implementations, including nvi, do not.
  • MetaEd
    MetaEd almost 12 years
    Also this answer does not address the other part of the question: upgrading or installing Vim on Solaris.
  • bahamat
    bahamat almost 12 years
    And for Solaris 11, pkg list vim
  • user3224237
    user3224237 over 7 years
    :ve did exist in the very first vi version already, released on January 1st, 1978. See github.com/n-t-roff/ex-1.1 for the source code the original documentation.
  • user3425106
    user3425106 about 7 years
    This might work for vim but does not work for Joy's vi.