Guest User

Untitled

a guest
Jan 21st, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. function! ToggleBackground()
  2. if (g:solarized_style=="dark")
  3. let g:solarized_style="light"
  4. colorscheme solarized
  5. else
  6. let g:solarized_style="dark"
  7. colorscheme solarized
  8. endif
  9. endfunction
  10. command! Togbg call ToggleBackground()
  11. nnoremap <F5> :call ToggleBackground()<CR>
  12. inoremap <F5> <ESC>:call ToggleBackground()<CR>
  13. vnoremap <F5> <ESC>:call ToggleBackground()<CR>
Add Comment
Please, Sign In to add comment