Skip to main content

Questions tagged [vi]

vi is a text editor of the Unix operating system.

1 vote
0 answers
36 views

How to output lines with ex command that is vi not vim?

I am using ArchLinux and I want to run some ex commands. The following outputs nothing on my system: $ ex -s -c %p -c q /etc/hosts The ex command is a part of vi package on my system: $ pacman -Ql vi ...
KamilCuk's user avatar
  • 220
0 votes
1 answer
120 views

Is there a simple way to review changes before writing file in Neovim on Windows?

I want to review changes I made to my file before I save it. Is it possible to do this, preferably without using vimrc or installing additional software? I'm using Neovim on Windows. I tried one of ...
Arthur F's user avatar
0 votes
1 answer
1k views

Why can't I edit the sudoers.d files with vim but I can with nano

I tried editing a file in the sudoers.d directory using vi in a vagrant box (Ubuntu Trusty64) but it just opens the file in readonly mode but when I use the nano editor it works. The command sudo vi /...
George Udosen's user avatar
1 vote
1 answer
469 views

Fish shell: Map jk to enter normal mode (in vi mode)

While using vi keybindings in fish shell, is it possible to map jk to enter Normal mode? Currently Escape is used for doing that but I want to change (or add a new way) to do so.
GoodBoyNeon's user avatar
0 votes
1 answer
14 views

Want to add # for perticular line vi editor

Hello I want to add # at the beginning for few lines where content like /vol/home12 & vol/home14, line number not in sequence so I want to change with global option for file instead of going with ...
Avinash 's user avatar
0 votes
1 answer
325 views

vi mode visual selection in zsh on WSL

I use zhs in vi mode on my WSL install, however for whatever reason the Windows terminal disables visual selection in the shell. Whenever I press v the system just plays the error bell, which makes ...
Andrii Kozytskyi's user avatar
0 votes
1 answer
57 views

Have lost the ability to use vi, apt-get, etc. as user ROOT after editing ROOT .bashrc

I am using Debian Linux. After logging in today, there was a message saying Firefox had an update. I clicked on it, but it errored out saying 'ldconfig' not found and that usually, /sbin, /usr/local/...
user3063547's user avatar
1 vote
0 answers
353 views

Vim Ex Command History Ctrl-F not working

I used to use Ctrl-F in my personal laptop to successfully get the command history pop-up in ex-mode but in my work PC, that no longer works. It just shows as ^F if I type Ctrl-F. Vim Version is 7.4....
toddlermenot's user avatar
0 votes
1 answer
296 views

With Firefox, open .vi files from web pages directly with LabVIEW

I use Firefox (now 98.0.1; March 2022) and Windows 10. In the recent past (i.e., Feb 2022), when I clicked on a web link to a vi, it used to open the file in LabVIEW directly. Now, Firefox instead ...
Edward Pogozelski's user avatar
0 votes
1 answer
115 views

vim -- search and replace function call with type field

I have a tricky one. I have a bunch of function calls in my code, i.e. getproperty(mytype). I want to replace all of these with mytype.property A well crafted %s would make life easier. Many thanks. ...
cj wyett's user avatar
0 votes
1 answer
4k views

Ctrl+c/Ctrl+v/Ctrl+p not working on vim

I'm trying to make Ctrl+c, Ctrl+v and Ctrl+p work on vim, but it doesn't work as properly. I'm using Linux (Debian) My config files (.vimrc): ... map <C-p> "+P vnoremap <C-c> "+y ...
victor locateli's user avatar
3 votes
3 answers
695 views

How do I add a keymap into fish vi keybindings?

I've just started using fish and I'm loving using the vi keybindings it provides. I wanted though to add a custom keymap that I use in vi. I usually map space+c in visual mode to yank to "* (...
Augusto's user avatar
  • 133
0 votes
1 answer
499 views

Does Systemverilog color work for vi?

I've added the correct $display in Systemverilog to use colors in my log file. Looks great when I use 'more' but vi doesn't show the color. Is there a .vimrc setup file I need to define. I don't have ...
Brad Giles's user avatar
0 votes
1 answer
91 views

Why does VI not run when called from cron?

I can run this command perfectly at the command line and it works as expected. /usr/bin/vi /tmp/test.txt -c ":%s/test/production/g" -c ":wq" However the same command run from a ...
Criggie's user avatar
  • 2,479
1 vote
1 answer
1k views

Why am I getting this error after removing vi? “No vim found, using vi”

I'm on Fedora 33 Server. I've removed vi and installed vim-enhanced: dnf remove vi dnf install vim-enhanced But I get this error on using vim command: [root@localhost ~]# vim No vim found, using vi, ...
harshrathod50's user avatar

15 30 50 per page
1
2 3 4 5
17