博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
my vim rc
阅读量:6653 次
发布时间:2019-06-25

本文共 4089 字,大约阅读时间需要 13 分钟。

set nocompatible              " be iMproved, required" ?  (key)let mapleader=","filetype off "requiredset foldmethod=indent" set the runtime path to include Vundle and initializeset rtp+=~/.vim/bundle/Vundle.vimcall vundle#begin()" alternatively, pass a path where Vundle should install plugins"call vundle#begin('~/some/path/here')" let Vundle manage Vundle, requiredPlugin 'VundleVim/Vundle.vim'" The following are examples of different formats supported." Keep Plugin commands between vundle#begin/end." plugin on GitHub repo" Plugin 'tpope/vim-fugitive'" plugin from http://vim-scripts.org/vim/scripts.htmlPlugin 'L9'" The sparkup vim script is in a subdirectory of this repo called vim." Pass the path to set the runtimepath properly." Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}" Plugin 'nsf/gocode',{'rtp':'vim/'}Plugin 'fatih/vim-go'Bundle 'scrooloose/nerdtree'"Bundle 'cespare/vim-golang'" Bundle 'dgryski/vim-godef'Plugin 'Valloric/YouCompleteMe'" Plugin 'SirVer/ultisnips'" Plugin 'majutsushi/tagbar'Plugin 'vim-scripts/taglist.vim'" Plugin 'junegunn/vim-emoji'" Plugin 'rjohnsondev/vim-compiler-go'" Plugin 'dgryski/vim-godef'" Plugin 'davidhalter/jedi-vim'" Plugin 'scrooloose/syntastic'" All of your Plugins must be added before the following linecall vundle#end()            " requiredfiletype plugin indent on    " required" To ignore plugin indent changes, instead use:"filetype plugin on"" Brief help" :PluginList       - lists configured plugins" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate" :PluginSearch foo - searches for foo; append `!` to refresh local cache" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal"nmap 
hnmap
lnmap
jnmap
k" see :h vundle for more details or wiki for FAQ" Put your non-Plugin stuff after this linemap
:NERDTreeToggle
map
:b 1
Bundle 'majutsushi/tagbar'nmap
t :TagbarToggle
let g:tagbar_width = 25autocmd VimEnter * nested :call tagbar#autoopen(1)autocmd BufWritePre *.go:Fmtlet g:tagbar_right = 1let g:tagbar_type_go = { \ 'ctagstype' : 'go', \ 'kinds' : [ \ 'p:package', \ 'i:imports:1', \ 'c:constants', \ 'v:variables', \ 't:types', \ 'n:interfaces', \ 'w:fields', \ 'e:embedded', \ 'm:methods', \ 'r:constructor', \ 'f:functions' \ ], \ 'sro' : '.', \ 'kind2scope' : { \ 't' : 'ctype', \ 'n' : 'ntype' \ }, \ 'scope2kind' : { \ 'ctype' : 't', \ 'ntype' : 'n' \ }, \ 'ctagsbin' : 'gotags', \ 'ctagsargs' : '-sort -silent' \ }let g:molokai_original = 1let g:rehash256 = 1set sw=4colorscheme molokaiset nuset ts=4set expandtabsyntax onlet g:go_highlight_functions = 1let g:go_highlight_methods = 1let g:go_highlight_structs = 1let g:go_highlight_operators = 1let g:go_highlight_build_constraints = 1let g:go_fmt_command = "goimports"let g:go_fmt_fail_silently = 1let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck']let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] }let g:UltiSnipsExpandTrigger="
""godef"will open the definition in a new tablet g:godef_split=2let g:godef_same_file_in_same_window=1au FileType go nmap
r
(go-run)au FileType go nmap
b
(go-build)au FileType go nmap
T
(go-test)au FileType go nmap
c
(go-coverage)au FileType go nmap
ds
(go-def-split)au FileType go nmap
dv
(go-def-vertical)au FileType go nmap
dt
(go-def-tab)"set statusline+=%#warningmsg#"set statusline+=%{SyntasticStatuslineFlag()}"set statusline+=%*let g:syntastic_always_populate_loc_list = 1let g:syntastic_auto_loc_list = 1let g:syntastic_check_on_open = 1let g:syntastic_check_on_wq = 0set rtp+=$GOPATH/src/github.com/golang/lint/misc/vimautocmd BufWritePost,FileWritePost *.go execute 'Lint' | cwindow""if emoji#available()" let g:gitgutter_sign_added = emoji#for('small_blue_diamond')" let g:gitgutter_sign_modified = emoji#for('small_orange_diamond')" let g:gitgutter_sign_removed = emoji#for('small_red_triangle')" let g:gitgutter_sign_modified_removed = emoji#for('collision')" endif"eset completefunc=emoji#completemap
:%s/:\([^:]\+\):/\=emoji#for(submatch(1), submatch(0))/g

转载地址:http://sfnto.baihongyu.com/

你可能感兴趣的文章
Objecttive-C各种问题
查看>>
Python中的"克隆" - 深浅Copy
查看>>
抛出异常
查看>>
新的启程~
查看>>
对于一个段错误(核心已转储)问题的解答,错误的英文翻译是segment fault(core dumped)...
查看>>
BZOJ3862Little Devil I——树链剖分+线段树
查看>>
linux 一个读写锁的使用异常导致的故障
查看>>
关于递归
查看>>
call function
查看>>
mysql主从同步(4)-Slave延迟状态监控
查看>>
邻接多重表
查看>>
装饰器
查看>>
华为镜像口观察口配置
查看>>
hdu1151 Air Raid
查看>>
博弈论1
查看>>
ActivityGroup打开空文件夹焦点问题及返回键问题
查看>>
[IDEA学习笔记][keymap]
查看>>
[20171221]利用rman实现2台机器文件拷贝.txt
查看>>
JavaScript正则表达式
查看>>
ServletConfig
查看>>