Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 2.88 KB

README.md

File metadata and controls

63 lines (44 loc) · 2.88 KB

cedarvim

Prerequisites

  • Vim 7.4+ (8.0+ recommended)

Installing

$ git clone https://github.com/cedarcode/cedarvim ~/.vim
$ cd ~/.vim
$ git subomdule init
$ git submodule update

Updating

$ cd ~/.vim
$ git pull
$ git submodule update

Features

  • Shows line numbers by default
  • Uses 2-spaces indentation by default
  • Uses system clipboard by default
  • Mouse/trackpad enabled in all modes by default
  • *.swp files kept in hidden location to avoid dirty directories
  • <C-b> for easy buffer switching
  • <C-Up> and <C-Down> to move text lines up and down easily, in both normal and visual modes
  • <C-n> to toggle NERDTree

Included plugins

Navigation

Autocompletion

Git

  • vim-fugitive: full git integration, e.g. :Ggrep to search the work tree with git grep among others
  • vim-rhubarb: extends vim-fugitive with :Gbrowse to open files/commits/etc in GitHub and more
  • vim-gitgutter: shows a git diff in the 'gutter' (sign column), use [c and ]c to navigate hunks and more

Ruby on Rails

  • vim-bundler: bundler wrapper, e.g. :Bundle to run bundle, it makes gf work in Gemfile.lock, among other things
  • vim-rails: rails integration, e.g. gf for partials and others, :Rails console, :Generate controller Blog, among other things
  • vim-endwise: automatically adds end after if, do, def and several other keywords

Other