Questions about the text editor "vi" or "vim"

learn more… | top users | synonyms

0
votes
0answers
7 views

key mismatch in vi editor

I have installed ubuntu 14.04 lts in my acer laptop. All the functions are working except vi editor. When I try to enter some text using vi editor,the responces are mismatching. For example when I ...
0
votes
0answers
36 views

How to clear the screen on vi exit?

In my experience on many different servers, vi has always cleared the screen when returning to the shell. But on my new Ubuntu VPS, it does not. The contents of the file stay on the screen until new ...
3
votes
2answers
117 views

Geany symbol menu in VIM

On the Geany editor there is symbol tab which when you pass one C program to Geany it shows all functions and classes and variables and macros in the list . So is there any ability like that in VIM? ...
15
votes
4answers
5k views

What does Vi stand for?

I was just wondering what "Vi" means in Linux (the command used for editing files)?
0
votes
1answer
48 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
3answers
64 views

Shell Commands for System Administration, and gudie to Vi editor [closed]

I'm very much interested in shell commands In fact,I know some basic commands. But I want to learn more about them. Are there any good resources? I'm interested to learn more about vi editor too.
5
votes
5answers
678 views

How do I install and get started with vim/vi?

I really hope someone on this subject can help me. I recently enrolled for a programming course and one subject requires me to program in c/c++ on Linux os. I've had previous c++ experience on the ...
0
votes
1answer
91 views

How to uninstall the vi text editor preinstalled in Ubuntu?

I would like to uninstall the vi text editor which is pre-installed in Ubuntu. How would I achieve that?
2
votes
2answers
115 views

Unable to use 'vi' on Ubuntu 12.04

Whenever I try to open any text file using vi or vim, I get the following error, vim: error while loading shared libraries: libtcl8.5.so.0: cannot open shared object file: No such file or directory ...
0
votes
2answers
149 views

Unable to edit using vi

I'm trying to edit my /etc/network/interfaces file to add a line for a proxy server. I first "sudo su -" to be root, and then "vi /etc/network/interfaces". But once I'm in there, I'm unable to edit. ...
0
votes
1answer
65 views

What do these vi commands do?

The first one is: .,+15s/first/second/g I know that the . simply repeats the last operation but i'm not familiar with the rest of it. The other vi command I would like to know is: 10yy (followed ...
3
votes
3answers
311 views

Executing vi on directory does not list files

This seems like a new bug (feature ?) that’s creep into Ubuntu 13.10. When I execute vi on a directory it doesn't list the files which I can navigate to with the arrow keys; it just shows an empty ...
0
votes
0answers
525 views

how to edit the X11/Xorg.conf

Hy everyone. I had some issues making my brightness work on my macbook on Ubuntu LTS. I saw that people use to edit the /etc/X11/xorg.conf file using gedit to make it work. Unfortunately I erased ...
0
votes
0answers
40 views

I get the following error when i open any progaram in vi please help me

E325: ATTENTION Found a swap file by the name ".ptr.c.swp" owned by: honey dated: Sat Oct 26 12:49:38 2013 file name: ~honey/ptr.c modified: YES user name: ...
0
votes
1answer
196 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 ...
4
votes
3answers
5k views

Hitting arrow keys adds characters in vi editor [duplicate]

When I tried to use arrow keys in insert mode in vi editor the following characters are being inserted in the editor: for ↓ I get B, for ↑ I get A, for ← I get D, for → I get C. Please help me in ...
1
vote
0answers
87 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 ...
0
votes
1answer
244 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 ...
-2
votes
2answers
104 views

Is there a vi file editor in ubuntu like in unix?

I was a unix and redhat user, just started to use ubuntu. Is there a vi command to edit files? Is there a change mode command to change a file status to executable?
2
votes
3answers
265 views

Problem with text deletion in vi editor

When I am writing C code on the vi editor, I am not able to use the backspace keys or my arrow keys to delete or navigate through lines. Some unexpected special characters occur on the screen that is ...
0
votes
1answer
557 views

cannot type in vi when trying to edit the interfaces file

I am trying to edit the interfaces file so I can put in my network settings. This is what I'm typing: sudo vi /etc/network/interfaces The file pulls up fine. I seem to be able to delete all rows, ...
1
vote
1answer
384 views

vi default editor - command-line find/replace [duplicate]

New to linux :-) In my .bashrc I have set -o vi. That way when I'm in the terminal I can press CTRL +{ and then use VI commands to navigate, edit and search the command history. One thing I cannot ...
0
votes
0answers
48 views

no backup for Vi editor file

I was editing my file in vi and i did not save a back up of the original, it was my first time using the editor so lots of things just changed and now its even more difficult to remember what the ...
0
votes
2answers
94 views

Is using vi to view log files in PROD servers not recommended?

We have Ubuntu servers in production. Our lead architect tells me we should not use VI to view log files. Instead use cat. I want to know if there is any inherent risk associated with using vi/vim to ...
0
votes
1answer
1k 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?
2
votes
1answer
664 views

