Restore Ctrl-i (Tab) to mean "go to next jump pos"
dblume

dblume commited on 2024-04-19 23:30:05
Showing 2 changed files, with 6 additions and 6 deletions.


I had remapped Tab and Shift-Tab to mean next/prev buffer.
Didn't realize that Tab was Ctrl-i and I'd lost next jump pos.
(Funny, because it always jumped me to the other buffer, and
seemed mostly working.)

Now Ctrl-o and Ctrl-i are really working together again.
... ...
@@ -38,9 +38,9 @@ nnoremap <C-l> <C-w>l
38 38
 " clear search highlights
39 39
 nnoremap <cr> :noh<cr><cr>
40 40
 
41
-" tab switches to previous/next buffer
42
-nnoremap <Tab> :bp<cr>
43
-nnoremap <S-Tab> :bn<cr>
41
+" Shift tab switches to prev buffer
42
+" (Not remapping Tab because Ctrl-i in use as 'go to next jump pos')
43
+nnoremap <S-Tab> :bp<cr>
44 44
 
45 45
 set t_Co=256
46 46
 set colorcolumn=80
... ...
@@ -47,9 +47,9 @@ nnoremap <C-l> <C-w>l
47 47
 " clear search highlights
48 48
 nnoremap <cr> :noh<cr><cr>
49 49
 
50
-" tab switches to previous/next buffer
51
-nnoremap <Tab> :bp<cr>
52
-nnoremap <S-Tab> :bn<cr>
50
+" Shift tab switches to prev buffer
51
+" (Not remapping Tab because Ctrl-i in use as 'go to next jump pos')
52
+nnoremap <S-Tab> :bp<cr>
53 53
 
54 54
 " Use yy to yank a whole line, use Y to yank to end of line like C and D
55 55
 nnoremap Y y$
56 56