" Activate spell checking, use English as default. Don't use spell checking
" when diffing.
-if v:version >= 700 && !&diff
+if v:version >= 700 && has('syntax') && !&diff
set spell
set spelllang=en_us
endif
nnoremap <Leader>9 :9b<CR>
nnoremap <Leader>0 :10b<CR>
+" Make last active window the only window. Similar to <C-w> o.
+nnoremap <C-w>O <C-w>p<C-w>o
+
" Maps to change spell language between English and German and disable spell
" checking.
if v:version >= 700