From 5eb6a22c06f93537363242363df7f4d66193db51 Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Sun, 4 Aug 2013 17:58:12 -0500 Subject: [PATCH] Added vim-session; :SaveSession and :OpenSession [Fix #322] --- .gitignore | 1 + README.md | 1 + vim/plugin/settings/yadr-keymap.vim | 2 ++ vim/vundles.vim | 3 +++ 4 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index b881806..536ea0e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ vim/spell vim/after/.vimrc.after vim/.vundles.local vim/bundle +vim/sessions .netrwhist bin/subl tags diff --git a/README.md b/README.md index c71663f..53630e7 100644 --- a/README.md +++ b/README.md @@ -411,6 +411,7 @@ If you omit the key combo, you'll get a list of all the maps. You can do the sam * change-inside-surroundings - change content inside delimiters like quotes/brackets * Specky - used for color highlighting rspec correctly even if specs live outside of spec/ (rails.vim doesn't handle this) * Ag - use :Ag to search across multiple files. Faster than Grep and Ack. + * vim-session: use `:SaveSession` and `:OpenSession` to come back to your saved window layout #### General enhancements that don't add new commands diff --git a/vim/plugin/settings/yadr-keymap.vim b/vim/plugin/settings/yadr-keymap.vim index 2f6c385..aad7a84 100644 --- a/vim/plugin/settings/yadr-keymap.vim +++ b/vim/plugin/settings/yadr-keymap.vim @@ -65,6 +65,8 @@ map ,{ ysiw{ vmap ,} c{ " } vmap ,{ c{"} +map ,` ysiw` + " gary bernhardt's hashrocket imap => diff --git a/vim/vundles.vim b/vim/vundles.vim index 07e1d80..3653703 100644 --- a/vim/vundles.vim +++ b/vim/vundles.vim @@ -100,6 +100,9 @@ Bundle "vim-scripts/lastpos.vim" Bundle "vim-scripts/sudo.vim" Bundle "xsunsmile/showmarks.git" Bundle "terryma/vim-multiple-cursors" +"vim-misc is required for vim-session +Bundle "xolox/vim-misc" +Bundle "xolox/vim-session" " Text objects Bundle "austintaylor/vim-indentobject"