Skip to main content

Questions tagged [vi]

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

0 votes
1 answer
22 views

Bind C-h in tmux copy mode

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
22 views

How to remap "vi-search-again" in .inputrc?

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
29 views

Disable $keyword$ expansion by RCS ci check in?

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
82 views

yamlfix not using configuration + (neo)vim usage

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
106 views

Highlight for two strings simultaneously in vi or less editor?

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
84 views

Why am I unable to copy to clipboard from vi editor?

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
49 views

How do I get the man page for a sub command using vim?

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
  • 983
1 vote
1 answer
281 views

quick-swap TUI mode while using vi keybindings in GDB

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
76 views

How to do a random search in vi editor?

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
1 vote
2 answers
139 views

Is there a way to get the keyboard layout (which letter is where)?

I have a very rarely used keyboard layout and there are a lot of things that are quite obviously not optimized for my very specific layout. I would like to change hotkeys for a program but I would ...
xyious's user avatar
  • 111
2 votes
1 answer
151 views

How to make bash keyboard editing default to vi from emacs?

I know how to set the keyboard editing in bash to vi (set -o vi), and probably I could do it in bashrc. But I use bash in a variety accounts and contexts and want it to just default to vi over emacs ...
kmand's user avatar
  • 111
-4 votes
1 answer
48 views

how can i reduce the byte of the code bellow from 146 to 144 need help please [closed]

How can i reduce the byte(memory) of the code: #include<stdio.h> /** * main - Entry Point * Return: Always 0 (success) */ int main(void) { printf("Size of a char: %d byte(s)\n&...
Aroh chukwuebuka's user avatar
0 votes
0 answers
43 views

Having to press `esc` twice to enter normal mode in vi on tmux [duplicate]

I'm having a problem in TMUX, where in order to go to normal mode in VIM, it takes 2 key presses of "ESC", how do I fix it?
Origami's user avatar
  • 21
0 votes
1 answer
458 views

Exit out of Insert mode in Bash with Vi keybindings on command run

I have bash set up with Vi keybindings, however when a command finishes running it returns to insert mode rather than movement mode. I can use bind '"\C-M":vi-movement-mode' in my .bashrc to ...
Biran4454's user avatar
0 votes
0 answers
47 views

How is ex implemented in vim?

Now I am reading a book on sed and awk and to learn the history needed to use ed and ex commands. I thought for a vim user on Arch Linux, there is no need to install other packages but I found that ex ...
Taro's user avatar
  • 101

15 30 50 per page
1
2 3 4 5
28