zoukankan      html  css  js  c++  java
  • 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 有一点定制,如下:

    (我的google服务器里有开箱即用的vim配置,不需要做任何改变,名叫:vim_all.tar。   另外,如果neocomplete自动弹出补全框无法自己弹出,可能是vim的编译选项未支持lua等脚本,可以自己编译也可以安装 vim-nox,apt-get install vim-nox, 只针对ubuntu, vim-nox is for vim with no GUI

    下面的操作都是在 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
    
    " colorscheme dracula
    " set t_Co=8
    " let g:solarized_termcolors=16
    " color nature
    
    " 下面这几行不能启用,启用之后,tab无法自动变成4个space。如果未启用,但仍然无法自动变成4个space,删除~/.vimviews 清空缓存再试。
    " show existing tab with 4 spaces width
    " set tabstop=4
    " when indenting with '>', use 4 spaces width
    " set shiftwidth=4
    " On pressing tab, insert 4 spaces
    " set noexpandtab
    
    " disable tab highlight
    let g:indent_guides_enable_on_vim_startup = 0
    
    set mouse=v
    
    inoremap jk <esc>
    inoremap kj <esc>
    set timeoutlen=300
    inoremap <esc> <nop>

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

    set t_Co=8
    let g:solarized_termcolors=16 color solarized
  • 相关阅读:
    暴力字符串hash——cf1200E
    单调栈+线段树——cf1220F
    拆边+BFS队列骚操作——cf1209F
    控制器
    linux下安装配置jmeter
    docker-compose.yml配置jforum开源系统
    anyproxy
    docker搭建一键安装包lnmp
    docker tomcat,mysql 搭建开源项目jforum
    接口自动化测试-Mock Get和Post请求
  • 原文地址:https://www.cnblogs.com/welhzh/p/9057186.html
Copyright © 2011-2022 走看看