Tag: vi

61 votes
10 answers
684 views
How to view the assembly behind the code using Visual C++?

I was reading another question pertaining the efficiency of two lines of code, and the OP said that he looked

avatar
Cortez
0 1 0 9
asked 07 September, 2021
62 votes
5 answers
2.5K views
Why does GCC use multiplication by a strange number in implementing integer division?

I've been reading about div and mul assembly operations, and I decided to see them in action by writing a

avatar
Xavier
0 1 0 9
asked 07 September, 2021
68 votes
3 answers
3K views
Can I hex edit a file in Visual Studio?

I want to edit a binary file, but I don't want to use another tool other than Visual Studio because it&ap

avatar
Solomon
0 1 0 9
asked 07 September, 2021
56 votes
14 answers
995 views
How to paste in a new line with vim?

I often have to paste some stuff on a new line in vim. What I usually do is: o<Esc>p Which inserts a

avatar
Arline
0 1 0 9
asked 07 September, 2021
63 votes
6 answers
779 views
Delete text in between HTML tags in vim?

I know di< will delete in an HTML tag itself. Is there an easy way to delete text in between two tags?

avatar
Basil
0 1 0 9
asked 07 September, 2021
65 votes
6 answers
991 views
Saving vim macros

Does anyone know how to properly save/reuse macros recorded inside of a vim editor?

avatar
Shantay
0 1 0 9
asked 07 September, 2021
63 votes
13 answers
2.6K views
How to comment out a block of Python code in Vim

I was wondering if there was any key mapping in Vim to allow me to indent certain lines of code (whether those

avatar
Luis
0 1 0 9
asked 07 September, 2021
57 votes
11 answers
3K views
How do you return from &apos;gf&apos; in Vim

I am using Vim for windows installed in Unix mode. Thanks to this site I now use the gf command to go to a fil

avatar
Robyn
0 1 0 9
asked 07 September, 2021
55 votes
10 answers
2.5K views
Disabling swap files creation in vim

Is there a way to disable .swp files creation in vim? or at least create them all in one place so I can find a

avatar
Sena
0 1 0 9
asked 07 September, 2021
55 votes
4 answers
2.7K views
Go to first line in a file in vim?

How do I go to first line in a file in vim ?

avatar
Brianne
0 1 0 9
asked 07 September, 2021
50 votes
12 answers
2.9K views
How can I swap positions of two open files (in splits) in vim?

Assume I've got some arbitrary layout of splits in vim. ____________________ | one | two | |

avatar
Serina
0 1 0 9
asked 07 September, 2021
47 votes
10 answers
1.4K views
Using Vim&apos;s tabs like buffers

I have looked at the ability to use tabs in Vim (with :tabe, :tabnew, etc.) as a replacement for my current pr

avatar
Louetta
0 1 0 9
asked 07 September, 2021
56 votes
11 answers
1.2K views
Select all occurrences of selected word in VSCode

Are there any trick or extension to select all instances of selected word in visual studio code, to facilitate

avatar
Lashawna
0 1 0 9
asked 07 September, 2021
61 votes
7 answers
710 views
Set language for syntax highlighting in Visual Studio Code

Before the confusion begins, this question is about Code, the new lightweight Visual Studio Editor. You can ge

avatar
Serina
0 1 0 9
asked 07 September, 2021
48 votes
15 answers
3K views
Open two instances of a file in a single Visual Studio session

I have a file, xyz.cpp. I want to open two instances of this file in Visual studio (BTW, I am using Visual St

avatar
Alba
0 1 0 9
asked 07 September, 2021
42 votes
26 answers
1.7K views
Copy all the lines to clipboard

Is there any way to copy all lines from open file to clipboard in VI editor. I tried yG but it's not usin

avatar
Jeff
0 1 0 9
asked 07 September, 2021
56 votes
30 answers
3.1K views
Differences between Emacs and Vim

Without getting into a religious argument about why one is better than the other, what are the practical diffe

avatar
Corrin
0 1 0 9
asked 07 September, 2021
61 votes
30 answers
3K views
How to make vim paste from (and copy to) system&apos;s clipboard?

Unlike other editors, vim stores copied text in its own clipboard. So, it's very hard for me to copy some

avatar
Carmelina
0 1 0 9
asked 07 September, 2021
53 votes
19 answers
746 views
How do I duplicate a line or selection within Visual Studio Code?

Using Microsoft's Visual Studio Code, how do I duplicate a line of code and then move it up and down? (Si

avatar
Charis
0 1 0 9
asked 07 September, 2021
65 votes
15 answers
551 views
How do I move to end of line in Vim?

I know how to generally move around in command mode, specifically, jumping to lines, etc. But what is the comm

avatar
Trudy
0 1 0 9
asked 07 September, 2021