Sessionman.vim facilitates session management in Vim. It is an effective tool for saving, managing and restoring sessions in Vim.
From a list of sessions, users can open or delete a session. It is also important to note that session names can contain spaces and do not need to have a .vim extension. On Unix systems, sessions are saved in "$HOME/.vim/sessions". If this directory does not exist, the :SessionSave command (available on Vim 7 or higher) will create it.
To list sessions, users can use the :SessionList command which creates a new window displaying all session names. Normal mode mappings are displayed in the status line, including wiping buffers, opening sessions and deleting sessions. Once a session is opened and cscope is enabled, the script calls 'cscope add' for the current directory. It is essential to ensure that this is correctly set up before opening a session.
The plugin's commands include :SessionOpen, :SessionOpenLast, :SessionClose and :SessionSave. The :SessionOpen command takes a session name as an argument and supports argument completion. :SessionOpenLast opens the last session in g:LAST_SESSION. :SessionClose wipes out all buffers, kills cscope and clears variables with session names. :SessionSave saves the current editing session and, if v:this_session is empty, prompts users for a session name.
Additionally, the plugin creates a "Sessions" submenu under the "File" menu. Those who wish to use the plugin will require Vim. Sessionman.vim can be downloaded from the official website and copied to different directories depending on the operating system.
Recent updates include the addition of the ability to edit session files, extra session script and :SessionShowLast command that shows the content of g:LAST_SESSION and v:this_session variables. Finally, the plugin now features better organization of the session list window displaying help at the top instead of the status line.
Version 1.04: N/A