我的vim配置

source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin

set diffexpr=MyDiff()
function MyDiff()
let opt = ‘-a --binary ’
if &diffopt =~ ‘icase’ | let opt = opt . ‘-i ’ | endif
if &diffopt =~ ‘iwhite’ | let opt = opt . ‘-b ’ | endif
let arg1 = v:fname_in
if arg1 =~ ’ ’ | let arg1 = ‘"’ . arg1 . ‘"’ | endif
let arg2 = v:fname_new
if arg2 =~ ’ ’ | let arg2 = ‘"’ . arg2 . ‘"’ | endif
let arg3 = v:fname_out
if arg3 =~ ’ ’ | let arg3 = ‘"’ . arg3 . ‘"’ | endif
if $VIMRUNTIME =~ ’ ’
if &sh =~ ‘<cmd’
if empty(&shellxquote)
let l:shxq_sav = ‘’
set shellxquote&
endif
let cmd = ‘"’ . KaTeX parse error: Expected 'EOF', got '\diff' at position 15: VIMRUNTIME . '\̲d̲i̲f̲f̲"' else …VIMRUNTIME, ’ ‘, ‘" ‘, ‘’) . ‘\diff"’
endif
else
let cmd = $VIMRUNTIME . ‘\diff’
endif
silent execute ‘!’ . cmd . ’ ’ . opt . arg1 . ’ ’ . arg2 . ’ > ’ . arg3
if exists(‘l:shxq_sav’)
let &shellxquote=l:shxq_sav
endif
endfunction
let Tlist_Ctags_Cmd=‘C:/Program Files (x86)/Vim/ctags58/ctags.exe’
let Tlist_Ctags_Cmd=‘ctags.exe’
let Tlist_Show_Menu = 1
let Tlist_Exit_OnlyWindow=1 "tagList窗口是最后一个窗口,则退出Vim
let Tlist_Show_One_File=1
let Tlist_Auto_Open=1
"let Tlist_Use_Right_Window=1
set tags=tags;/
set autochdir
nmap :vert res-10
nmap :vert res+10
nmap :TlistToggle
"nmap :Ntree
nmap :Vexplore
nmap :diffthis
nmap :noh
nmap :set fileencoding=utf-8
noremap @a
"noremap @b
noremap :set encoding=utf-8
“noremap :set fileencoding=ansi
let g:OmniCpp_DefaultNamespaces=[“std”]
let g:OmniCpp_MayCompleteScope=1
let g:OmniCpp_SelectFirstItem=2
set nu
set relativenumber
“augroup relative_number
" autocmd!
" autocmd InsertEnter * :set norelativenumber
" autocmd InsertEnter * :set relativenumber
“augroup endif
“set list
“set lcs=tab:|\ ,nbsp:%,trail:-
“highlight LeaderTab guifg=#666666
“match LeaderTab /^\t/
set nobackup
set noundofile
set noswapfile
set guifont=Consolas:h11:cDEFAULT
colorscheme torte
“colorscheme solarized
set guioptions-=m “菜单栏
set guioptions-=T “工具栏
“set guioptions+=b “底部水平滚动条 h限制滚动条大小为当前行长度 L左边滚动条总是存在 r右边滚动条总是存在 e标签页
set guioptions-=L
set guioptions-=r
“set nowrap
set foldmethod=marker
set tabstop=4
set expandtab
set autoindent
nnoremap zpr :setlocal foldexpr=(getline(v:lnum)=@/)?0:(getline(v:lnum-1)=@/)\|\|(getline(v:lnum+1)=~@/)?1:2 foldmethod=expr foldlevel=0 foldcolumn=2:set foldmethod=manual
nmap <C->s :cs find s =expand(””)
nmap <C->g :cs find g =expand(””)
nmap <C->d :cs find d =expand(””)
nmap <C->c :cs find c =expand(””)
nmap <C->t :cs find t =expand(””)
nmap t :CtrlPTag
“if has(“cscope”)
" cs add cscope.out
“endif
nmap :%s/=expand(””)/=expand(””)/gc
set termencoding=utf-8
set encoding=utf-8
set langmenu=zh_CN.UTF-8
language message zh_CN.UTF-8
“let mapleader=””
inoremap jj
nnoremap mm :noh
map h
map l
let g:airline_left_sep=’’
let g:airline_left_alt_sep=’’
let g:airline_right_sep=’’
let g:airline_right_alt_sep=’’
"let g:airline_symbols.branch=’’
"let g:airline_symbols.readonly=’’
"let g:airline_symbols.linenr=’’
let g:airline_detect_modified=1
let g:airline_detect_paste=1
autocmd BufEnter * syn match Function /<\w+%(\s*()@=/
"autocmd BufEnter * hi Conditional guifg=#9f1e1e
autocmd BufEnter * hi Conditional guifg=#f2a83b
autocmd BufEnter * hi Function guifg=#f2a83b
let g:markdown_enable_spell_checking = 0
“set conceallevel=0
let g:markdown_enable_conceal = 1
markdown设置
let g:table_mode_corner=” |”
"open file in chrome browser
"inoremap ch :update|silent ! start chrome.exe %:p
"nmap <C->m :silent ! start chrome.exe %:p
noremap :silent ! start chrome.exe %:p
nmap :Latexmk
nmap :LatexView
"nmap 1gt
"nmap 2gt
"nmap 3gt
"nmap 4gt
"nmap 5gt
"nmap 6gt
"nmap 7gt
"nmap 8gt
"nmap 9gt
"nmap :tablast

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值