Skip to content

Commit

Permalink
compatible with vim7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyinzuo committed Aug 26, 2023
1 parent d6dacb2 commit eeec245
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
21 changes: 12 additions & 9 deletions root/.vim/vimrc.d/plugin.vim
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ let test#strategy = "asyncrun_background_term"
let test#python#pytest#executable = 'python3 -m pytest'
let test#rust#cargotest#test_options = { 'nearest': ['--', '--nocapture', '--exact'], 'file': [] }

Plug 'LunarWatcher/auto-pairs'
" let g:AutoPairsMapBS = 1

" similar Plugin: Plug 'easymotion/vim-easymotion'
Plug 'justinmk/vim-sneak'
let g:sneak#label = 1
Expand All @@ -38,6 +35,8 @@ nmap t <Plug>Sneak_t
nmap T <Plug>Sneak_T
if has('nvim') || v:version >= 810
Plug 'LunarWatcher/auto-pairs'
" let g:AutoPairsMapBS = 1
Plug 'markonm/traces.vim'
endif

Expand Down Expand Up @@ -178,10 +177,6 @@ endif
" Initialize plugin system
call plug#end()

let g:AutoPairs = autopairs#AutoPairsDefine([
\ {"open": "<", "close": ">", "filetype": ["html"]}
\ ]) " This is a filetype-specific mapping

if !has("nvim") || g:nvim_compatibility_with_vim
if has("termguicolors")
set termguicolors
Expand All @@ -199,7 +194,9 @@ if !has("nvim") || g:nvim_compatibility_with_vim
let g:solarized_diffmode = "normal"
colorscheme solarized8
else
" let g:solarized_termcolors = 256
if $COLORTERM != "truecolor"
let g:solarized_termcolors = 256
endif
colorscheme solarized
endif
" tab颜色
Expand All @@ -210,8 +207,14 @@ if !has("nvim") || g:nvim_compatibility_with_vim
else
endif

hi CocCursorRange guibg=#b16286 guifg=#ebdbb2
if has('nvim') || v:version >= 810
let g:AutoPairs = autopairs#AutoPairsDefine([
\ {"open": "<", "close": ">", "filetype": ["html"]}
\ ]) " This is a filetype-specific mapping
endif

if has('nvim') || v:version >= 820
hi CocCursorRange guibg=#b16286 guifg=#ebdbb2
source ~/.vim/vimrc.d/project.vim
endif
source ~/.vim/vimrc.d/marks.vim
7 changes: 6 additions & 1 deletion root/.vim/vimrc.d/tags.vim
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ if has("cscope")
" use both cscope and ctag for 'ctrl-]', ':ta', and 'vim -t'
set cscopetag
" 使用quickfix窗口显示搜索结果
set cscopequickfix=s-,g-,c-,t-,e-,f-,i-,d-,a-
if v:version >= 800
set cscopequickfix=s-,g-,c-,t-,e-,f-,i-,d-,a-
else
set cscopequickfix=s-,g-,c-,t-,e-,f-,i-,d-
endif

" show msg when any other cscope db added
set cscopeverbose
" 先搜索cscope数据库,如果没有再搜索tags
Expand Down

0 comments on commit eeec245

Please sign in to comment.