Skip to main content

Questions tagged [jump]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
7 votes
6 answers
2k views

Does Vim have functionality similar to tmux's `display-panes` command for selecting (goto) a specific window by number?

Does Vim have functionality similar to tmux's display-panes command for selecting (goto) a specific window by number? Sometimes when I've many windows open, it can be a pain to navigate them by C-w ...
Shuzheng's user avatar
  • 1,285
7 votes
1 answer
2k views

Open ctrl+] in a new split?

How can I open the result of ctrl+] in a new split? similar: How do I open a tag with ctrl+] but open it in an existing split?
Geremia's user avatar
  • 966
3 votes
1 answer
244 views

Prevent jumping when pattern matching

Is there a way to prevent cursor to search forward when using the * or /? I just want to highlight the word I am on & others, but not move to forward nor backward.
ogirginc's user avatar
  • 345
2 votes
4 answers
1k views

Jump back to the position I started a search

I have a small question: let's suppose I'm at the beginning of line 10 and I search a term with the command /term_to_search and then I press <Enter> to start navigating search results with n or ...
LuxGiammi's user avatar
  • 207
2 votes
1 answer
30 views

How to jump to the first character of the first line of the next/previous block of text?

I am aware of {and } to navigate between blocks of texts , however these jump to blank lines in between blocks of text. When there are several blank lines in between 2 blocks of text these do not ...
user3203476's user avatar
1 vote
2 answers
383 views

Jump to (or get position of) any kind of parent brace

I am within a vimscript, and I want jump (or get the position of) the beginning of the current parent brace, how can I make this happen? Imagine the following example (the cursor is represented by |): ...
DasOhmoff San's user avatar
1 vote
2 answers
342 views

Substituting without jumping

My problem is rather simple : I use a macro to wrap my current visual selection with some text (\verb; and ;, in fact). The current macro I use is :s#\%V.*\%V#\\verb;\0;. It works, but suffers from ...
user avatar
1 vote
1 answer
159 views

Please explain/provide example of difference between gd and 1gd commands?

I was reading the vim :help docs and stumbled upon the gd and 1gd normal mode commands. But I haven't been able to grasp what's the difference. The docs says: *1gd* 1gd ...
d.k's user avatar
  • 724
1 vote
1 answer
181 views

Have to hit "Enter" after searching or I lose the pattern

If I am searching for a word inside a file, if I do not hit ENTER after the search pattern, my vi loses the current match and jumps back to where it was. I have set hlsearch set incsearch in .vimrc. ...
unsafe_where_true's user avatar
1 vote
1 answer
128 views

How can I alter the window to which ctrl+w, ctrl+p will jump to?

What I'm looking for is a programmatic way of changing which window Ctrl+w, Ctrl+p will jump to. The reason why I want to do this is that I have an autocmd like the following autocmd BufEnter ...
Enlico's user avatar
  • 2,256
1 vote
1 answer
44 views

How to jump to location of completion from another file?

In Vim, oftens I happen to be using some completion that vim provides for me in the Ctrl n/Ctrl p menu. If the completion happens to be from some other file, I know that Vim knows where it comes from ...
user22476690's user avatar
1 vote
0 answers
48 views

Any ideas on how to jump back and forth between a file and its corresponding unit test?

Here's an example of a typical project structure for me: components/a.js components/common/b.js tests/unit/components/a.test.js tests/unit/components/common/b.test.js Notice that inside the /unit ...
jose's user avatar
  • 11
1 vote
0 answers
390 views

jump to line via letters instead of relative numbers

I currently use relative numbers to jump from my current line to another one. But since typing letters is easier then numbers, i wanted to know if there is a way to replace the line numbers with ...
Mars Rover's user avatar
1 vote
0 answers
211 views

Jumping to matching angle brackets in heavily templated C++ code

By heavily templated I mean it's easy to have something like this, which is a trivial example I made up: #include <type_traits> class a {}; bool operator<(a,a) { return true; }; bool b = std::...
Enlico's user avatar
  • 2,256
0 votes
1 answer
110 views

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
1 answer
35 views

How to jump between markdown code chunk fence?

Is there a way to jump between beginning and end of a markdown based code chunk? I know I can use / to search for the code chunk markers (e.g. /```) but I was hoping there was a way to do like we can ...
alejandro_hagan's user avatar
0 votes
2 answers
111 views

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
  • 748
0 votes
2 answers
2k views

Go to definition with LSP

I'm trying to use Jedi to do "jump-to-definition". For example, if my cursor is on MLPClassifier, I want to be able jump to the place where that class is defined in Python code from the ...
efthimio's user avatar
  • 101
0 votes
0 answers
52 views

Go to end of last pasted region

Sometimes `] works, but not after inserting some new text somewhere. How can I jump to the end (and/or start) of the last region of text I pasted with some variant of p? `] does not work here: vim --...
minseong's user avatar
  • 2,393
-1 votes
1 answer
37 views

How to make mappings for "jump to after next occurrence of character" / "jump to the before previous occurrence of character"?

There are standard keybindings: fx - jump to next occurrence of character x tx - jump to before next occurrence of character x Fx - jump to the previous occurrence of character x Tx - jump to after ...
Anton Samokat's user avatar