Mangle the tn/tp/next/prev/cn/cp hotkeys.
[nethome.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index 075edbb..95fe92e 100644 (file)
--- 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,24 +49,30 @@ set nowritebackup
 set exrc
 set nostartofline
 set nohlsearch
-set fo=tcq
+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 <Esc>p :set invpaste paste?<cr>
 noremap <Esc>l :set invlist paste?<cr>
 noremap <Esc>q @q
 noremap <Esc>: @:
-noremap <Esc>N :next<cr>zz
-noremap <Esc>B :cn<cr>zz
-noremap <Esc>P :prev<cr>zz
-noremap <Esc>O :cp<cr>zz
+noremap <C-n> :next<cr>zz<C-g>
+noremap <C-p> :prev<cr>zz<C-g>
+noremap <Esc>N :tn<cr>zz<C-g>
+noremap <Esc>P :tp<cr>zz<C-g>
+noremap <Esc>M :cn<cr>zz<C-g>
+noremap <Esc>L :cp<cr>zz<C-g>
+noremap <Esc>g "myiw:grep<Space>-rw<Space>'<C-r>m'<Space>.
+noremap <C-]> <C-]>zz<C-g>
+noremap <C-t> <C-t>zz<C-g>
 noremap <C-d> G:r !date '+\%H:\%M:\%S-'<cr>kA
 noremap <Esc>d :set hlsearch<cr>/^[+-]\([^+-].*\\|\)$<cr>
 noremap <Esc>D :set hlsearch<cr>/^[+-][+-]\([^+-].*\\|\)$<cr>
 noremap <Esc>w 0i <Esc>/[^ ]<cr>vf.h"kyf./[^ ]<cr>vf.h"ly0x:r !date -d "`date '+\%Y'`-<C-r>l-<C-r>k" '+\%u'<cr>yypkV:!tr '1234567' 'PUSCPSN'<cr>jV:!tr '1234567' 'otttaoe'<cr>kJxv0xk0llllllplxxjddk0
 noremap * :let ic_save=&ic<cr>:set noic<cr>*:let &ic=ic_save<cr>
 noremap # :let ic_save=&ic<cr>:set noic<cr>#:let &ic=ic_save<cr>
-noremap <C-]> <C-]>zz
 
 endif "!exists("g:_kratochvil_vimrc")