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


  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值