66

GitHub - helmuthdu/vim: vim config

 5 years ago
source link: https://github.com/helmuthdu/vim
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Installation

Prerequisites

  • Git (1.7+)
  • Vim (7.3+)
  • ctags

Mac:

  • [Homebrew][homebrew] - ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
  • [MacVim][macvim] - brew install macvim
  • [Homesick][homesick] - gem install homesick
  • [ctags][ctags] - brew install ctags-exuberant

Vim

Overview of my vim setup. Sensible defaults!

Mappings

Reference to vim mappings.

General

  • , keyleader.
  • <Leader>cd Switch to the directory of the open buffer.
  • <C-l> Enable/Disable list.
  • <Leader>al Quick aligning to left.
  • <Leader>ar Quick aligning to right.
  • <Leader>ac Quick aligning to center.
  • <Leader>ff Toggle indention mode.
  • <Leader>ss Toggle Spell checking
  • <Leader>sn Spell checking (Next word)
  • <Leader>sp Spell checking (Previews word)
  • <Leader>s? Spell checking (Show list)
  • <Leader>tw Set text wrapping toggles.
  • <Enter> Turn off search highlighting.
  • <spacebar> spacebar create/open/close folding.
  • jj Map escape key to jj.

Plugins

  • <Leader>B buffergator
  • <Leader>ca calendar
  • <Leader>u Gundo
  • <C-o> NERDTree
  • <C-e> Emmet
  • <C-Space> YouCompleteMe: Display preview window
  • <Tab> Ultisnips: Expand snippers
  • <C-Tab> Ultisnips: Display list of snippers

Commands

  • :w! Sudo write!

Plug-Ins


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK