X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=7f6d741a347148caaf81f22bf8ad05de93633c4e;hp=4fc1e2f6fd16f08a79a48fdcb946964706659c19;hb=168e0bb3dfaa5cb9883826c7a135a42a92a44730;hpb=bd39f9f2114f1c5d7b19834fa82ce060441b20a7 diff --git a/.vimrc b/.vimrc index 4fc1e2f..7f6d741 100644 --- a/.vimrc +++ b/.vimrc @@ -1,3 +1,6 @@ +" $Id$ + + if !exists("g:_kratochvil_vimrc") let g:_kratochvil_vimrc=1 @@ -44,10 +47,15 @@ endfunction set encoding=utf-8 set termencoding=utf-8 " fileencoding is detected from fileencodings, first one for empty files -set fileencodings=utf-8,iso-8859-2 +" 'iso-8859-2,euc-jp' really does not work for 'euc-jp' +set fileencodings=utf-8,euc-jp,iso-8859-2 ca X x syntax off +let g:loaded_matchparen = 1 +set swapsync= +" vim-7+ only +silent! set nofsync set noerrorbells set ruler set ignorecase @@ -57,6 +65,7 @@ set exrc set nostartofline set nohlsearch set noincsearch +set nofoldenable set fo=tcq1 set viminfo='100,\"1000,:100,/40 " FIXME: Learn how to do :tag instead of :tselect with :cstag (used by :tag and CTRL-] if set cst) @@ -82,5 +91,6 @@ noremap D :set hlsearch/^[+-][+-]\([^+-].*\\|\)$ noremap w 0i /[^ ]vf.h"kyf./[^ ]vf.h"ly0x:r !date -d "`date '+\%Y'`-l-k" '+\%u'yypkV:!tr '1234567' 'PUSCPSN'jV:!tr '1234567' 'otttaoe'kJxv0xk0llllllplxxjddk0 noremap * :let ic_save=&ic:set noic*:let &ic=ic_save noremap # :let ic_save=&ic:set noic#:let &ic=ic_save +noremap :w:!aspell --check '%':e endif "!exists("g:_kratochvil_vimrc")