aboutsummaryrefslogtreecommitdiff
path: root/plugin/vim-options.vim
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2017-03-13 13:34:27 -0600
committerCody Hiar <codyfh@gmail.com>2017-03-13 13:34:27 -0600
commit64e24515d06b7dabd401e4ddd4993aadba66da30 (patch)
treee072de3a33ffbf9acf67a894c40ac679ca2e72f5 /plugin/vim-options.vim
parent225853a3b01b7a59cd14d98e69fadad1f5634c86 (diff)
Moving session functions to neovim only
Diffstat (limited to 'plugin/vim-options.vim')
-rw-r--r--plugin/vim-options.vim22
1 files changed, 11 insertions, 11 deletions
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 <leader>ee :call SaveSession()<CR>
+ " Function for restoring session
+ function! RestoreSession()
+ :source .vimcache/session.vim
+ endfunction
+ nnoremap <leader>er :call RestoreSession()<CR>
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 <leader>ee :call SaveSession()<CR>
-" Function for restoring session
-function! RestoreSession()
- :source 'session.vim'
-endfunction
-nnoremap <leader>er :call RestoreSession()<CR>
" Vimdiff commands
nnoremap <leader>du :diffupdate<CR>
nnoremap <leader>dd :diffget<CR>