From 6c460fc2d7e52bc75a5764b5c02cf1ff1181e4dd Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Sun, 2 Sep 2018 07:12:07 +0200 Subject: [PATCH] VIM: Install workspaces workspaces is a tool to save and restore vim sessions, which will be stored as instructions in a Session.vim file (which I renamed to .vsession in the config) Signed-off-by: Tobias Manske --- vim/config/keybindings.vim | 7 ++++--- vim/config/pluginconfig.vim | 5 +++++ vim/config/plugins.vim | 17 +++++++++++++---- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/vim/config/keybindings.vim b/vim/config/keybindings.vim index 7f80eaa..7e7694a 100644 --- a/vim/config/keybindings.vim +++ b/vim/config/keybindings.vim @@ -23,19 +23,20 @@ vmap :Buffers " Nerdtree nmap :NERDTreeToggle +" Workspaces +nmap :ToggleWorkspace + " SingleCompile nmap :SCChooseCompiler nmap :SCCompile nmap :SCCompileRun - " Window Movement nnoremap nnoremap nnoremap nnoremap - " Yankstack nmap yankstack_substitute_newer_paste nmap yankstack_substitute_older_paste @@ -44,7 +45,7 @@ nmap yankstack_substitute_older_paste inoremap imap - +" Toggle Case nmap g~iw " Rmarkdown diff --git a/vim/config/pluginconfig.vim b/vim/config/pluginconfig.vim index 5b14f41..5f6510e 100644 --- a/vim/config/pluginconfig.vim +++ b/vim/config/pluginconfig.vim @@ -80,6 +80,11 @@ autocmd BufEnter *[^(.rmd|.snippets)] EnableStripWhitespaceOnSave autocmd BufEnter *.snippets DisableStripWhitespaceOnSave +" Workspaces +let g:workspace_session_name = '.vsession' +let g:workspace_autosave = 0 +let g:workspace_autosave_untrailspaces = 0 + " Yankstack let g:yankstack_map_keys = 0 call yankstack#setup() diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index 6547ac7..621016e 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -1,6 +1,10 @@ call plug#begin('~/.vim/plugged') -Plug 'mattn/emmet-vim' +" Dependencies +Plug 'roxma/vim-hug-neovim-rpc' +Plug 'roxma/nvim-yarp' + +" Miscellaneous Plugins Plug 'Shougo/neco-vim' Plug 'ervandew/supertab' Plug 'vim-airline/vim-airline' @@ -15,25 +19,29 @@ Plug 'junegunn/fzf.vim' Plug 'plasticboy/vim-markdown' Plug 'roxma/vim-window-resize-easy' Plug 'markonm/traces.vim' - Plug 'scrooloose/nerdcommenter' +Plug 'thaerkh/vim-workspace' + +" NERDtree + Plugins Plug 'scrooloose/nerdtree' Plug 'jistr/vim-nerdtree-tabs' Plug 'Xuyuanp/nerdtree-git-plugin' +" Snippets Plug 'SirVer/ultisnips' Plug 'honza/vim-snippets' Plug 'bonsaiben/bootstrap-snippets' Plug 'rbonvall/snipmate-snippets-bib' +" Compilers Plug 'xuhdev/singlecompile' Plug 'jiangmiao/auto-pairs' -Plug 'roxma/vim-hug-neovim-rpc' -Plug 'roxma/nvim-yarp' +" Autocomplete Plug 'Shougo/deoplete.nvim' Plug 'zchee/deoplete-jedi' +" Language Specific stuff (Language Plugins, Linters, etc) Plug 'w0rp/ale' Plug 'klen/python-mode' Plug 'fs111/pydoc.vim' @@ -43,6 +51,7 @@ Plug 'udalov/kotlin-vim' Plug 'xuhdev/vim-latex-live-preview' Plug 'pearofducks/ansible-vim' +" Git integration Plug 'airblade/vim-gitgutter' Plug 'tpope/vim-fugitive'