Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jumplist]

Questions about the manipulation of the jump list. The jump list remembers the previous jumps and allows the user to navigate in the buffer to the location of the previous modifications.

0
votes
0answers
3 views

How to change jumplist behavior

See following example: " open a file with 20+ lines. 1gg " jump to line 1 3gg " jump to line 3 5gg " jump to line 5 7gg " jump to line 7 ctrl+O " back to line 5 ctrl+O " back to line 3 ...
0
votes
1answer
34 views

How do I jump to a file:line displayed by [I?

[I Display[s] all lines that contain the keyword under the cursor. When I do so, it shows the matching files and lines and says Press ENTER or type command to continue. What command(s) can I ...
0
votes
1answer
51 views

Enable %-key jumping/highlighting for backticks (`) and single-quotes (') in M4 files

Background When working on .c and .h files, I have a couple options turned on, namely: filetype plugin on filetype indent on autocmd BufEnter *.c setlocal tabstop=8 shiftwidth=8 softtabstop=8 ...
1
vote
2answers
92 views

Recovering from accidental pagedown

I have, for many years, mapped the space key to page-down. I love this mapping, except when I don't love it. Specifically, I don't love it when I accidentally press the space key, which happens more ...
1
vote
1answer
43 views

How to restore screen after jumping back?

Say my cursor is in the middle of the screen and I jumped with gg and then jumping back with C-o or maybe other jumping command (like using marks). What happens now is that line that have been in the ...
1
vote
1answer
80 views

How do you page through the jump list?

With the :jumps command, you can display the list of jump locations to aid navigation. That is you can use CTRL_O and CTRL_I to jump backwards and forwards respectively. However, my jump lists appear ...
1
vote
1answer
52 views

cnoremap <CR> <CR> breaks search fold opening

In order to switch between relative and absolute line numbering upon entering command-line, I noremap <expr> <CR> to "someStuff". Unfortunately this breaks the foldopen-ing feature for ...
2
votes
1answer
400 views

Is it possible to clear the tag stack without jumping anywhere?

Vim keeps a stack of tags (displayable with :tags) that the user jumps to and from, similar to the jump list (displayable with :jumps). The jump list can be cleared with the :clearjumps command. This ...
1
vote
0answers
24 views

How can I jump to the previous file? [duplicate]

<c-i> and <c-o> jump to the previous location in the jump list. However, I often open a file, do some searching in it, and then have to press <c-o> a lot to get back to the original ...
4
votes
2answers
198 views

Jump to a series of line numbers one by one after a stay of x seconds at each line

I have a set of 10 line numbers, n1, n2 ,..., n10 in a code of 1000+ lines. I need to jump from one line to another. My normal practice is to do n1G, n2G... till the set is complete. It takes about 5 ...
1
vote
1answer
168 views

How to use jumplist's <C-i> which is seen as a <Tab>?

On vim's help :help jumplist I can read: Jumps are remembered in a jump list. With the CTRL-O and CTRL-I command you can go to cursor positions before older jumps, and back again. Thus you can ...
1
vote
1answer
66 views

ctrl+o and ctrl+i don't work with line skip motion 10j

I was very excited to see the relative line number feature in vim. Now vertical navigation would be a breeze, and instead of typing huge numbers, I can simply do 10j to move 10 lines down. However, ...
3
votes
1answer
160 views

Prevent the cursor from moving to the start of the yanked text?

Vim help's change.txt states that Note that after a characterwise yank command, Vim leaves the cursor on the first yanked character that is closest to the start of the buffer. This means that "...
2
votes
1answer
198 views

How to add numbered movement to the jump list?

I'm loving the fact that I can jump using relative numbers and a movement command but I always seem to find myself using the backticks to try and go back to where I was before the movement jump. I ...
2
votes
1answer
109 views

Weird behaviour with <c-i> and :normal

When I execute: :exe "normal! \<c-o>" , it works as expected (it jumps to the previous cursor location). But when I execute: :exe "normal! \<c-i>" , it outputs the E471 error: E471: ...
1
vote
1answer
80 views

ctrl+i loads older documents loaded in vim

I read that in order to navigate backwards in a jumplist. I could use ctrl+i. However I noticed that if i press that key combination extra times vim opens up files that were loaded in vim before. I am ...
6
votes
2answers
2k views

Tag navigation using CTRL+] does not work with Non English keyboard on Windows

When using gVim on Windows 7 I cannot use ^] (CTRL+]) to jump to tags as described in the Vim documentation: <C-LeftMouse> *<C-LeftMouse>* *CTRL-]* CTRL-] Jump to ...
2
votes
1answer
67 views

Navigate previous locations

I'm aware of the jumps list, and that you can navigate forwards and backwards through locations I've previously jumped between. But I'd like to duplicate the behaviour of many other editors (such as ...
1
vote
2answers
810 views

Keeping quickfix jumps in the jump list

When I populate the quickfix window (say with grep or Ag.vim), I can scroll through the entries, and all the positions inside the quickfix window show up in :jumps. But as soon as I navigate away (say ...
4
votes
3answers
287 views

Is it possible switch buffers in order of accessing but not opening?

At first I am going try to explain you "order of opening". For example, if I'll open files in this order: 1_file.c 2_file.c 3_file.c 4_file.c :ls command will give me: :ls 1 "1_file.c" ...
6
votes
3answers
127 views

How to jump only in currently open file?

Quite often, when using CTRL-O to jump back to an older position, vim takes me to other files I've been editing previously. Is there a command, to go back within the jumplist just in the current file?
4
votes
0answers
87 views

Return to previous buffer without going through every jumplist entry [duplicate]

When I've jumped from a buffer to another buffer I use C-o to return and after that I use C-i if I want to jump to that same buffer again. I think this is the common approach. The problem is that this ...