Questions tagged [original-vim]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
30 views

Autocomplete filename from current directory in current buffer [duplicate]

So i have a bunch of files in a directory. I'm editing another file which have broken links/reference to these same files, and i want to edit them. There isn't too much so doing it manually wouldn't ...
7
votes
2answers
592 views

Advice to add `set nocompatible` as first line of .vimrc

I recall (perhaps in the early 2000's) having set nocompatible as the first line of my vimrc and most Vim guides and tutorials recommending that practice. Some examples I could easily find online: ...
0
votes
1answer
51 views

Why is `vmap` for both Visual *and* Select mode?

Vim has both Visual and Select modes. Select mode is similar to Visual mode in some senses, but different in that when a printable character is typed, Vim will replace the selection with that ...
1
vote
1answer
22 views

How to set colors for vim warnings about existing swap files

Is it possible to set color for the warning message "Swap file XXX already exists! ..."? I couldn't figure out which highlight group it belongs to.
1
vote
1answer
48 views

Empty space between two &

I want to empty inner columns in a latex table, ie all the words between 2 &. How I can do it ? I have tried quite a few formulas like s/&*&/\& \&/gc but I just can't find ...
0
votes
0answers
24 views

Vim not rendering text when moving up

I can move down until the last line of a file with no issues. However, when move up the text that was out of screen bounds does not render (as shown by the figure) until i press Ctrl + L to force ...
0
votes
1answer
19 views

Keybind for moving a file using netrw from outside of netrw

I wanted to be able to move/rename a currently open file using netrw. The typical concerns are: Closing the old buffer Actually moving to preserve file attributes (so no :saveas) I'm aware of some ...
1
vote
3answers
52 views

Most efficient way to insert numbered columns into formatted text using standard Vim commands?

I sometimes need to insert auto_incremented, numbered columns on other people's machines so I'm looking for a good way to do so without relying on any custom plugins, macros, or scripts; standard Vim ...
1
vote
2answers
73 views

How to delete a character that is present between two specific characters from every line in VIM?

I have a CSV file in which data in a row are present in following way: ID, Name, State, Score, Rank In the Name Column, data are in "some Name" form. But there are many entries in which a comma is ...
5
votes
1answer
150 views

Parsing winlayout() For Toggling Multiple Windows At Once

When working in vim, I like to have a toggle-able terminal window that I can bring with me from tab to tab. This works by tracking a buffer, and opening it in a new bot split (if it isn't visible), or ...
3
votes
3answers
323 views

How can I use different vim setting for different filename?

In most cases, I want to use the same setting. However, when I write the makefile file, I need to use tab instead of space, so I need to execute the :set noexpandtab for all the makefile file. In ...
0
votes
0answers
19 views

How can I create a customized vim [in my own pc] and could install it on every server that I use in future?

I like my own plugin full vim that I use, but every time I ssh to a server I have to reinstall those plugins and customizations. Does anyone have an easy method to install my own customized vim on ...
2
votes
1answer
283 views

How to disable arrows in insert mode VIM

I want to disable my VIM-arrows in VIM, to get used to move the cursor using hjkl. I have tried a lot of different approaches found on this forum, however, i can't seem to disable the up and down ...
1
vote
1answer
36 views

“Press ENTER or type command to continue” -writing second command returns to the editor mode

When I write first command I get the "press enter or type command", even if I try to type second one it returns me to the editor mode, even though I would like to stay on console. I am new vim user.
1
vote
1answer
103 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
54 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
56 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
35 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. ...
1
vote
2answers
63 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 ...
3
votes
1answer
2k 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
114 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
502 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 一月 ...
2
votes
1answer
73 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 ...
0
votes
2answers
911 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 ...