0

This question already has an answer here:

I would like to use vim in two scenarios:

  1. To write a code.
  2. To write prose.

Customizing the vim's config file (i.e. .vimrc) is hard work. When I edit (.vimrc) for prose, some specs of what I can use for writing a code had broken.

Is it possible to have multiple config files for vim? Now, I have two .vimrc files, and when I write prose, I change the name of one of the files. For example, I make it .vimrc.bak and then use the other file, but that workflow is tedious.

marked as duplicate by thrig, RalfFriedl, lgeorget, Thomas, Jeff Schaller Sep 17 '18 at 11:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

You could try something like this. Put this in your .bashrc:

alias prose="vim -u ~/.vimrc-prose"

This uses the config file ~/.vimrc-prose if you type prose <some file>.

(Source.)

Not the answer you're looking for? Browse other questions tagged or ask your own question.