Skip to main content

Questions tagged [vi]

Questions about the text editor "vi"

5 votes
1 answer
866 views

I can't find the name of vi command package. I didn't find it in dpkg -S and apt-file. What is the /bin/vi command package?
afsrgdtfhygjhjgfdse's user avatar
0 votes
1 answer
132 views

I have unreadable hihglights in ubuntu terminal (I use set -o vi) i.e. awk: How to adjust colors in code in default terminal ubuntu?
Irina's user avatar
  • 169
1 vote
0 answers
824 views

I have Windows 11 with WSL and Ubuntu 22.04.3 LTS. When I open any program in the Vi/Vim editor, I can't scroll up or down using the mouse. Any solution for it? I tried to add set mouse=a in .vimrc. ...
Twinklestar's user avatar
1 vote
0 answers
604 views

I have recently installed a fresh copy of Ubuntu 22.04. When I use vi or vim, it defaults to compatible mode (i.e. arrow keys become ABCD). I have tried creating ~/.exrc and ~/.vimrc with set ...
Lexicon's user avatar
  • 339
0 votes
0 answers
572 views

With terminal settings Default/Layout/Screen Buffer Size/Height = 9999 Properties/Layout/Screen Buffer Size/Height = 9999 I can scroll in the window using the mouse wheel. Now I enter vi (a ...
wideseen's user avatar
  • 101
0 votes
1 answer
143 views

I'm just learning how to use the vi editor, and was trying to make use of the following map command in my .exrc file: map K 0I^I^[j0O^I^[j0 That is what appeared when I created the map in ex mode and ...
user1013210's user avatar
1 vote
3 answers
5k views

I have here a sample text file called employees.txt. It contains the name, streets and cities of the employees. My question is: How can I replace all city instances of "Victoria" with "...
shengton's user avatar
1 vote
0 answers
249 views

I lost the function [Ctrl] + [Up/Down] to move the text cursor through paragraphs, as in any other text editor. I just selected the option to override Kate shortcuts to use [Ctrl] + [V] inside VI to --...
Joshua Salazar's user avatar
2 votes
2 answers
2k views

I finished installing a program and some websites tell me to use the echo command to export an environment variable to the .bashrc file while others say to use vi .bashrc to edit the file directly. I ...
Alex's user avatar
  • 29
3 votes
2 answers
5k views

How can I edit UTF-8 files with vim? There is a problem with german special characters like 'Ä', 'ü'. There are some in the comments. vim shows Ã~D instead of 'Ä' and ü instead of 'ü' then. (I hope ...
Andy A.'s user avatar
  • 133
1 vote
0 answers
213 views

The cursor works as if nonu was set. It starts before the numbers are displayed and the line ends where characters would end when there was nonu set. .exrc has only :set nu. vim works without any ...
liuqt's user avatar
  • 11
-2 votes
1 answer
2k views

So I've been increasingly making use of Vi for quick file edits, and have actually become fond of it (strange, i know) Anyhow, on *buntu 20.04+ vi behaves as if it's drunk. The arrow keys can't be ...
rasmus91's user avatar
  • 198
2 votes
1 answer
1k views

I have been using Visual Studio code a lot lately and like a lot of IDEs you can get used to using CTRL-S to save as it is quicker than using "esc :w" - if you are using vim bindings like I ...
Michael Durrant's user avatar
0 votes
2 answers
1k views

We can truncate a big file to a size we want. For example, if I want to truncate a file to 1K byte, we can do truncate -s 1K file1. But this changes the original file file1. Many times I want to see ...
Chan Kim's user avatar
  • 2,313
0 votes
0 answers
39 views

I'm working through OSCP course where I'm getting familiar with terminal-based text editors. I'm quite comfortable with Nano and this material says that penetration testers have reported that Vi ...
Mark's user avatar
  • 355

15 30 50 per page
1
2 3 4 5
9