Skip to content

okcompute/vim-ctrlp-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-ctrlp-session

CtrlP extension to manage Vim sessions.

Features

Improve Vim session experience:

- Fuzzy search sessions
- Create sessions tracking Git branches
- One configurable location for storing all session files.
- Fast context switching

Requirements

To get the most value out of this plugin, you need these plugins to be installed:

Installation

This assumes you are using Vundle. Adapt for your plugin manager of choice. Put this into your .vimrc.

Plugin 'okcompute/vim-ctrlp-session'

Usage

:Session {name}

Create a session with name. Session will be automatically tracked.

:SGit

Like :Session but use current repository name and branch to create the name. i.e. (repository@branch.)

If the vim-ctrlp-session.session-prefix (respectively vim-ctrlp-session.session-suffix) git configuration are set, its value is automatically prefixed (respectively suffixed) to the repository name.

This is useful when you have several checkouts of the same repository (with the same name) at different location and you want to be able to distinguish those.

Requires [Tpope/vim-fugitive] (https://github.com/tpope/vim-fugitive)

:SLoad {name}

Load session with {name}.

:SDelete {name}

Delete sessio with {name}.

:SQuit

Stop tracking current active session and close all buffers.

:SList

List all available sessions.

:CtrlPSession

Launch CtrlP prompt for fuzzy searching available sessions.

Requires [Kien/ctrlp.vim] (https://github.com/kien/ctrlp.vim)

CtrlP specific mappings

Once inside CtrlP prompt:

<c-x>

Delete the session under cursor.

Credits

This plugin implementation was inspired by :

License

Copyright © Pascal Lalancette. Distributed under the same terms as Vim itself. See :help license.

About

CtrlP extension to manage Vim sessions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published