• Question about VIM and development environments

    I set up my VIM to use the following environment:

    My question is this, is there a way to have multiple “environments” for vim? Could I have base vim and then have this new environment under a different name? Specifically, could I use terminal to open base vim with “vim” and then this environment opened in terminal with “Pythonvim” (or something to that extent)?

    Thanks for any feedback!

  • Try -u parameter and specify a path to an alternative configuration file.

    For example: vim -u ~/myvimrc

    See http://linuxcommand.org/lc3_man_pages/vim1.html

  • Okay, so just typing that in gives me an error “cannot read from (file path to non existing myvimrc)” however it does open default vim after. Would I just return vim back to default and then put the configuration files in the “myvimrc” for the github setup? Then type vim in terminal for normal vim and type vim -u ~/myvimrc for the configured vim?

  • It was only an example… You can store different configs and use them like this…

  • @joekamprad I just wanted to make sure I was thinking along the same lines as you and the man page 😐

  • to use the github config you want for python you will need to follow the readme.me


    You can install it by using CLI just have next command executed:

    sh -c "$(curl -fsSL https://raw.githubusercontent.com/ets-labs/python-vimrc/master/setup.sh)"

    and then may backup your default vimrc to a different name before, to have it aviable with the vim -u ~/.original-vimrc command…

  • and i would create a short for may be vim-p vim-o

    vim ~/.bashrc
    alias vim-p="vim"
    alias vim-o="vim -u ~/.original-vimrc"
development7 vim6 environments5 Posts 7Views 622
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.