aboutsummaryrefslogtreecommitdiffstats
path: root/.vimrc
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2018-03-23 07:15:41 +0000
committerkatherine <shmibs@shmibbles.me>2018-03-23 07:15:41 +0000
commit3cd47f896413887fe6abad014d22d9f60173278b (patch)
treeb76e09fc882e4c8d849cff85a9e848a886799d5d /.vimrc
parent47479cf9d96b7b67a8799edb46f70fa559d9ee43 (diff)
downloaddotfiles-3cd47f896413887fe6abad014d22d9f60173278b.tar.gz
more mutt settings
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc15
1 files changed, 13 insertions, 2 deletions
diff --git a/.vimrc b/.vimrc
index 658a5bc..486664b 100644
--- a/.vimrc
+++ b/.vimrc
@@ -149,8 +149,8 @@ set title
set spelllang=en_gb
"visual marker for overflowing the 80th column
-highlight Column81 ctermbg=8
-call matchadd('Column81', '\%81v', 100)
+highlight Overwide ctermbg=8
+call matchadd('Overwide', '\%81v', 100)
"highlight space before tab
highlight SpaceBeforeTab ctermbg=red
@@ -160,6 +160,9 @@ call matchadd('SpaceBeforeTab', '\ \t')
"that neovim sets as default
set nohlsearch
+set encoding=utf-8
+set fileencoding=utf-8
+
"""""""""""""
" ALIASES "
@@ -254,6 +257,7 @@ autocmd FileType haskell call Settings_haskell()
autocmd FileType html call Settings_html()
autocmd FileType xhtml call Settings_html()
autocmd FileType make call Settings_script()
+autocmd FileType mail call Settings_mail()
autocmd FileType markdown call Settings_markdown()
autocmd FileType matlab call Settings_matlab()
autocmd FileType mips call Settings_mips()
@@ -385,6 +389,13 @@ function! Settings_markdown()
nnoremap <buffer> <Leader>w :call Settings_sub_wmodetoggle()<CR>
endfunction
+function! Settings_mail()
+ "settings
+ setlocal spell
+ "mappings
+ nnoremap <buffer> <Leader>w :call Settings_sub_wmodetoggle()<CR>
+endfunction
+
function! Settings_matlab()
"settings
setlocal shiftwidth=4