Ask Your Question
1

Where can I find the configuration file of vi in fedora 19?

asked 2013-10-11 21:31:00 -0500

Luminosite gravatar image

updated 2013-10-14 04:52:20 -0500

I'd like to add some key mappings, such as "map <ctrl-space> Esc", to my vi in fedaro 19. But I can't find the configuration file of vi. I use fedaro 19, and I can't find ~/.vimrc file or ~/.vim/.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2013-10-11 22:17:44 -0500

skytux gravatar image

It is ~/.vimrc. Also ~/.vim/ is used for plugins, syntax highlighting, etc.

HTH,

Germán.

edit flag offensive delete link more

Comments

1

Just to add that you need to create this file if it does not exist yet. VIM will use it.

shaiton gravatar imageshaiton ( 2013-10-14 11:35:01 -0500 )edit
0

answered 2013-10-22 20:31:20 -0500

Luminosite gravatar image

I found a solution of the problem to a certain degree myself after so many days. First, I found that there was no vim on the system, and I installed one. Though, there's still no ~/.vimrc or ~/.vim/, there's /etc/vimrc file on the system. And I add the mapping rule in that file. It's a global rule if I add it in etc/vimrc file, but it's OK for me.

edit flag offensive delete link more

Comments

Installing a package doesn't mean that it is going to create the config files in your home directory. If they don't get created when you use the program, then you will have to create them by yourself, as explained by @shaiton in his comment.

skytux gravatar imageskytux ( 2013-10-22 21:07:58 -0500 )edit

thnkq this ans help me :)

Tiger gravatar imageTiger ( 2016-01-02 02:15:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-10-11 21:31:00 -0500

Seen: 4,060 times

Last updated: Oct 22 '13