From 64e24515d06b7dabd401e4ddd4993aadba66da30 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Mon, 13 Mar 2017 13:34:27 -0600 Subject: Moving session functions to neovim only --- plugin/vim-options.vim | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'plugin/vim-options.vim') diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index d69a9d8..aa9b237 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -101,6 +101,17 @@ if has('nvim') set backupdir=.vimcache/backup/ set directory=.vimcache/swp/ let g:syntastic_python_python_exec = '/usr/bin/python3' + " Function for saving session + function! SaveSession() + :mksession! .vimcache/session.vim + :echo 'Session Saved!' + endfunction + nnoremap ee :call SaveSession() + " Function for restoring session + function! RestoreSession() + :source .vimcache/session.vim + endfunction + nnoremap er :call RestoreSession() else " Vim Options let EditorDir=$HOME.'/.vim/' @@ -138,17 +149,6 @@ com! Formatjson %!python -m json.tool nnoremap gp `[v`] " Yank withouth newline nmap yY ^y$$ -" Function for saving session -function! SaveSession() - :mksession! 'session.vim' - :echo 'Session Saved!' -endfunction -nnoremap ee :call SaveSession() -" Function for restoring session -function! RestoreSession() - :source 'session.vim' -endfunction -nnoremap er :call RestoreSession() " Vimdiff commands nnoremap du :diffupdate nnoremap dd :diffget -- cgit v1.2.3