Skip to content

(N)Vim sessions manager with git integration

License

Notifications You must be signed in to change notification settings

xuta/vim-xspace

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

XSpace

XSpace enhanced vim's native mksession to provide a solution for sessions management and great integration with git projects.

Features

Sessions management

When XSpace is on, it records all changes with your windows position, tabs, buffers, changes (on files), etc.. to help you continue with what you left from last time, even you can undo your changes.

Git integration

If you start a vim session under a git project, XSpace will automatically set it on with s:xspace_session_dir is root of the git project directory

let s:xspace_session_dir = system("git rev-parse --show-toplevel 2>/dev/null | tr '\\n' '/'")

How to work with XSpace

Very easy, the plugin provides you three commands

XSpaceInfo

:XSpaceInfo

It will shows state of XSpace is on/off and path to session file and undo dir.

XSpaceOn

:XSpaceOn

To start XSpace if it wasn't started yet or just show a message that XSpace is on already!!!

XSpaceOff

:XSpaceOff

To stop XSpace if it's on or just show a message that XSpace is off already!!!

Configuration

By default, the plugin sets use Session.vim as session name and .undodir as undo directory.

You can change if you like to do so

let g:xspace_session_name = 'A_NEW_NAME.vim'
let g:xspace_undodir = 'A_NEW_DIR'

Installation

The plugin requires Vim >= 8.0 or Neovim >= 0.4

Vim Plug

Plug 'xuta/vim-xspace'

Using Vundle

Plugin 'xuta/vim-xspace'

Using Pathogen

cd /.vim/bundle
git clone https://github.com/xuta/vim-xspace

License

License

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%