vim 超强发行版

推荐第一个:

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

https://github.com/Spacevim/Spacevim

https://github.com/JBakamovic/yavide

 

linux 下阅读代码还有个收费软件: scitools understand,不过要收费,听说不便宜,但听说很好用,推荐。

 

注意,安装 spf13-vim 时 有一个 Bundle 叫 amirh/HTML-AutoCloseTag,github 上已经找不到这个库了,用这个 vim-scripts/HTML-AutoCloseTag。

学习 vimrc script 的话推荐一本书:https://github.com/isayme/learnvimscriptthehardway-cn

 

我自己对 spf13-vim 有一点定制,如下:

下面的操作都是在 spf13-vim 安装完后。

1、安装我自己修改过的 ShowMarks,在 ~/.vimrc.bundles.local 文件里加入:

Plugin 'vim-scripts/ShowMarks'

安装完后用我自己的 ShowMarks.vim 文件替换该plugin原始的文件,该文件在我博客的另一篇文章里,直接在博客里搜索 vim。

然后在 ~/.vimrc.local 里加入 ShowMarks 的配置:

" ------------------------------------------------------------------
" Desc: ShowMarks configuration
" ------------------------------------------------------------------
let g:showmarks_enable = 1
let showmarks_include = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
" Ignore help, quickfix, non-modifiable buffers
let showmarks_ignore_type = "hqm"
" Hilight lower & upper marks
let showmarks_hlline_lower = 1
let showmarks_hlline_upper = 0

" update custom highlights
" ========================================================
" ShowMarks
" ========================================================
" For marks a-z
hi clear ShowMarksHLl
hi ShowMarksHLl term=bold cterm=none ctermbg=DarkBlue gui=none guibg=DarkBlue
" For marks A-Z
hi clear ShowMarksHLu
hi ShowMarksHLu term=bold cterm=bold ctermbg=LightRed ctermfg=DarkRed gui=bold guibg=LightRed guifg=DarkRed
" For all other marks
hi clear ShowMarksHLo
hi ShowMarksHLo term=bold cterm=bold ctermbg=LightYellow ctermfg=DarkYellow gui=bold guibg=LightYellow guifg=DarkYellow
" For multiple marks on the same line.
hi clear ShowMarksHLm
hi ShowMarksHLm term=bold cterm=none ctermbg=LightBlue gui=none guibg=SlateBlue

" set tabstop=4
" set noexpandtab
" disable hight tab key
let g:indent_guides_enable_on_vim_startup = 0

" enable mouse right click to copy
set mouse=v

" map jk and kj to esc key
inoremap jk <esc>
inoremap kj <esc>
inoremap <esc> <nop>

 

 

如果你想改变spf13-vim 的color scheme, 则(我自己一般就使用 spf13 默认的):

set t_Co=8
let g:solarized_termcolors=16 color solarized

 

转载于:https://www.cnblogs.com/welhzh/p/9057186.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值