Giter Club home page Giter Club logo

cseri-dotvim's Introduction

My Vim settings

These are settings for Vim.

I've made these public to easily share them between my machines, not for using them directly by others. Everyone should have their own settings for their own Vim usage style.

However, one might always find interesting options/solutions in others' Vim settings.

Usage

Installation

  1. Clone the project to the ~/.vim directory (~/vimfiles on Windows)
  2. Symlink the vimrc in the repo root to ~/.vimrc
  3. initialize submodules to load plugins.

Commands to do the above on Linux:

git clone https://github.com/cseri/cseri-dotvim.git ~/.vim
ln -s ~/.vim/vimrc ~/.vimrc
cd ~/.vim
git submodule init
git submodule update

Commands to do the above on Windows:

C:
cd %USERPROFILE%
git clone https://github.com/cseri/cseri-dotvim.git vimfiles
cd vimfiles
git submodule init
git submodule update

and create the link as administrator

C:
cd %USERPROFILE%
mklink .vimrc vimfiles\vimrc

Updating

Just pull and update the submodules.

git submodule init
git submodule update

Handling modules

Plugins are handled via submodules. This allows them to stay up-to-date without manual work. Even pathogen has its own submodule.

Update all bundled modules

git submodule foreach git pull origin master

Install a new bundle

git submodule add http://github.com/tpope/vim-fugitive.git bundle/fugitive
git add .
git commit -m "Install Fugitive.vim bundle as a submodule."

To remove a submodule

  1. Delete the relevant section from the .gitmodules file.
  2. Delete the relevant section from .git/config.
  3. Run git rm --cached path_to_submodule (no trailing slash).
  4. Commit and delete the now untracked submodule files.

Credits

Based on many .vimrcs found on the Internet and the .vimrc of Dutow and Sztupy.

Packaging ideas from here: Synchronizing plugins with git submodules and pathogen

Instructions in README from here: Dudarev's dotvim repo on GitHub

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.