diff --git a/vimfiles.damos/ftplugin/kgs.vim b/vimfiles.damos/ftplugin/kgs.vim index 519ce2f..8b71d5d 100644 --- a/vimfiles.damos/ftplugin/kgs.vim +++ b/vimfiles.damos/ftplugin/kgs.vim @@ -36,6 +36,9 @@ setlocal formatexpr=KgsFormat() " ---------- let b:commentstring = "\/\/" +" spell check +setlocal spell + " Grep options let b:GrepFiles = '*.kgs' diff --git a/vimfiles.stefan/ftplugin/c.vim b/vimfiles.stefan/ftplugin/c.vim index e990c9e..ac80574 100644 --- a/vimfiles.stefan/ftplugin/c.vim +++ b/vimfiles.stefan/ftplugin/c.vim @@ -43,6 +43,8 @@ let b:commentstring = "\/\/" "setlocal comments=sO:*\ -,mO:\ \ \ ,exO:*/,s1:/*,mb:\ ,ex:*/ setlocal cpoptions-=C +" spell check +setlocal spell " Grep options let b:GrepFiles = '*.c *.h' diff --git a/vimfiles.stefan/ftplugin/python.vim b/vimfiles.stefan/ftplugin/python.vim index a330dd1..f58c36e 100644 --- a/vimfiles.stefan/ftplugin/python.vim +++ b/vimfiles.stefan/ftplugin/python.vim @@ -1,7 +1,7 @@ " Stefans python-file plugin -" don't use spaces for tabs -setlocal noexpandtab +" use spaces for tabs +setlocal expandtab setlocal tabstop=4 setlocal shiftwidth=4 setlocal formatoptions=croq diff --git a/vimfiles.stefan/plugin/vimsuite.vim b/vimfiles.stefan/plugin/vimsuite.vim index 427b207..a999a1f 100644 --- a/vimfiles.stefan/plugin/vimsuite.vim +++ b/vimfiles.stefan/plugin/vimsuite.vim @@ -913,4 +913,14 @@ function Insert_Header(file) endwhile endfunction +" ------- +" Outlook +" ------- + +command OutlookBugfix call s:OutlookBugfix() +function s:OutlookBugfix() + silent execute ':%s$^\(\%([^,]*,\)\{55}\)"\/o[^,]*\"\(,"EX","[^(]*(\)\([^)]*\)\()",\)$\1"\3"\2\3\4$c' + silent execute ':%s$^\(\%([^,]*,\)\{47}\)"\/o[^,]*\"\(,"EX","[^(]*(\)\([^)]*\)\()",\)$\1"\3"\2\3\4$c' +endfunction + EchoDebug 'loaded tools.vim' diff --git a/vimfiles.stefan/vimrc b/vimfiles.stefan/vimrc index 0293eaa..e502275 100644 --- a/vimfiles.stefan/vimrc +++ b/vimfiles.stefan/vimrc @@ -169,7 +169,7 @@ nnoremap gb :edit # " ----------- " come and go " ----------- -set sessionoptions=blank,buffers,curdir,globals,winsize +set sessionoptions=blank,buffers,curdir,folds,help,resize,tabpages,winsize " open window size autocmd GUIEnter * winsize 100 60 " read and write files automatically