From 245704004432c05fce68d0590a3b46be3ea2ffe7 Mon Sep 17 00:00:00 2001 From: stefan Date: Tue, 11 Sep 2007 07:03:37 +0000 Subject: [PATCH] spellcheck for c- and kgs-files changed session options git-svn-id: https://vimsuite.svn.sourceforge.net/svnroot/vimsuite/trunk@146 eb2d0018-73a3-4aeb-bfe9-1def61c9ec69 --- vimfiles.damos/ftplugin/kgs.vim | 3 +++ vimfiles.stefan/ftplugin/c.vim | 2 ++ vimfiles.stefan/ftplugin/python.vim | 4 ++-- vimfiles.stefan/plugin/vimsuite.vim | 10 ++++++++++ vimfiles.stefan/vimrc | 2 +- 5 files changed, 18 insertions(+), 3 deletions(-) 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