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 <tobias.manske@mailbox.org>
This commit is contained in:
parent
9409a9f949
commit
6c460fc2d7
@ -23,19 +23,20 @@ vmap <F3> <ESC><ESC>:Buffers<CR>
|
||||
" Nerdtree
|
||||
nmap <silent> <F4> <ESC>:NERDTreeToggle<CR>
|
||||
|
||||
" Workspaces
|
||||
nmap <F6> :ToggleWorkspace<CR>
|
||||
|
||||
" SingleCompile
|
||||
nmap <F8> :SCChooseCompiler<CR>
|
||||
nmap <F9> :SCCompile<cr>
|
||||
nmap <F10> :SCCompileRun<cr>
|
||||
|
||||
|
||||
" Window Movement
|
||||
nnoremap <silent> <C-H> <C-W><C-H>
|
||||
nnoremap <silent> <C-J> <C-W><C-J>
|
||||
nnoremap <silent> <C-K> <C-W><C-K>
|
||||
nnoremap <silent> <C-L> <C-W><C-L>
|
||||
|
||||
|
||||
" Yankstack
|
||||
nmap <silent> <S-P> <Plug>yankstack_substitute_newer_paste
|
||||
nmap <silent> <C-P> <Plug>yankstack_substitute_older_paste
|
||||
@ -44,7 +45,7 @@ nmap <silent> <C-P> <Plug>yankstack_substitute_older_paste
|
||||
inoremap <C-space> <C-N>
|
||||
imap <C-@> <C-Space>
|
||||
|
||||
|
||||
" Toggle Case
|
||||
nmap <C-c> g~iw
|
||||
|
||||
" Rmarkdown
|
||||
|
@ -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()
|
||||
|
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user