The vi tag has no wiki summary.
1
vote
1answer
74 views
Linode Lish Shell Vim and Nano rendering troubles: lines not appearing / cursor positions wrong
I'm using a linode VPS and I just cloned one of my servers to my development server as I've done many times before.
As usual SSH is inaccessible until /etc/network/interfaces is correctly updated. I ...
2
votes
5answers
171 views
Textmate alternative with vim?
Is there a way to use the vim editor like the mac textmate editor ?
I am searching a easy configuration or plugin.
a split screen or a panel for directorys
currently opend files
or many cool ...
3
votes
1answer
554 views
How to enable color in Vim over SSH?
I have two remote servers:
Server 1: Linux 2.6.18-238.12.1.el5PAE i686 / VIM - Vi IMproved - version 7.0.237
Server 2: Linux 2.6.18-338.19.1.el5.lve0.8.36 x86_64 / VIM - Vi IMproved version 7.0.237
...
-2
votes
1answer
59 views
Vi how to search for numbers [closed]
I want to search for the occurrence of 100169200
I typed /100169200 but vi says Pattern not found
Edit
Since the question has been downvotes, I would like to make it clear that grep can find the ...
0
votes
0answers
149 views
Keyboard Layout issue during SSH to Ubuntu server 11.04 from Mac OS 10.6
I was trying to SSH to Ubuntu and edit a config file in Ubuntu server 11.04. The SSH is okay, but when I use vi to edit the config file, the keyboard layout forbids me from editing the config file ...
3
votes
2answers
282 views
How to save + close file when editing in bash?
OK - I am linux newbie - I am trying to edit a file from bash via edit <filename> command in whatever the default mode is (I am assuming 'vi'?).
Problem is for the hell of me I cannot how to ...
2
votes
2answers
50 views
How to keep the top lines of a file while scrolling down the page in vi editor
I have a file opened with vim, how do I keep the top 10 header lines at the top all the time while I scroll down the page?
0
votes
2answers
111 views
cat or vi a file, hangs
we're having some issue on a SUN 5.8 machine.
first of all, the server is on his network (i.e. 10.x.x.x) and we can login using an ssh server which is on another network (196.x.x.x), so there're ...
1
vote
3answers
102 views
alias to replace a text in file
here is a practical situation.I facing some of my files where there is a common string in these files.I usually will open vi and do some thing like
:%s/text/replacement/g
and I have to do it in ...
3
votes
1answer
90 views
Command output in vi editor
I open a text file using vi editor in linux and want to insert date command output without exiting vi editor. What is the trick?
Thanks
7
votes
3answers
342 views
Can I log vi activity?
Is there any method to log vi activities? I suspect that another user is issuing command by going into the shell inside the vi editor, apparently those command doesn't record into history.
Thanks
1
vote
4answers
303 views
How to set up “vi” shell environment as default
It could by silly question, but I can not find answer anywhere. So, I'd like to use vi (you know set -o vi can do the trick) as default in my shell instead of emacs, but I do not want to put it into ...
2
votes
2answers
256 views
ctrl-v key on AIX
I'm new to AIX and I miss some tricks that work well on other *nix flavors.
I need a CTRL sequence in a ksh scripts, like ^[ (CTRL-[) and to do that I'm habit to use the ctrl-v[ , but here it doesn't ...
3
votes
5answers
553 views
Why do I not have syntax highlighting when I sudo vi <filename>?
I don't understand how to allow syntax highlighting in files I'm editing via vi when using sudo. When I 'sudo vi ' the terminal is only black & white of my terminal settings. In vi if I enter ...
1
vote
4answers
276 views
Is linux VI editor different from vim editor
I want to use one editor which is available across all the system.
Someone told me VIM is best and i tried on ubuntu and VIM was not there but vi is there.
SO which one should i use
2
votes
3answers
294 views
How to use cursor keys in vi under screen?
If you run vi/vim in screen, when you press a cursor in insert mode, you get a new line + a character, which is a pain.
Configure vim to move around instead.
3
votes
4answers
2k views
How to make a global ~/.vimrc?
Right now, I make everyone do ~/.vimrc and put their settings there.
How can I make a global, default .vimrc for new users?
Edit: I am using CentOS
0
votes
7answers
367 views
vi syntax to comment out non-commented lines (cron)
Anyone know if it's possible in vi to replace only uncommented/non-blank lines with comments?
If I want to replace a commented line with something I know I can use :%s/^#/##foo##/g -- but I am ...
0
votes
5answers
253 views
2
votes
3answers
2k views
VI Editor on Ubuntu using VIM Short Cuts?
I installed Ubuntu and I tried to use the terminal's vi editor. The editor is using a different set of short cut keys that I'm not familiar with. Someone told me it's probably using the VIM short ...
13
votes
4answers
2k views
Save file after forgetting to open as root / sudo vi [closed]
Possible Duplicate:
vim re-edit as root
I could have sworn I saw this question asked. But after looking though every search result for "vi" I'm stumped/lazy.
I've opened a file, made an edit ...
2
votes
3answers
967 views
bad interpreter: Text file busy
For ages I've gotten used to editing Perl CGI scripts in "vi" and simultaneously having a browser open to test them. Lately, I've been getting "500" server errors when I do that, and when I run the ...
2
votes
4answers
4k views
Change default crontab editor to nano in FreeBSD
When I edit the crontab using crontab -e it opens the crontab in vi. I'd prefer it to use nano. How can I change this?
EDIT:
For some reason the export command returns command not found. And ...