Skip to content

Commit

Permalink
Allow nocompatible plugin default to be overridden.
Browse files Browse the repository at this point in the history
  • Loading branch information
thaerkh committed Jul 14, 2017
1 parent ddbdd94 commit 841f255
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/workspace.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ let g:workspace_autosave_ignore = get(g:, 'workspace_autosave_ignore', ['gitcomm
let g:workspace_autosave_untrailspaces = get(g:, 'workspace_autosave_untrailspaces', 1)
let g:workspace_autosave_au_updatetime = get(g:, 'workspace_autosave_au_updatetime', 3)
let g:workspace_autocreate = get(g:, 'workspace_autocreate', 0)
let g:workspace_nocompatible = get(g:, 'workspace_nocompatible', 1)


function! s:WorkspaceExists()
Expand Down Expand Up @@ -89,7 +90,7 @@ function! s:LoadWorkspace()
if s:WorkspaceExists()
let s:workspace_save_session = 1
let a:filename = expand(@%)
set nocompatible
if g:workspace_nocompatible | set nocompatible | endif
execute 'source ' . g:workspace_session_name
call s:ConfigureWorkspace()
call s:FindOrNew(a:filename)
Expand Down

0 comments on commit 841f255

Please sign in to comment.