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
|
" Nerdtree
|
||||||
nmap <silent> <F4> <ESC>:NERDTreeToggle<CR>
|
nmap <silent> <F4> <ESC>:NERDTreeToggle<CR>
|
||||||
|
|
||||||
|
" Workspaces
|
||||||
|
nmap <F6> :ToggleWorkspace<CR>
|
||||||
|
|
||||||
" SingleCompile
|
" SingleCompile
|
||||||
nmap <F8> :SCChooseCompiler<CR>
|
nmap <F8> :SCChooseCompiler<CR>
|
||||||
nmap <F9> :SCCompile<cr>
|
nmap <F9> :SCCompile<cr>
|
||||||
nmap <F10> :SCCompileRun<cr>
|
nmap <F10> :SCCompileRun<cr>
|
||||||
|
|
||||||
|
|
||||||
" Window Movement
|
" Window Movement
|
||||||
nnoremap <silent> <C-H> <C-W><C-H>
|
nnoremap <silent> <C-H> <C-W><C-H>
|
||||||
nnoremap <silent> <C-J> <C-W><C-J>
|
nnoremap <silent> <C-J> <C-W><C-J>
|
||||||
nnoremap <silent> <C-K> <C-W><C-K>
|
nnoremap <silent> <C-K> <C-W><C-K>
|
||||||
nnoremap <silent> <C-L> <C-W><C-L>
|
nnoremap <silent> <C-L> <C-W><C-L>
|
||||||
|
|
||||||
|
|
||||||
" Yankstack
|
" Yankstack
|
||||||
nmap <silent> <S-P> <Plug>yankstack_substitute_newer_paste
|
nmap <silent> <S-P> <Plug>yankstack_substitute_newer_paste
|
||||||
nmap <silent> <C-P> <Plug>yankstack_substitute_older_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>
|
inoremap <C-space> <C-N>
|
||||||
imap <C-@> <C-Space>
|
imap <C-@> <C-Space>
|
||||||
|
|
||||||
|
" Toggle Case
|
||||||
nmap <C-c> g~iw
|
nmap <C-c> g~iw
|
||||||
|
|
||||||
" Rmarkdown
|
" Rmarkdown
|
||||||
|
@ -80,6 +80,11 @@ autocmd BufEnter *[^(.rmd|.snippets)] EnableStripWhitespaceOnSave
|
|||||||
autocmd BufEnter *.snippets DisableStripWhitespaceOnSave
|
autocmd BufEnter *.snippets DisableStripWhitespaceOnSave
|
||||||
|
|
||||||
|
|
||||||
|
" Workspaces
|
||||||
|
let g:workspace_session_name = '.vsession'
|
||||||
|
let g:workspace_autosave = 0
|
||||||
|
let g:workspace_autosave_untrailspaces = 0
|
||||||
|
|
||||||
" Yankstack
|
" Yankstack
|
||||||
let g:yankstack_map_keys = 0
|
let g:yankstack_map_keys = 0
|
||||||
call yankstack#setup()
|
call yankstack#setup()
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
call plug#begin('~/.vim/plugged')
|
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 'Shougo/neco-vim'
|
||||||
Plug 'ervandew/supertab'
|
Plug 'ervandew/supertab'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
@ -15,25 +19,29 @@ Plug 'junegunn/fzf.vim'
|
|||||||
Plug 'plasticboy/vim-markdown'
|
Plug 'plasticboy/vim-markdown'
|
||||||
Plug 'roxma/vim-window-resize-easy'
|
Plug 'roxma/vim-window-resize-easy'
|
||||||
Plug 'markonm/traces.vim'
|
Plug 'markonm/traces.vim'
|
||||||
|
|
||||||
Plug 'scrooloose/nerdcommenter'
|
Plug 'scrooloose/nerdcommenter'
|
||||||
|
Plug 'thaerkh/vim-workspace'
|
||||||
|
|
||||||
|
" NERDtree + Plugins
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
Plug 'jistr/vim-nerdtree-tabs'
|
Plug 'jistr/vim-nerdtree-tabs'
|
||||||
Plug 'Xuyuanp/nerdtree-git-plugin'
|
Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||||
|
|
||||||
|
" Snippets
|
||||||
Plug 'SirVer/ultisnips'
|
Plug 'SirVer/ultisnips'
|
||||||
Plug 'honza/vim-snippets'
|
Plug 'honza/vim-snippets'
|
||||||
Plug 'bonsaiben/bootstrap-snippets'
|
Plug 'bonsaiben/bootstrap-snippets'
|
||||||
Plug 'rbonvall/snipmate-snippets-bib'
|
Plug 'rbonvall/snipmate-snippets-bib'
|
||||||
|
|
||||||
|
" Compilers
|
||||||
Plug 'xuhdev/singlecompile'
|
Plug 'xuhdev/singlecompile'
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
Plug 'roxma/vim-hug-neovim-rpc'
|
|
||||||
Plug 'roxma/nvim-yarp'
|
|
||||||
|
|
||||||
|
" Autocomplete
|
||||||
Plug 'Shougo/deoplete.nvim'
|
Plug 'Shougo/deoplete.nvim'
|
||||||
Plug 'zchee/deoplete-jedi'
|
Plug 'zchee/deoplete-jedi'
|
||||||
|
|
||||||
|
" Language Specific stuff (Language Plugins, Linters, etc)
|
||||||
Plug 'w0rp/ale'
|
Plug 'w0rp/ale'
|
||||||
Plug 'klen/python-mode'
|
Plug 'klen/python-mode'
|
||||||
Plug 'fs111/pydoc.vim'
|
Plug 'fs111/pydoc.vim'
|
||||||
@ -43,6 +51,7 @@ Plug 'udalov/kotlin-vim'
|
|||||||
Plug 'xuhdev/vim-latex-live-preview'
|
Plug 'xuhdev/vim-latex-live-preview'
|
||||||
Plug 'pearofducks/ansible-vim'
|
Plug 'pearofducks/ansible-vim'
|
||||||
|
|
||||||
|
" Git integration
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user