Find the answer to your Linux question:
Results 1 to 4 of 4
Would someone be so kind to enlighten me as to what a "session" means when using VI? Thanks in advance!...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie theKbStockpiler's Avatar
    Join Date
    Sep 2010
    Location
    Upstate NY
    Posts
    211

    Session in context with Vi


    Would someone be so kind to enlighten me as to what a "session" means when using VI?

    Thanks in advance!
    Presently into Rpm based Distros as in ,Mageia ,Fedora CentOS and Scientific.

  2. #2
    Linux Engineer docbop's Avatar
    Join Date
    Nov 2009
    Location
    Woodshed, CA
    Posts
    949
    An editing session. In other words using the editor and exiting is a session.

  3. #3
    Linux Newbie theKbStockpiler's Avatar
    Join Date
    Sep 2010
    Location
    Upstate NY
    Posts
    211
    Thanks for the reply! So does vi save different environmental variables for different sessions or what is the purpose?
    Presently into Rpm based Distros as in ,Mageia ,Fedora CentOS and Scientific.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Dec 2013
    Location
    Victoria, B.C. Canada
    Posts
    1,659
    If you set variables in vi command mode they last for the duration of the session. If you want them to be defaults you have to set them in one of the config files i.e. .vimrc.

    During the course of a session vim also creates and maintains a file to back out to the previous saved file. It is deleted at the end of your session.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •