Linked Questions

0 votes
2 answers
35 views

How to escape spaces when setting options in vimscript?

I am trying to set an option in my init.vim. Specifically, it is the path variable, and I need to set it to a value that contains spaces because several of the directories in my Windows path contain ...
Tom Warner's user avatar
1 vote
1 answer
545 views

What's the reverse action of ctrl-y?

As title. Just like the case where <C-n> and <C-p> is a pair. I would like to know how to scroll down one line at a time.
NeoZoom.lua's user avatar
  • 1,460
6 votes
1 answer
4k views

Which setting allows me to text wrap whole words instead of letters?

At the moment, my width is set to 80. when a new line starts, it doesn't take the whole word to the next line. Instead, it takes the lagging letters. Which setting changes this behavior?
Vinn's user avatar
  • 781
-1 votes
1 answer
56 views

What's the meaning of `^=` in vimscript?

What's the meaning of ^= in the following line? set runtimepath^=~/.vim This should be a simple one but I've searched and found nothing. Thanks for your help.
NeoZoom.lua's user avatar
  • 1,460
0 votes
0 answers
15 views

":h command" doesn't work with some commads. How to deal with such cases? [duplicate]

When it comes to some commands, getting help is hard. For example, the display command. I know I can use, for example, set display=truncate or set display=lastline, but when I use :h display to read ...
james's user avatar
  • 139
7 votes
2 answers
1k views

On string concatenation, what's the difference between . and .. (single dot and double dot)?

From the :execute help (:h :exe): *:exe* *:execute* :exe[cute] {expr1} .. Executes the string that results from the evaluation of {expr1} as an Ex command. ...
awvalenti's user avatar
  • 269
1 vote
2 answers
122 views

Replace " ... " strings of various length with strings that all end at same column but start at different columns for each row

I have the following text Plan based ................................. 32 Iron based in Compound .............................. 34 Gallium Arsnide based III-V ............ 36 ... Indium ...
Kes's user avatar
  • 663
24 votes
2 answers
8k views

What does <Plug> do in vim?

I came across <Plug> in this command of easy-motion nmap <Leader>w <Plug>(easymotion-overwin-w) I tried to search for the definition of but no luck. What does it mean? Does it have ...
John Winston's user avatar
0 votes
1 answer
1k views

How to multi select for the purpose of copy operation?

I can do a search to highlight multiple unrelated words that exist with: /word1\|word2\|word3 But this is only search, it is not "select" (for copy and paste operation) How to highlight ...
user15344508's user avatar
2 votes
3 answers
532 views

How to filter without destroying original list?

I have a list of strings which is interesting in its own right, but I also want a filtered version of it for other purposes. But I discovered to my horror that filter, in addition to returning a ...
TamaMcGlinn's user avatar
0 votes
2 answers
191 views

Test string after a pattern

I want to test, if the cursor is currently in a comment line. For example in C it looks like this: // This is a comment line now it's also possible that it's a big comment section: /* * Big comment ...
TornaxO7's user avatar
  • 561
0 votes
2 answers
73 views

Inserting a future time

I would like to create a simple pomodoro timer I can insert into text files. Something like: Current Time - 10:15 End Time - 10:40 However I have not been able to find a good way to insert a future ...
Dylan Plummer's user avatar
2 votes
1 answer
324 views

How to pass custom arguments to the shell invoked by :terminal?

I would like to specify the startup command to run on the :terminal shell. E.g. bash -c ls. The shell can be specified with set shell=bash, but how to specify the arguments? In another use case, I ...
tejasvi88's user avatar
  • 470
3 votes
2 answers
6k views

How to change where Vim will read .vimrc file?

I'm re-learning Vim, and now I'm building my own ~/.vim/.vimrc file. Yes, it is store under the .vim/ folder, which is created by MacOSX after I updated to Big Sur. What I want is simply this set ...
NeoZoom.lua's user avatar
  • 1,460
0 votes
1 answer
2k views

Searching a log file using vi or view

When I open a log file in vi or view and I need to search for a word, the first thing I do is to press G to get to the bottom. Then I'll start a search using a / followed by whatever word I'm looking ...
datacon's user avatar

15 30 50 per page