aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-10 22:27:04 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-10 22:27:04 +1200
commit751b3ab33e124ecbcef5ced7305a881431eb15d7 (patch)
tree052d14094a452d49b8293fdfa0f7d3772b9be00c /vim/autoload
parent34cbaea22ecdebd562a0e39f259ef160f81e9fb2 (diff)
downloaddotfiles-751b3ab33e124ecbcef5ced7305a881431eb15d7.tar.gz
dotfiles-751b3ab33e124ecbcef5ced7305a881431eb15d7.zip
Remove session_lazy.vim
I think this is the wrong approach, and maybe even a slight security risk.
Diffstat (limited to 'vim/autoload')
-rw-r--r--vim/autoload/session_lazy.vim25
1 files changed, 0 insertions, 25 deletions
diff --git a/vim/autoload/session_lazy.vim b/vim/autoload/session_lazy.vim
deleted file mode 100644
index 59caae37..00000000
--- a/vim/autoload/session_lazy.vim
+++ /dev/null
@@ -1,25 +0,0 @@
-" Choose the filename we'll use for these sessions
-let g:session_lazy#active = 0
-if !exists('g:session_lazy#filename')
- let g:session_lazy#filename = 'Session.vim'
-endif
-
-" If we started with no arguments, there's no active session, and there's a
-" session file sitting right there, read it
-function! session_lazy#Thaw()
- if !argc()
- \ && v:this_session ==# ''
- \ && filereadable(g:session_lazy#filename)
- let g:session_lazy#active = 1
- execute 'source ' . g:session_lazy#filename
- endif
-endfunction
-
-" Before we quit, if we opened this with a session automatically, save it back
-" again, into the same file
-function! session_lazy#Freeze()
- if g:session_lazy#active
- \ && g:session_lazy#filename ==# fnamemodify(v:this_session, ':t')
- execute 'mksession! ' . g:session_lazy#filename
- endif
-endfunction