最好用的vim配置 spf13-vim

spfvim很适合写代码:

https://github.com/spf13/spf13-vim

安装指导见以上页面,以下记录快捷键:


具体参考:

https://github.com/spf13/spf13-vim


编辑.vimrc.local,其他不用动:

  1 "colorscheme darkblue2                                                                                                            
  2 set nospell
  3 set mouse=



 

Undotree

,u

If you undo changes and then make a new change, in most editors the changes you undid are gone forever, as their undo-history is a simple list.

NERDtree

,e/

NERDTree is a file explorer plugin that provides "project drawer" functionality to your vim editing.

NERDTreeFind

,e/,nt

 opens NERDTree where the current file is located.

ctrlp

Ctrlp replaces the Command-T plugin with a 100% viml plugin. It provides an intuitive and fast mechanism to load files from the file system (with regex and fuzzy find), from open buffers, and from recently used files

surround

ds”/:help surround

a tool for dealing with pairs of "surroundings." Examples of surroundings include parentheses, quotes, and HTML tags. They are closely related to what Vim refers to as text-objects. 

NERDCommenter

,c/:help NERDCommenter

 allows you to wrangle your code comments, regardless of filetype. 

Syntastic

:help Syntastic

Syntastic is a syntax checking plugin that runs buffers through external syntax checkers as they are saved and opened. 

AutoClose

:help AutoClose

 It's simple, if you open a bracket, paren, brace, quote, etc, it automatically closes it

Fugitive

:help fugitive

Fugitive adds pervasive git support to git directories in vim.

Ack.vim

:help Ack

Ack.vim uses ack to search inside the current directory for a pattern. 

Tabularize

a= :Tabularize /=

a: :Tabularize /:

Tabularize lets you align statements on their equal signs and other characters

Tagbar

,tt

This plugin requires exuberant-ctags and will automatically generate tags for your open files. It also provides a panel to navigate easily via tags

EasyMotion

,,w

EasyMotion provides an interactive way to use motions in Vim.

 


 color darkblue2

"set mouse =a


你可能感兴趣的:(编程技巧)