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
.ssh/config: RH updates.
[nethome.git]
/
.vimrc
diff --git
a/.vimrc
b/.vimrc
index
00b77d7
..
5254f87
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-65,6
+65,7
@@
set nohlsearch
set noincsearch
set nofoldenable
set fo=tcq1
set noincsearch
set nofoldenable
set fo=tcq1
+set nojoinspaces
"set textwidth=78
set viminfo='100,\"1000,:100,/40
let g:netrw_home = $HOME
"set textwidth=78
set viminfo='100,\"1000,:100,/40
let g:netrw_home = $HOME
@@
-72,6
+73,7
@@
let g:netrw_home = $HOME
if &term=="xterm" || &term=="xterm-256color"
set t_Co=8
endif
if &term=="xterm" || &term=="xterm-256color"
set t_Co=8
endif
+set mouse=
" FIXME: Learn how to do :tag instead of :tselect with :cstag (used by :tag and CTRL-] if set cst)
set nocst
" FIXME: Learn how to do :tag instead of :tselect with :cstag (used by :tag and CTRL-] if set cst)
set nocst
@@
-85,6
+87,11
@@
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 <C-p> :prev<cr>zz<C-g>
noremap <Esc>N :tn<cr>zz<C-g>
noremap <Esc>P :tp<cr>zz<C-g>
+"<Esc>P would auto-type random data after starting it on recent distros or Termux.
+"read(0, "\33P1$r0 q\33\\\33[?12;4$y", 4096) = 19
+noremap <Esc>P$r0<Space>q <Nop>
+" Termux types <F11>
+noremap! <Esc>[23~ <Nop>
noremap <Esc>M :cn<cr>zz<C-g>
noremap <Esc>L :cp<cr>zz<C-g>
noremap <Esc>f "myiw:grep<Space>-Ew<Space>'<C-r>m'<Space>`git ls-files`
noremap <Esc>M :cn<cr>zz<C-g>
noremap <Esc>L :cp<cr>zz<C-g>
noremap <Esc>f "myiw:grep<Space>-Ew<Space>'<C-r>m'<Space>`git ls-files`
@@
-99,5
+106,7
@@
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-k> :w<cr>:!aspell --check '%'<cr>:e<cr>
noremap gq] gq/^. \?$<cr>
noremap # :let ic_save=&ic<cr>:set noic<cr>#:let &ic=ic_save<cr>
noremap <C-k> :w<cr>:!aspell --check '%'<cr>:e<cr>
noremap gq] gq/^. \?$<cr>
+noremap <Esc>1 :w<cr>:make -j1<cr>
+noremap <Esc>m :w<cr>:make<cr>
endif "!exists("g:_kratochvil_vimrc")
endif "!exists("g:_kratochvil_vimrc")