Autocommands for writing emails, jk as escape

main
Steffen Rademacker 7 years ago
parent c9e6e41844
commit 5c7f1fab97

@ -5,10 +5,15 @@ augroup init
" Remember last location/cursor in file
autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif
" spell correction on text-files
autocmd BufNewFile,BufRead *.md setlocal spell
autocmd BufNewFile,BufRead *.md setlocal wrap
autocmd BufNewFile,BufRead *.md setlocal spelllang=en,de
" spell correction on markdown files and mail (for mutt)
autocmd FileType mail,markdown setlocal spell
autocmd FileType mail,markdown setlocal wrap
autocmd FileType mail,markdown setlocal spelllang=en,de
" special settings for writing emails, flowed text at 72 width
autocmd FileType mail setlocal textwidth=72
autocmd FileType mail setlocal comments+=nb:>
autocmd FileType mail setlocal formatoptions+=awq
" add the dash to keywords -- makes better css/js/html search
" do this for specific files only (not in php/rb e.g.) where dashes are

@ -48,6 +48,7 @@ noremap <F1> <ESC>
" hitting jj in insert mode escapes
inoremap jj <ESC>
inoremap jk <ESC>
" deactivate stupid ex-mode and man-page stuff
nnoremap Q <nop>

Loading…
Cancel
Save