GithubHelp home page GithubHelp logo

vim-mansion's Introduction

mansion.vim ๐Ÿ”ƒ ๐Ÿ˜Œ

mansion is a Vim session manager. It's all about managing session files. So the options like 'sessionoptions', 'viewoptions', 'viminfo' are not touched. You may find it simple and convenient.

Usage

Commands provided are self-explained, such as SessionOpen, SessionClose, SessionSave, etc. See :com Session for all additional commands. The argument to a command is a session file specification(Look into mansion#session_path() for how an argument is translated to a full session file path.). And an extra :Restart command is also provided for restarting gVim.

Corresponding mappings are also provided. But you can disable them all if you wish(See below). See :exe 'map <Leader>s' for default mappings.

Session persistence

A session could be saved in the following occasions:

  • Before Vim exits.
  • After a user defined time(g:mansion_save_time), repeatedly.
  • Whenever the focused buffer is different(:SessionFollow).

Configuration

  • Set the central path of session files: let g:sessiondir = '~/.vim/session' (default)
  • Disable auto-saving the current session before exiting Vim: let g:mansion_no_save_on_exit = 1
  • Disable default mappings: let g:mansion_no_maps = 1
  • Remember the session name when Vim exits: set viminfo^=!

Installation

  • Pathogen: cd ~/.vim/bundle && git clone git://github.com/bohrshaw/vim-mansion.git
  • Vundle: Add Bundle 'bohrshaw/vim-mansion' to '.vimrc' and run :BundleInstall.

Related

License

Copyright (c) Bohr Shaw. Distributed under the same terms as Vim itself. See :help license.

vim-mansion's People

Contributors

bohrshaw avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.