最好用的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/<C_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

<C_P>

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<space>/: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

<Leader>a= :Tabularize /=<CR>

<Leader>a: :Tabularize /:<CR>

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章