git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
86a0fe1
)
.vimrc: Termux compatibility.
author
Jan Kratochvil
<jan.kratochvil@redhat.com>
Fri, 16 Apr 2021 11:47:57 +0000
(13:47 +0200)
committer
Jan Kratochvil
<jan.kratochvil@redhat.com>
Fri, 16 Apr 2021 11:47:57 +0000
(13:47 +0200)
.vimrc
patch
|
blob
|
history
diff --git
a/.vimrc
b/.vimrc
index
1ac303d
..
5254f87
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-73,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
@@
-89,6
+90,8
@@
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>
"<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`