Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6728279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:09:04+00:00 2026-05-26T10:09:04+00:00

I installed sessionman, and it works fine. But I lose session when reload the

  • 0

I installed sessionman, and it works fine. But I lose session when reload the X session twice (logout/login, reboot, etc), because when KDE restores Gvim, it does not load session automatically, but only last file, and then saves this under the last session name on next reload. If I did not run SessionOpen then on next reload my last session is lost.

I configured session autosave already. It would be nice if Gvim can load last session automatically too. However, this feature does not work for me even manually. When I restart Gvim, SessionShowLast prints “Last session is undefined, current session is “””.

The sessionman documentation says: “The name of an opened session is saved in g:LAST_SESSION variable which is saved in the viminfo file if ‘viminfo’ option contains ‘!'”. But I have not found any clear explanation what is “viminfo option”, where it should contain ‘!’, and how do I set it. Also I’m not sure how to execute SessionOpenLast from vimrc.

If the way I’m trying to fix the problem is wrong then please correct me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:09:05+00:00Added an answer on May 26, 2026 at 10:09 am

    viminfo is a variable that describes what data should be stored in the viminfo file.

    For full details, run :help 'viminfo' (note the quotes) in vim:

        !       When included, save and restore global variables that start
                with an uppercase letter, and don't contain a lowercase
                letter.  Thus "KEEPTHIS and "K_L_M" are stored, but "KeepThis"
                and "_K_L_M" are not.  Nested List and Dict items may not be
                read back correctly, you end up with a string representation
                instead.                                
    

    Use :set viminfo to see the current value of your viminfo setting. Modify it in your ~/.vimrc file.

    set viminfo='100,<500,s10,h,!
    

    Because vimrc is loaded before plugins, adding SessionOpenLast to vimrc will not work. To solve this, create an auto-command:

    autocmd VimEnter * SessionOpenLast
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I installed the Processing plugin for Eclipse. it works fine. But then i copied
I installed phpMyAdmin on my site and it works. But when I mistype a
Installed Attlassian JIRA on windows 7, and it works only on h_t_t_p://localhost:8088, but if
Installed rubyinstaller-1.8.7-p358.exe, then tried to install jammit , but the config.gem command isn't being
I installed AvalancheImagineBundle for Symfony 2.0. Everything wen't fine except the fact that it
Installed the IronPython tools for VS 2010 but it didn't associate the *.py files
Installed Magento 1.6.2.0, and noticed that the links are like http://MYSEUPERSTORE.com/ index.php /customer/account/ but
Installed the Web Tools Platform 3.3.0 plugin for Eclipse but components are not available
Installed visual studio 11 beta as wanted to test EF 5 beta but keep
I installed googles' v8cgi javascript engine in an IIS server environment, which works like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.