Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions autoload/colortuner.vim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function! colortuner#init()
autocmd ColorScheme,VimEnter * call colortuner#on_colorscheme()
autocmd VimEnter * call colortuner#get_all_colorschemes()
autocmd BufEnter __colortuner__ call colortuner#ui#setup()
autocmd VimLeave * call colortuner#save()
autocmd BufLeave __colortuner__ call colortuner#save()
augroup END
endfunction

Expand All @@ -24,7 +24,11 @@ function! colortuner#load()
endfunction

function! colortuner#save()
call writefile([string(s:settings)], expand(g:colortuner_filepath))
try
call writefile([string(s:settings)], expand(g:colortuner_filepath))
catch
echo "Error during colortuner#save " . v:exception
endtry
endfunction

function! colortuner#on_colorscheme()
Expand Down