/vimrc

My vimrc

Primary LanguageVim Script

My vimrc

How to install

  1. Clone my vimrc:

    git clone git@github.com:colorhaake/vimrc.git
    cd vimrc
    ln -s $(pwd)/vimrc ~/.vimrc
    
  2. Then install Vundle:

    git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
    
  3. Then install bundles:

    Launch vim and run :PluginInstall

Included Plugins

Color Scheme

Key Mappings

Move between windows:

nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>

YouCompleteMe and Tern

  1. download MacVim dmg and install into Applications
  2. ln -s /Applications/MacVim.app/Contents/bin/mvim vim
  3. Install YouCompleteMe with Vundle. Add the following line into vimrc and run PluginIntall
  Plugin 'Valloric/YouCompleteMe'
  Plugin 'marijnh/tern_for_vim'
  1. brew install cmake
cd ~/.vim/bundle/YouCompleteMe
./install.py --all
  1. setting Tern
cd ~/.vim/bundle/tern_for_vim
npm install
touch .tern_project // at root of your project

add the following content into .tern_proejct

{

  "libs": [

    "browser",

    "underscore",

    "jquery"

  ],

  "plugins": {
    "node": {}
  }

}
  1. Done

For Haskell

How to install eagletmt/ghcmod-vim by Vundle

  1. add Plugin 'eagletmt/ghcmod-vim' on your ~/.vimrc

  2. install Shougo/vimproc.vim

  3. install DanielG/ghc-mod

How to install Shougo/vimproc.vim by Vundle

  1. add Plugin 'Shougo/vimproc.vim' on your ~/.vimrc

  2. execute :PluginInstall on your vim

  3. cd ~/.vim/bundle/vimproc.vim/ and make

How to install DanielG/ghc-mod

  1. stack install ghc-mod (you can get stack from Haskell installation)

  2. add let $PATH .= (":" . $HOME . "/.stack/bin" . ":" . $HOME . "/.local/bin") on your ~/.vimrc

TODO