Monday, May 24, 2010

Re: introduction, and a beginner question about vimrc files

On Mon, May 24, 2010 at 4:02 PM, Jose Caballero
<jcaballero.hep@gmail.com> wrote:
> Right now I have all my mappings and abbreviations and those things in a
> single file: ~/.vimrc
> Clearly that is not efficient given I am using the same setup if I edit a
> python script, a HTML document, a C++ one, etc. Not good.

Hi, welcome to the list.

You can add the following line to your vimrc, and then add your cpp
mappings into cpp.vim
autocmd Filetype cpp source ~/.vim/source/cpp.vim

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: