Skip to content

An attempt to automate the installation of all the vim plugins and scripts I find useful

License

Notifications You must be signed in to change notification settings

ttousai/vim-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-config

Recommendation

I recommend using https://github.com/fatih/vim-go by Faith Aslan.

An attempt to automate the installation of all the vim plugins and scripts I find useful for my Go development, based on Martin Angers @PuerkitoBio's blog. These include;

  1. Tpope's amazing pathogen
  2. The Go Vim tools which come with your Go installation
  3. Nsf's gocode Go completion tool
  4. Townk's vim-autoclose for closing pair symbols (){},etc
  5. scrooloose's NerdTree tree explorer
  6. scrooloose's syntastic syntax checking plugin
  7. Majutsushi's Tagbar tag browser
  8. Ervandew's SuperTab for tab completion
  9. Tpope's vim-sensible acceptable defaults for vim
  10. Altercation's vim-colors-solarized colorscheme.
  11. Nico Raffo's Conque run interactive commands inside vim buffer.

NOTE: The install script backs up your vimrc and .vim directories to ~/.vim.old and ~/.vimrc.old.

Prerequisites

  1. Go installed following the official instructions (including exporting GOPATH and GOROOT).
  2. Gotags

Installation

The /PATH/TO/REPOS argument specifies where the various plugin sources wiil be cloned to and must be an absolute PATH.

  1. mkdir /PATH/TO/REPOS/github.com/ttousai && cd /PATH/TO/REPOS/github.com/ttousai
  2. git clone git://github.com/ttousai/vim-config
  3. cd vim-config
  4. ./install.sh /PATH/TO/REPOS

NOTE: Step 1 is critical, the install script requires the github.com/ttousai part, of course this can be changed in the script :).

Uninstall

Before uninstalling please make sure to backup any new things you've added to the .vim/autoload and .vim/bundle directory. These instructions assume you kept your backups from the installation (.vimrc.old and .vim).

To uninstall just do the following,

  1. rm -v ~/.vim/autoload/pathogen.vim
  2. rm -rfv ~/.vim/bundle
  3. rm -v ~/.vimrc && mv ~/.vimrc.old ~/.vimrc

optionally

  1. rm -rfv ~/.vim && mv ~/.vim.old ~/.vim
  2. Remove all cloned plugin code in /PATH/TO/REPOS

Personalization

I have separated all my personal configuration into the file plugin/default.vim and plugin/keybindings.vim. These includes keybindings and templates for golang and perl.

Also the file plugin/go.vim, contains configurations specific to go

Solarized

I have included a shell script solarized-gnome-term.sh, from this post. I found it helpful when my solarize color scheme was not running out of the box.

About

An attempt to automate the installation of all the vim plugins and scripts I find useful

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published