About vi editor

Asked by prasad.ram

Hi sir i would like to save the settings of the vi editior like set showmode , ser showmatch , set ai,set ic like so many i didn't fwant set these commands for every time for the i would like to save these commands in .vimrc or .exrc but i did not find these two files so what can i do please help me

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu vim Edit question
Assignee:
No assignee Edit question
Solved by:
Paul Stewart
Solved:
Last query:
Last reply:
Revision history for this message
valentinh (valentin-hancu) said :
#1

go to home directory and create a new file .vimrc if do not exist.
ex:
  cd ~
  vi .vimrc (if file exist then will open else create a new one )

Revision history for this message
prasad.ram (prasad-ram126) said :
#2

ok then what should i do

On Thu, Jun 2, 2011 at 6:41 PM, valentinh <
<email address hidden>> wrote:

> Your question #159964 on vim in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/vim/+question/159964
>
> Status: Open => Answered
>
> valentinh proposed the following answer:
> go to home directory and create a new file .vimrc if do not exist.
> ex:
> cd ~
> vi .vimrc (if file exist then will open else create a new one
> )
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/vim/+question/159964/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/vim/+question/159964
>
> You received this question notification because you asked the question.
>

Revision history for this message
Best Paul Stewart (paulbrianstewart) said :
#3

Prasad,

Then, you type in the settings you want to permanently make, such as 'set ai' etc.

Revision history for this message
prasad.ram (prasad-ram126) said :
#4

Thank You sir for giving me nice solution