Skip to content

MattMS/my_vim_settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Vim configuration

This repository contains my Vim configuration, used on both Lubuntu and Windows.

Setup

Linux

ln -s ~/Documents/my_vim_config ~/.vim
ln -s ~/Documents/my_vim_config/vimrc ~/.vimrc

Windows

cd C:\Users\my_name
mklink /D vimfiles C:\Users\my_name\Documents\GitHub\my_vim_config
mklink _vimrc C:\Users\my_name\Documents\GitHub\my_vim_config\vimrc

Plugins

Each of these are saved as submodules in the bundle folder.

All plugins are loaded with Pathogen.

Language support

Colour scheme

Old plugins

Used Airline for a while, but could never get the patched fonts to work. Removed when I realised I did not check it enough to justify having it. Ctrl + G works fine.

Replaced Ctrlp with Unite.

Managing plugins

Update plugins

Update all submodules with:

git submodule foreach git pull origin master

Then git add bundle/*, git commit and git push. GitHub for Windows does not currently like doing this.

On other machines update submodules after pulling changes:

git submodule update

Remove plugin

From: How do I remove a Git submodule?

git submodule deinit bundle/my_submodule
git rm bundle/my_submodule
git commit -m "Remove my_submodule"
rm -rf .git/modules/bundle/my_submodule

Notes

Plugins

Place plugins in ~/.vim/plugin/ or $HOME/vimfiles/plugin.

File type plugins are in ~/.vim/plugin/ftplugin. name can be anything.

  • ftplugin/.vim

  • ftplugin/_.vim

  • ftplugin//.vim

About

Behold my text-editing muscle memory!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published