Questions tagged [vim]
Vim is a free and open-source modal text editor available for most major platforms. It allows high efficiency in many text editing tasks but has a steep learning curve. To learn the basics, run ":help vimtutor". For non-programming questions please use https://vi.stackexchange.com/ instead.
28,150
questions
0
votes
2
answers
22
views
How to repeat a previously typed word in vim after inserting another character
Say I type foo in insert mode and want to insert (foo with a brace in another place.
The dot command . doesn't repeat foo in that case, but (.
How can I repeat the typing of foo?
0
votes
0
answers
21
views
EasyMotion plugin doesn't load automatically on Vim startup in WSL Ubuntu
I am using Windows with WSL (Windows Subsystem for Linux) running Ubuntu. In my Vim setup, I have the EasyMotion plugin installed. However, the plugin does not load automatically when I start Vim. I ...
-1
votes
0
answers
18
views
In vimdiff, how can I shift-v (select entire line) in both buffers?
I want to to be able to to select across buffers in vimdiff. Is there a way to do this?
For instance, I want to be able to shift-v on both documents, and show the highlighted lines across both ...
-8
votes
0
answers
66
views
Misaligned variable declaration erro [closed]
i am coding on vim
this seems to have a problem:
int i;
char z;
it says they're Misaligned i don't know what to do
tried to rewrite it and fixed the tabs and spaces
-2
votes
2
answers
43
views
Vim stdpath function invalid
I was trying to get the configure file's location using echo stdpath("config") and the console showed E117: unknown function: stdpath
Reinstall tried (isn't thorough enough because vimrc ...
0
votes
1
answer
43
views
How to do this specific search & replace in vim
I would like to change the text below
[One]
,[Two]
,[Three]
(there are tab characters at the start of each line)
into
[One] = @One
,[Two] = @Two
,[Three] = @Three
Where for each ...
1
vote
1
answer
31
views
VIM: digraph for padding character breaks macro in register
If I do q e CTRL+W Right Arrow q, it binds the command "move one window to the right in the split" to the e key.
The macro for this as found by "ep is ^W<80>kr.
If I want to type ...
1
vote
0
answers
34
views
Syntax highlight exclusively within a region
I'm trying to add syntax highlighting for arguments with patterns similar to this:
if(GetKey(KEY_SPACE) == KEY_PRESSED)
where a KEY_ match should be highlighted, but only when inside GetKey.
I've ...
0
votes
0
answers
30
views
How do I install the tagalong plugin with vim-plug?
I am unsure if I followed the steps correctly when trying to install the plugin tagalong.
The problem is its functionality is not working after I installed it. Here are the steps I took.
Per https://...
0
votes
1
answer
28
views
How do I use keyboard shortcuts starting wtih <C-c> in Vim?
I'm trying to use python-mode with Vim and a lot of the commands are by default bound to things like '<C-c>rm'. What does this mean? Ctrl+c just exits the current mode, so in normal mode it does ...
0
votes
1
answer
25
views
Automation - Execute VIM macro a dynamic number of times
Is it possible to set up a macro in vim such that it executes a number of times equal to the number of results it finds earlier in execution?
I am trying to take a list of names, find all blocks in a ...
0
votes
0
answers
40
views
Generate aliased namespaced tags with Ctags
I'm trying to configure Universal Ctags to recognize functions imported from different namespaces with an alias. The language I'm using is Clojure (I also give an example in Javascript), so every ...
0
votes
0
answers
54
views
How to Map “Termdebug” Shortcuts in Vim
I want to use F2 to enter Termdebug immediately.
It's convenient to put file's name after the command like: Termdebug xxx (which has complied with -g option)
My host is Windows 11 and use VMware, ...
-1
votes
0
answers
24
views
Getting YouCompleteMe to work with C includes
I am pleased with how https://github.com/ycm-core/YouCompleteMe operates but is there any way for it to recognize or search includes files?
Say I have a struct in a header file:
typdef struct {
...
-2
votes
0
answers
27
views
Vim exhibits more delay in the terminal of system compared to the terminal in VSCode and IntelliJ IDEA
Opening the system's built-in terminal to use Vim sometimes results in noticeable delay. For example, when using j, k, or % to move the cursor, it takes a long time for the cursor to move correctly. ...