commit 134e5104cc03d65d5545949cac1ffad4206327c4
parent 966a3249a64c172849a8b3a9271aebe54f84adee
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 30 Apr 2019 15:00:51 +0200
Remove tmux/vim navigation, add binding for storing sessions
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.vim/plugin/keybinds.vim b/.vim/plugin/keybinds.vim
@@ -39,7 +39,7 @@ nnoremap <leader>i :Ilist<space>
nnoremap <leader>j :tjump /
nnoremap <leader>m :make<cr>
"" strip trailing whitespace
-nnoremap <leader>s :call StripTrailingWhitespace()<cr>
+"nnoremap <leader>s :call StripTrailingWhitespace()<cr>
"" go to last used buffer
nnoremap <leader><tab> :b#<cr>
@@ -132,3 +132,7 @@ nnoremap <silent> [c :cprevious<cr>
" show as presentation in sent
nnoremap <leader>S :w!<cr>:!sent <c-r>%<cr><cr>
+
+" save current session
+" (open with `vim -S <sessionname>.vim` or :source <sessionname>
+nnoremap <leader>s :mksession! <c-r>%.session.vim
diff --git a/.vim/plugins.vim b/.vim/plugins.vim
@@ -21,7 +21,6 @@ Plug 'w0rp/ale' " asynchronous syntax check
Plug 'lukhio/adVIMsor', { 'on': 'AdVIMsorEnable' } " checks with :AdVIMsor*
"""""" Buffer motion """"""
-Plug 'christoomey/vim-tmux-navigator' " seamless tmux pane/vim window navigation
Plug 'justinmk/vim-sneak' " move cursor s{char}{char}, use cl for sub
" """""" Text editing """"""