Skip to main content

Questions tagged [vi]

vi is a screen-oriented text editor originally created for the Unix operating system.

2 votes
1 answer
89 views

I have a script read.sh: read -ei "hello world" eval $REPLY Upon executing chmod +x read.sh and then running ./read.sh, I notice that pressing Esc followed by b or w jumps between the ...
luna's user avatar
  • 25
8 votes
1 answer
331 views

I am a long time ksh user, and use bash under duress - both in 'vi' editing mode. One thing that has always niggled - after searching back through history for a command (.e.g <Esc>/needle), how ...
Annihilannic's user avatar
1 vote
3 answers
439 views

I recently hardened my RHEL system, and after that, sudo vi stopped working. When I try to run: sudo vi test.sh I get the following error: /bin/vi: line 23: /usr/libexec/vi: Permission denied /bin/vi: ...
RPE's user avatar
  • 11
0 votes
4 answers
123 views

I ran into an issue: I have folders with usually 50-150 text files, which I need to modify.  sed is not an option, since the changes cannot be automated (sometimes "ss" need to be changed, ...
Arbach's user avatar
  • 1
0 votes
0 answers
40 views

i need to replace some strings and due to some reason, vi or vim is my only options. but the problem is i need this to be done in a shell script, is it possible to use vi/vim in cli mode like sed? e.g....
furynerd's user avatar
1 vote
0 answers
102 views

I'm using vim on macOS, I did different tests.  Backspace doesn't work in vim with my ~/.vimrc. I saw that when I remove my ~/.vimrc file everything is ok, but whatever I write in it (any writable ...
raphael levillain's user avatar
0 votes
1 answer
145 views

I'm trying to bind C-h to move to the window on the left. Here is my tmux.conf set -g default-terminal "xterm-256color" bind -n S-down new-window bind -n C-l next bind -n C-h prev bind q ...
ludog's user avatar
  • 17
1 vote
0 answers
49 views

I use Colemak + Bash Vi mode, and have remapped h j k l to h n e i in .inputrc. The original N n keys for repeating search seem to be bound to the same command: $ # Run in command mode $ bind -p | ...
UM-Li's user avatar
  • 47
1 vote
2 answers
81 views

For better or worse, I am using rcs to track changes to HTML and JSON files exported from chatGPT. Some of these contain chats with embedded $keyword$'s. These get expanded on ci check in. How do I ...
Steve Dutky's user avatar
0 votes
1 answer
273 views

I'm using yamlfix with ale in vim. I followed these steps because I wanted to remove the automatic "---" adding on top of the file every time I save my work (and some others default ...
Corentin Michel's user avatar
0 votes
2 answers
617 views

https://stackoverflow.com/questions/41901319/how-to-search-for-multiple-strings-in-a-log-file-using-less-command-in-unix I found this. awk '/pattern1/ && /pattern2/ && /pattern3/' file....
achhainsan's user avatar
0 votes
0 answers
158 views

I use old servers so I've to use vi editor. Problem is that I need to copy logs frequently and it's totally painful to do so. I've to convert that to a file, do SCP then only be able to get the logs. ...
achhainsan's user avatar
2 votes
0 answers
75 views

For example, I get the manpage for a command using 'K': docker run +------------ cursor is on d # if I press 'ESC-SHIFT-K', I'll get a manpage for docker Now, if I want to get the manpage for docker ...
Chris's user avatar
  • 1,087
1 vote
1 answer
576 views

In the default mode of gdb, pressing ctrl+x a turns on and off the UI, and ctrl+x 2 cycles through different split views. There are a number of similar useful shortcuts. I can turn on vi emulation ...
Fraser's user avatar
  • 111
0 votes
1 answer
114 views

By random, I mean neither from top, nor from middle, nor from bootom. The search should return randomly ordered results. eg: I am searching for "failed" in vi editor. I want randomly ordered ...
achhainsan's user avatar

15 30 50 per page
1
2 3 4 5
28