Questions tagged [original-vim]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
33 views

How can I remove the word “tabs” at the beginning of the tabbar in airline-vim?

I would like the tabbar to start with the first tab not with "tabs". "tabs>1 main.tex>2 section_01.tex> <tab 2/2"
3
votes
1answer
44 views

How do I pick a line and write it to an external file?

I'm searching through a big text file and want to copy certain lines to another file - there is no specific pattern, I need to visually inspect and copy those lines to an external file. The command :...
0
votes
0answers
48 views

startinsert mode starts with NSERT — at top

When I use the command : vim -c "startinsert" sometextfile Vim starts with the characters NSERT -- at top. The cursor is placed on N and I can write over the whole thing. If I use space, the ...
0
votes
0answers
28 views

How do I fix <DEL> behavior on macOS in VIM 8.1?

I've recently installed "huge" VIM 8.1 with Lua support (on macOS via MacPorts). This installation is side-by-side with my "normal" VIM 8.0 which lacks Lua support, so I have access to both versions. ...
0
votes
0answers
35 views

How can I get the autocompletion databases on VIM using YouCompleteMe?

I just wanted to add the completion functionality on vim. For that reason, I went for YouCompleteMe plugin. It worked well with the following configuration on my .vimrc file: execute pathogen#infect()...
1
vote
2answers
33 views

Read-only mode in Vim while using cscope?

I am traversing through a C code in Vim using cscope. Sometimes while traversing, some key gets pressed or mouse gets right-clicked and the Vim enters in insert mode, and it creates a mess to undo the ...
0
votes
1answer
250 views

Why do I suddenly receive “Error detected while processing function <SNR>30_Highlight_Matching_Pair”?

I suddenly receive Error detected while processing function <SNR>30_Highlight_Matching_Pair when I want to write parantheses or when moving over parantheses. I can turn off these error message ...
0
votes
1answer
34 views

why are the results of the pwd command and the getcwd() function the same in vim?

I found that using the :pwd command is the same as using the :echo getcwd() command in the commandline mode of vim. Is pwd the same as cwd? Is there a difference between the two? As follows: I am ...
2
votes
2answers
144 views

How to make vim open two windows when opening a directory or file with netrw?

I want to achieve two effects about using the netrw plugin for vim. EFFECT ONE: I have a test directory.Here is its directory structure: MINGW64 ~/test $ ll total 1 drwxr-xr-x 1 uooki2 197121 0 一月 ...
0
votes
1answer
33 views

(how) can I use di< / di> to delete inner block of xml

What would be the best way to delete / change the inner block of an xml element? I could use df< when my cursor is inside the block, i.e. when I have: <elem>foo bar<\elem> ^ ...
0
votes
1answer
95 views

Why does vim ignore commentstring when folding (foldmethod=marker)

I am editing a HTML document (filetype=html) in vim. foldmarker is set to {,}, foldmethod to marker and commentstring to <!--%s-->. When I visually select a region and use zf to create a ...
1
vote
0answers
57 views

Standard Vim commands not working [closed]

As someone who just started learning Vim, I've been trying to write script files to accomplish basic tasks. However, despite writing #!/bin/bash on the header, it looks like my script.sh file is not ...
2
votes
1answer
45 views

Macro “oend^[Ores^[” results in new line “end2es”. How?

I don't usually have this much trouble debugging issues, but I'm starting to get stumped. The line doesn't happen when typing the macro out (running it by hand). In fact, it's part of something I ...
1
vote
0answers
38 views

How to list content of jar in jar .. in vim

As the title says, how to list the content of jar in jar. Suppose, you have a .jar file a.jar, in which you can with vim a.jar get a list of the content, like: a1.txt a2.txt b.jar With vim, you can ...
0
votes
2answers
329 views

substitution in every other line

how do I search/substitute in every other line. :s/pattern1/pattern2{2}/g file looks like 1 pattern1 text 2 pattern1 text 3 pattern1 text 4 pattern1 text Output file should look like 1 pattern1 ...
0
votes
2answers
296 views

Is there a way to open header file in c?

I'm trying to configure vim for programming in C. I currently use YouCompleteMe and Syntastic for programming auto-completion and syntax-checking. But I came up with a problem. I cannot jump to a ...