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,195
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
  • 956
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
  • 187
2 votes
1 answer
177 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
  • 325
2 votes
1 answer
27 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
282 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
316 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 ...
FlatBartender's user avatar
1 vote
1 answer
117 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. ...
transient_loop's user avatar
1 vote
1 answer
114 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,172
1 vote
1 answer
35 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
41 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
347 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
187 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,172
0 votes
2 answers
96 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
  • 481
0 votes
2 answers
1k 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
45 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 --...
theonlygusti's user avatar
  • 2,219