Questions tagged [vi]
Questions about the text editor "vi"
25
questions with no upvoted or accepted answers
2
votes
3
answers
2k
views
Remap Caps Lock to Esc and Ctrl
After watching some videos about tmux and vim collaboration I wanna remap Caps Lock on my ubuntu.
Remapping Caps Lock to Esc is easy I used gnome-tweak-tool, but now I wanna change Caps Lock ...
1
vote
0
answers
156
views
Set nocompatible not working in vi/vim on 22.04
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 ...
1
vote
0
answers
104
views
Kate text cursor stopped moving through paragraphs ( [Ctrl] + [Up/Down] )
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 --...
1
vote
0
answers
175
views
vi cursor not working properly with :set nu
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 ...
1
vote
1
answer
2k
views
Syntax highlighting error in syncolor.vim with VIM 8.0 on Ubuntu
I recently installed VIM 8.0 on my Ubuntu 14.04 machine. When I open vim, it outputs an error:
> vim ~/.vimrc
Error detected while processing /usr/local/share/vim/vim80/syntax/syncolor.vim:
line ...
1
vote
0
answers
489
views
syntax highlighting in vi changed after upgrading Ubuntu 16.04
First, read this question below:
problem in terminal syntax highlighting
It also changed the default syntax highlighting in terminal after upgrading UBUNTU.
There is a difference between ver.14 and ...
1
vote
0
answers
440
views
backspace in vi editor in ubuntu12.04.2 LTS doesn't work
As we know that vi editor has three modes namely: command mode,input mode & ex mode.By default,we get the command mode when the editor is evoked. Also we can navigate to other modes by using ...
1
vote
1
answer
135
views
Vim in shell allows <alt>[a-z] to circumvent having to press <escape> to get out of INSERT mode. How can I apply this to Gui implimentations of Vim?
Vim in shell allows <alt>[a-z] to circumvent having to press Esc to get out of INSERT mode. For example,
Open up a terminal and set its editing mode away from emacs, to vi
set -o vi
Now enter ...
1
vote
1
answer
1k
views
Not able to see the file contents
I am using 12.04 Ubuntu cloud image.But when I am using vi for example vi p1.c to create a file I am not able to see what are the contents I am adding to it.
But when I am using cat p1.c I am able to ...
0
votes
0
answers
22
views
Mouse scroll doesn't work in WSL in Vi/Vim editor
I have Windows 11 and top of that WSL is there, (Ubuntu 22.04.3 LTS). When I open any program in the vi/vim editor, I can't scroll up or down. Any solution for it?
Thanks!
0
votes
0
answers
193
views
Cannot scroll terminal window when in vi
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 ...
0
votes
1
answer
71
views
why doesn't my map command work in vi/ex?
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 ...
0
votes
0
answers
472
views
How to enable swapfiles in vim editor?
I have searched in google but i always found how to disable swapfiles. It said that we have to add
set noswapfile
in vim configuration file. And i tried to put set swapfile in the same configuration ...
0
votes
0
answers
2k
views
Vim: Warning: Output is not to a terminal while using vi and grep
I am running the following command to view error log
vi mysite_com_error.log-2019060 | grep 'Jun 08:23'
but I am getting the following error:
Vim: Warning: Output is not to a terminal
0
votes
0
answers
60
views
Functions of the vi editor working differently after updates
It appears that after some of the updates for my ubuntu 16.04,
certain keys in the vi editor started to work differently.
In particular, the function of returning to the previous
position, ...
0
votes
0
answers
43
views
Why No Action on GVIM crashes on 17.04 Unity
I do not understand why there has apparently been no action on the constant crashes in vim-gtk3 in Unity. The askubuntu entry shows no activity in the last 6 months. I would actually like to go to ...
0
votes
1
answer
651
views
vim `set nocompatible` not work in tmux
i install vim and tmux and config both of them, when i open vim directly everything is fine and works very well , but when i run tmux and inside tmux open vim , vim act like vi!.
i don't know what is ...
0
votes
1
answer
1k
views
How to Fix Vi Editor?
A couple of days back, I was trying undergoing a tutorial from KernelNewbies and as it asked, I did made some changes to vi editor. But, it seems that I have messed up something. I am unable to find ...
0
votes
1
answer
911
views
facing problems with vi editor in CLT
My keyboard keys are not working properly in Command line terminal when i use "vi" command to edit a file or write a program.backspace doesn't work. arrow keys doesn't work and are printing A B C D ...
0
votes
2
answers
409
views
apt-get problem and arrow
hey guys I am new to ubuntu I am trying to use the command "apt-get install vim" but it actually not installing I cannot understand what that means so i am copying it down what the terminal is ...
0
votes
1
answer
182
views
show only few lines after match pattern found in vi editor
I would like to see only first 5 lines after the match found in vi editor. What is the command?
I only know these commands
/Incident Id: Gives all lines from first to last
:g/Incident ID: gives ...
0
votes
1
answer
1k
views
Terminal/Putty showing control characters (^M) after updating
I updated my system yesterday afternoon using the recommended updates from Update Manager. After it completed, I shutdown my system and went home for the day.
I come in this morning and I am getting ...
0
votes
1
answer
763
views
VI Editor messed up.. Even the old vi is not working now
I am a newbie in Ubuntu. I am using a Windows XP machine (32 bit) OS and in that I installed VMPlayer and got iso image of Ubuntu 12.04 (downloaded from online). I started the Ubuntu and everything ...
0
votes
2
answers
4k
views
Backspace and arrow keys not working in vi editor
The backspace is unable to erase the characters. The navigation keys produce alphabets.
Can anyone tell me how to fix this?
0
votes
2
answers
3k
views
Writable permission is not writable
I am running Ubuntu 12.04 x64 server on ext4 partition.
I set a directory's permission to '766' as below.
sudo chmod 766 /archive
drwxrw-rw- 3 root root 4096 Sep 27 10:50 archive/
But, when I ...