Skip to main content
The 2024 Developer Survey results are live! See the results

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.

Filter by
Sorted by
Tagged with
1 vote
1 answer

How can I remap jump-motions in Vim?

In my neovim setup, I am using Tab to cycle forward and Shift-Tab cycle backward through my open buffers (using bufferline.nvim plugin). Because in Vim, Tab and Ctrl-I are same, I am not able to find ...
Lone Wolf's user avatar
1 vote
1 answer

is there a way to drop in my netrw location info into my jumplist

I'm aware that from a file I can type :Rex to go back to my location in Netrw Directory Listing. My muscle memory is deep here, is there a way to drop in my Newrw Directory location into my jump list? ...
lando2319's user avatar
  • 133
1 vote
0 answers

Custom Jumplist Behavior

I enjoy using ctrl-i and ctrl-o to quickly jump back large distances in a file. I would enjoy if this functionality could be extended to the in-line motions such as f, F, w, b, ... I understand that ...
cuppajoeman's user avatar
0 votes
1 answer

Difference between backtick and single quote for marks

Section 3.10 told me that: The command "'mark" (single quotation mark, or apostrophe) moves you to the beginning of the line containing the mark. This differs from the "`mark" ...
robertspierre's user avatar
0 votes
0 answers

How to "keep" Lexplore/Rexplore/Explore "memory" when toggling it?

Is there a way to keep Explore state? for example, If I open vim at ~/project, open :Lexplore, and navigate in the explore window to ~/project/a/b/c/1.txt. next time I open :Lex i would want to see ...
gcb's user avatar
  • 143
0 votes
2 answers

How to use <c-i><c-o> in terminal mode to jump to/from next/previous cursor position?

When in terminal mode, I would like that <c-i> and <c-o> work like in insert mode, i.e. the cursor jumps to its next/previous position in accordance with the jumplist. How to make this to ...
Barzi2001's user avatar
  • 650
0 votes
0 answers

How do I show the jumps list permanently in a window?

As the title says, is there a way to view the jumps list opened in a permanent window? The question is also valid for registers list.
user515933's user avatar
3 votes
1 answer

Add current position to the jump list the first time <C-u> or <C-d> is pressed

I'm often using <C-u> and <C-d> to quickly navigate around in my code (I don't like using { and } since they're hard to type on my layout). One thing that annoys me is that <C-u> and ...
T-Rex96's user avatar
  • 131
0 votes
0 answers

Put previous jump location in other buffer

I have multiple interesting buffers in my jumplist, but I would like to view two of them side-by-side. How would you do that? That's the general case of this question. In my particular case, it is ...
TamaMcGlinn's user avatar
6 votes
1 answer

`ctrl-o` but within the current file

I was working on a day ago and worked on numerous other files from then till now. I'd like to go back to my last position in without touching other files. Using ctrl-o would make me go ...
ChocolateOverflow's user avatar
8 votes
2 answers

Make jumplist behave like stack?

I use CTRL-O and CTRL-I heavily to move between previously visited positions. These commands rely on the jumplist. It makes sense to me to visualize the jumplist as a stack of my position history. ...
Greg's user avatar
  • 181
1 vote
1 answer

Quickly go to the end of "syntax highlighted" element

I am using syntax highlighting to help with writing LaTeX documents in vim. My documents involve a lot of brackets, and it is easy to do a trivial mistake and end-up with something which doesn't ...
Nitin's user avatar
  • 235
1 vote
2 answers

Move cursor to old position after scrolling

I often want to edit text in say line 200 of a file, but while doing this I need to look at say line 100, so I scroll to line 100. Is there a way to quickly jump back to line 200 after scrolling? Is ...
0x539's user avatar
  • 197
4 votes
0 answers

Pressing CTRL-O twice is required to return to previous entry in jumplist

When I start vim and I want to return to the last location in the jump list, I would like to do so with a single <C-O>. However, right now I have to press twice <C-O><C-O> to achieve ...
Hotschke's user avatar
  • 4,800
2 votes
1 answer

Is there a way to delete (trim) some jumplist items?

I want a jumplist like tree (undotree), or like taglist stack (trim some needless items), but I can not find any way to delete jumplist items. I think about hook jump action for my own jumplist, but I ...
Fanhe Fanhed's user avatar
14 votes
2 answers

How to change jumplist behavior?

See the 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 ...
Tiny's user avatar
  • 141
1 vote
1 answer

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 ...
Geremia's user avatar
  • 966
0 votes
1 answer

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 ...
Cloud's user avatar
  • 233
2 votes
2 answers

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 ...
Paperclip Bob's user avatar
2 votes
1 answer

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 ...
user1685095's user avatar
  • 1,151
3 votes
1 answer

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 ...
magnus's user avatar
  • 427
1 vote
1 answer

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 ...
marsupilam's user avatar
2 votes
1 answer

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 ...
Slade's user avatar
  • 228
1 vote
0 answers

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 ...
tbodt's user avatar
  • 111
4 votes
2 answers

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 ...
Sathyam's user avatar
  • 198
2 votes
2 answers

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 ...
nowox's user avatar
  • 459
2 votes
1 answer

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, ...
James Franco's user avatar
  • 1,121
7 votes
4 answers

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 "...
Vitor Eiji's user avatar
7 votes
1 answer

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 ...
jmjones5's user avatar
2 votes
1 answer

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: ...
yolenoyer's user avatar
  • 320
1 vote
1 answer

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 ...
MistyD's user avatar
  • 119
9 votes
4 answers

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 ...
wefwefa3's user avatar
  • 1,193
2 votes
1 answer

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 ...
user avatar
1 vote
2 answers

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 ...
Sherwin Yu's user avatar
5 votes
3 answers

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" ...
Alexander Myshov's user avatar
10 votes
3 answers

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?
SkWob's user avatar
  • 103
4 votes
0 answers

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 ...
Praxeolitic's user avatar
  • 2,488