Solarized color name not defined

I recently installed the Solarized theme for gnome-terminal in Ubuntu 12.04, but now, every time I used vim, I receive the warning "Warning: Color name "S_base03" is not defined". This warning is ...
10
votes
3answers
11k views

Backspace in insert mode in vi doesn't erase the character

I am new to vi, actually I have started learning vi from today and I have got stuck at the behavior of the backspace key. Actually when I fired up vi on my Ubuntu 12.04 for the first time my ...
0
votes
1answer
94 views

Getting VI to auto syntax highlight and autoindent

I prefer using vi from tty1 as I hate GUI. I've just begun programming in C and would like to know how to get vi to auto indent for me. I would like the following code to appear just like the way I've ...
3
votes
4answers
4k views

ubuntu terminal is not working properly in vi editor

Recently I installed ubuntu in my laptop for using c programming. but when I open the terminal and typed vi test.c, It open it but it will not work properly. when i pressed backspace it will not work ...
7
votes
1answer
2k views

vi, getting multiple “Sorry, the command is not available in this version…” after reinstall

From my .vimrc, getting: line 16: E319: Sorry, the command is not available in this version: filetype on line 17: E319: Sorry, the command is not available in this version: filetype plugin on ...
1
vote
1answer
2k views

How to delete the .swp files when working remotely

I opened a file in vi, but unfortunately while changing it the terminal crashed. Now when I Try to open the same file again in a new session it displays the following message E325: ATTENTION Found a ...
6
votes
2answers
288 views

Terminal got hanged when editing something in vi

I was making some changes to a remote file in vi using the terminal when I accidently pressed Ctrl+S instead of :wq. Now everything got hanged. I tried Escape,:q! and all sorts of vi commans but ...
36
votes
7answers
66k views

How to copy paste contents in VI editor?

I tried using CTRL + V for pasting contents in a VI editor document, but CTRL + V is not interpreted as a paste.
6
votes
3answers
5k views

Vi - Insert mode doesn't work in ubuntu 12.10

I am working on ubuntu 12.10, and my insert mode in vi isn't working. When I hit i to go insert mode, nothing happens. On hitting i again writes i on terminal, but <-backspace doesn't remove ...
6
votes
3answers
26k views

How do I save files edited with vim?

I can't save changes after editing sudo vi /etc/network/interfaces Text before editing: auto lo iface lo inet ... Edited to: auto eth0 iface eth0 inet dhcp What key combination or sequence ...
2
votes
2answers
401 views

use output from alias command as filename to open in vi

I set up an alias this morning to help finding the latest log file in a directory. My alias looks like alias latest="ls -lat | grep ^- | awk '{print \$8}' | head -1" In my research so far this ...
9
votes
3answers
4k views

vim is not remembering last position

My Ubuntu LTS 12.04 has vim editor. If I open a file, move to a paragraph and reopen vim, then the cursor goes to beginning of the file always. This is not the expected behavior. How the vim can ...
2
votes
2answers
10k views

How to edit a file in vi editor (arrow keys prints letters)?

I am open a file in vi: vi index.php Here the problem is: when I press the down arrow and it prints 'B'. Why it prints 'B'?
-3
votes
1answer
58 views

UNIX or Vi fixing list [closed]

this is in a file called numbers.txt in the current working directory. Starting from a UNIX prompt, give the sequence of UNIX/vi commands, that will "fix" the list of numbers in as few keystrokes as ...
5
votes
2answers
913 views

.viminfo owned by root?

The .viminfo file in my home directory is owned by root. Could anyone please explain how that could have happened without me asking it? $ ls -la | grep .viminfo -rw------- 1 root root 4175 ...
2
votes
3answers
1k views

Can’t enter insert mode in Vi editor

I am using the Vi editor on my desktop Ubuntu 12.04, and do no have any problems. But a few days ago, I installed the Vi editor to my beagleboard-xm which has both Angstrom and Ubuntu 12.04 available ...
1
vote
1answer
1k views

How to open a file when 'vi' reports it is already open?

For some reason, when I am trying to edit vi .profile, the terminal keeps telling me that I already have the .profile in the edit mode. E325: ATTENTION Found a swap file by the name ".profile.swp" ...
0
votes
1answer
369 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 ...
4
votes
2answers
971 views

Copy command from vi to clipboard

What is the command to copy all the contents to the system clipboard from a file open in an instance of the vi editor on a remote server, accessed via SSH. Also, what is the shortcut for pasting from ...
1
vote
4answers
781 views

Cannot execute shell /bin/zsh when execute a shell command in vi

I use bash. But it cannot find zsh. How to change this? ps:I don't want to install zsh.
14
votes
5answers
4k views

How to make Vi default?

Apparently Ubuntu 11.10 uses Vim when I type vi filename How do I force Ubuntu to use Vi instead?