X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.vimrc;h=ed7d99871cce85a34df8b48d9a6da4702c9dccde;hp=69bb989e3165f22abaf8022a078c60d1c37b8304;hb=8ceee09fa9fed3d073397cb1b284921253268578;hpb=51d70b3a80bd19139931b5de4ba1bf7444a9720d diff --git a/.vimrc b/.vimrc index 69bb989..ed7d998 100644 --- a/.vimrc +++ b/.vimrc @@ -2,12 +2,6 @@ if !exists("g:_kratochvil_vimrc") let g:_kratochvil_vimrc=1 autocmd! filetypedetect -autocmd! gzip BufRead -autocmd! gzip BufWritePost -autocmd! gzip FileAppendPost -autocmd! gzip FileAppendPre -autocmd! gzip FileReadPost -autocmd! gzip FileWritePost "remove 'set tw=78': autocmd! BufRead *.txt @@ -41,7 +35,7 @@ function BufEnter() endfunction set encoding=utf-8 -set termencoding=iso-8859-2 +set termencoding=utf-8 " fileencoding is detected from fileencodings, first one for empty files set fileencodings=utf-8,iso-8859-2 @@ -55,22 +49,31 @@ set nowritebackup set exrc set nostartofline set nohlsearch -set fo=tcq +set noincsearch +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) +set nocst set tags=./tags,./TAGS,./../tags,./../TAGS,./../../tags,./../../TAGS,./../../../tags,./../../../TAGS,./../../../../tags,./../../../../TAGS,./../../../../../tags,./../../../../../TAGS,./../../../../../../tags,./../../../../../../TAGS,./../../../../../../../tags,./../../../../../../../TAGS,./../../../../../../../../tags,./../../../../../../../../TAGS,./../../../../../../../../../tags,./../../../../../../../../../TAGS,./../../../../../../../../../../tags,./../../../../../../../../../../TAGS,./../../../../../../../../../../../tags,./../../../../../../../../../../../TAGS,./reactos/tags,./../reactos/tags,./../../reactos/tags,,./../../../reactos/tags,./../../../../reactos/tags,./../../../../../reactos/tags,./../../../../../../reactos/tags,./w32/inc/tags,./../w32/inc/tags,./../../w32/inc/tags,,./../../../w32/inc/tags,./../../../../w32/inc/tags,./../../../../../w32/inc/tags,./../../../../../../w32/inc/tags,./../../../../../../../w32/inc/tags,/usr/src/redhat/BUILD/tags,/usr/src/redhat/BUILD/TAGS,/usr/include/tags,/usr/include/TAGS -noremap p :set invpaste paste? -noremap l :set invlist paste? -noremap q @q -noremap : @: -noremap N :next -noremap P :prev -noremap  G:r !date '+\%H:\%M:\%S-' kA -noremap d :set hlsearch/^[+-]\([^+-].*\\|\)$ -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 p :set invpaste paste? +noremap l :set invlist paste? +noremap q @q +noremap : @: +noremap :nextzz +noremap :prevzz +noremap N :tnzz +noremap P :tpzz +noremap M :cnzz +noremap L :cpzz +noremap g "myiw:grep-rw'm'. +noremap zz +noremap zz +noremap G:r !date '+\%H:\%M:\%S-'kA +noremap d :set hlsearch/^[+-]\([^+-].*\\|\)$ +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  zz endif "!exists("g:_kratochvil_vimrc")