Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
226 views

I would like to use set -o vi in my terminal. However, I find myself getting confused on whether I am in insert mode or normal mode, since the cursor does not switch between a vertical line (insert) ...
luna's user avatar
  • 13
0 votes
1 answer
76 views

I have a file with numbered host names. I want to change the name while preserving the numbers. CHANGE THIS: server1.domain.com server2.domain.com server3.domain.com server4.domain.com server1....
user2704404's user avatar
0 votes
1 answer
64 views

I certainly am not searching for this answer properly. It should be obvious. Basically, enter goes to the start of the next line. I want the opposite of enter. I want to go to the start of the ...
user2272600's user avatar
2 votes
2 answers
102 views

So I'm using a language where adding -- to the beginning of a line will comment the line. To comment a block of code that I have selected using visual-line, I do this: map <F2> <C-v>0<S-...
user20102550's user avatar
-2 votes
1 answer
77 views

I have a csv file that contains 3 sets of ids. I want to use Vim to substitute the appropriate id into the appropriate places, e.g. A | B | C | 1| 1 | 2 | 3 | 2|33 |11 | 31| How i can to replace ...
barty's user avatar
  • 11
0 votes
1 answer
271 views

I created a file using touch test, then changed the file permission using chmod 000 test, then did vi test, wrote random characters, I was successfully able to save the file using :wq!. I'm the owner ...
Bover's user avatar
  • 39
-1 votes
3 answers
615 views

I have a large data set that has some values written in -1.00000e-00 notation and others written as -1.00000-00. I would like to replace all of the -00 notation with e-00. I cannot find/replace all of ...
Michael Jew's user avatar
-2 votes
1 answer
84 views

If I search forward or backwards (via / and ?) in VIM it will show results at the last line of the screen (when searched forward) or first line of the screen (when searched backwards). The problem is ...
robert's user avatar
  • 2,017
0 votes
1 answer
91 views

I'm experimenting with running a sequence of commands on a csv file; doing some replacements, changing some stuff. I open the file in vim and use so! filewithcommands. But gg will never go to the top ...
user1788586's user avatar
0 votes
1 answer
75 views

[proc_selProc.tcl] proc selProc {str offset count} { return [string range $str $offset [expr {$offset + $count -1}]] } set myVar Hello selection handle -selection . [list selproc $myVar] selection ...
Cha Cha's user avatar
  • 17
3 votes
3 answers
904 views

If I have the text: var x = "Hello my name is Jim and I like ice-cream" It'd be pretty straight forward to use v+i+". But if my text is: var x = "Hello my name is "Jim" ...
DrDark's user avatar
  • 485
1 vote
0 answers
230 views

I am getting the below error message while attempting to reword a commit in git bash using vi/vim. I have tried on IntelliJ terminal and Git Bash terminal itself with the same result. hint: Waiting ...
friend.code's user avatar
0 votes
1 answer
85 views

Recently there has been issues pasting into Vi from the system clipboard. When the text is pasted, it inserts the pasted text before the existing text on the line, rather that after the cursor ...
Theo Sweeny's user avatar
  • 1,157
1 vote
1 answer
243 views

I've just installed fish shell in my archlinux. Because I use vi-mode in fish, I want to remap my <CapsLock> to <Escape>. How can I archieve it by adding something into my ~/.config/config....
youthlic Ulic's user avatar
0 votes
0 answers
229 views

I am looking to auto-sync the file changes for an open file on Visual Studio Code and the same file open externally with Vim. (i.e.: When the file is changed in Vim, I'd like for it to immediately ...
Philoxopher's user avatar
  • 1,674

15 30 50 per page
1
2 3 4 5
139