I have ubuntu 32 bit installed on VMware with win 7 as host operating system. I am a newbie to Linux shell mode and vi editor. When ever I open the vi editor and select insert mode I don't see the insert mode being highlighted at the bottom of the screen as it is supposed to be. Only when I enable no copy I can see insert mode at the bottom of the screen temporarily.Besides there are a few other superficial differences from a normal vim screen.how to make these changes permanent?
There are editor configuration files. I do not know which ones you have.
On the box where vim behaves the way you want -
will show these file(s) to you. The files[s] belong in the login directory on the box where things do not work right.
I think you are looking for ~/.inputrc, but I'm not sure.
If so, the line
should be in the file to get what you want.
Please see attached image.I am in insert mode when I clicked the screenshot but I dont see the syntax prompt at the bottom of the screen.Also on starting this editor it says I am in vim compatible mode.
Please see attached image.I am in insert mode when I clicked the screenshot but I dont see the syntax prompt at the bottom of the screen.Also on starting this editor it says I am in vim compatible mode.
vi (the real vi, not the clones) is configured in the file ~/.exrc. vim will use that file too if it is present.
vim has a configuration file of its own too, it is located in ~/.vimrc. I don't know what happens if you have both, so i suggest you use only one of them. Both files work the same and use the same configuration syntax.
Traditional configuration in vi is done in two ways: there are on/off options like switch line-numbers on or off. The "off" is done by prepending "no" in front of the option name, for example, said line numbers:
These options can also be issued from the command prompt in vi so you can test them before putting them into the rc-file.
Other options take a value, like "shiftwidth", "sw" for short. These are set this way:
Here is a sample, my configuration, which resembles the real vi as much as possible:
To enable the display of the current mode the editor is in use:
the following command works beautifully. it basically grabs the content of a file from First to End, then excludes any lines containing specific patterns.
awk '/^First/,/^End$/ {if (!/#\/bin\/sh|not.*commonly|#/) print}' datafile.
i never had any issues with the command until I ran it on a... (5 Replies)
This is for PHP preg_match code - which is PCRE therefore looking for a perl compatible suggestion
I have this line returned I want to match and return..
I want to match the two instances of string ending 'ABCXYZ' into an array.
And on second element (ie. RootABCXYZ) only return the word... (4 Replies)
Hi,
I would like to make my script multi-os compatible and I am having problems to make it work.
I would like it to be compatible with those 4 linux versions : Ubuntu, Debian, Fedora and Centos.
I am mostly confused when it comes to the repository installation and the different os... (1 Reply)
Hello
A friend and I recently got our hands on an old computer (a rainbow '83 I think), cleaned it, etc... And now we're trying to get the thing running. The problem is that the included OS is badly documented, so I thought of installing an old version of UNIX on it. So the questions are: Is that... (8 Replies)
I downloaded vim.7.2 and compiled the vim source .
Added the vim binary path to PATH (Because iam not the root of the box)
when i load the file using vim it throws me an error
Error detected while processing /home2/e3003091/.vimrc:
line 2:
E185: Cannot find color scheme darkblue
line... (0 Replies)
Dear Frnds
We are having WHM Cpanel in which many website are their , one of our customer want to install Clientexec software which requires GD2.0.28(compatible) library which is installed.
The problem is libpng version which is incompatible with the GD library .
Please kindly... (0 Replies)
Hey, i was wondering if anybody knew of a good VPN that is compatible with nat? If a VPN will not work with NAT could it work with PAT? Right now i'm using RH9. I wanted to use IPsec but i don't think that is compatiable with nat or pat. Please correct me if i'm wrong.
Thanks,
Byblyk. (0 Replies)
Does anyone have any advice on what print servers to use with Solaris I used to use intel but they dicontinued the model we used. I would just use lpadmin to set them up . Any advice on this would be very helpful. (2 Replies)