git://git.jankratochvil.net
/
nethome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
+"euc-jp" file encoding autodetection.
[nethome.git]
/
.vimrc
diff --git
a/.vimrc
b/.vimrc
index
26adee7
..
6f20711
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-33,11
+33,19
@@
function BufEnter()
runtime! ./../../../../../../../../../../../.vimrc ./../../../../../../../../../../.vimrc ./../../../../../../../../../.vimrc ./../../../../../../../../.vimrc ./../../../../../../../.vimrc ./../../../../../../.vimrc ./../../../../../.vimrc ./../../../../.vimrc ./../../../.vimrc ./../../.vimrc ./../.vimrc ./.vimrc
endif
endfunction
runtime! ./../../../../../../../../../../../.vimrc ./../../../../../../../../../../.vimrc ./../../../../../../../../../.vimrc ./../../../../../../../../.vimrc ./../../../../../../../.vimrc ./../../../../../../.vimrc ./../../../../../.vimrc ./../../../../.vimrc ./../../../.vimrc ./../../.vimrc ./../.vimrc ./.vimrc
endif
endfunction
+" From Red Hat vimrc - restore the cursor position after the file got opened:
+autocmd BufReadPost * call BufReadPost()
+function BufReadPost()
+ if line("'\"") > 0 && line ("'\"") <= line("$")
+ exe "normal! g'\""
+ endif
+endfunction
set encoding=utf-8
set termencoding=utf-8
" fileencoding is detected from fileencodings, first one for empty files
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
ca X x
syntax off
@@
-49,6
+57,7
@@
set nowritebackup
set exrc
set nostartofline
set nohlsearch
set exrc
set nostartofline
set nohlsearch
+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 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)
@@
-59,8
+68,10
@@
noremap <Esc>p :set invpaste paste?<cr>
noremap <Esc>l :set invlist paste?<cr>
noremap <Esc>q @q
noremap <Esc>: @:
noremap <Esc>l :set invlist paste?<cr>
noremap <Esc>q @q
noremap <Esc>: @:
-noremap <Esc>N :next<cr>zz<C-g>
-noremap <Esc>P :prev<cr>zz<C-g>
+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 <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>.