This commit is contained in:
Nachuan Tang
2023-02-05 20:02:39 -05:00
parent 2a6ef320ec
commit f57e8ed636
2 changed files with 17 additions and 13 deletions
+7 -1
View File
@@ -80,7 +80,13 @@
" "
" set tabpagemax=15 " Only show 15 tabs " set tabpagemax=15 " Only show 15 tabs
" set showmode " Display the current mode " set showmode " Display the current mode
set cursorline " Highlight current line set cursorline " Highlight current line
" get rid of current line highlight, instead just highlight the number column
augroup CLClear
autocmd! ColorScheme * hi clear CursorLine
augroup END
set cmdheight=1 " get rid of the extra useless line at the bottom(not working, probably a plugin is changing the value) set cmdheight=1 " get rid of the extra useless line at the bottom(not working, probably a plugin is changing the value)
"highlight clear SignColumn " SignColumn should match background "highlight clear SignColumn " SignColumn should match background
+10 -12
View File
@@ -36,18 +36,12 @@
let g:closetag_filenames = '*.html,*.xhtml,*.phtml, *.js' let g:closetag_filenames = '*.html,*.xhtml,*.phtml, *.js'
" } " }
Plug 'scrooloose/nerdtree'
" for markdown{ " for markdown{
Plug 'preservim/vim-markdown' Plug 'preservim/vim-markdown'
"} "}
" for window resize{ Plug 'simeji/winresizer'
Plug 'simeji/winresizer'
let g:winresizer_start_key = '<leader-r>'
let g:winresizer_vert_resize = 2
let g:winresizer_horiz_resize = 2
" }
Plug 'tpope/vim-surround' Plug 'tpope/vim-surround'
Plug 'rhysd/conflict-marker.vim' Plug 'rhysd/conflict-marker.vim'
@@ -55,7 +49,7 @@
Plug 'jiangmiao/auto-pairs' Plug 'jiangmiao/auto-pairs'
Plug 'mg979/vim-visual-multi' Plug 'mg979/vim-visual-multi'
Plug 'easymotion/vim-easymotion' "Plug 'easymotion/vim-easymotion'
Plug 'vim-scripts/restore_view.vim' Plug 'vim-scripts/restore_view.vim'
if executable('fzf') if executable('fzf')
@@ -79,6 +73,7 @@
" only work with vim " only work with vim
if g:vim_type == 'vim' if g:vim_type == 'vim'
Plug 'scrooloose/nerdtree'
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
endif endif
@@ -98,8 +93,6 @@
Plug 'nvim-lualine/lualine.nvim' Plug 'nvim-lualine/lualine.nvim'
" partial code execution
" Plug 'michaelb/sniprun', {'do': 'bash install.sh'}
endif endif
if g:vim_version >= 0.7 if g:vim_version >= 0.7
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
@@ -143,6 +136,12 @@ if g:vim_type == 'nvim'
endif endif
endif endif
" } " }
" simeji/winresizer {
if isdirectory(expand(plugin_dir . "/winresizer"))
let g:winresizer_vert_resize = 2
let g:winresizer_horiz_resize = 2
nnoremap <C-w>r :WinResizerStartResize<CR>
endif
" ludovicchabant/vim-gutentags { " ludovicchabant/vim-gutentags {
if isdirectory(expand(plugin_dir . "/vim-gutentags")) if isdirectory(expand(plugin_dir . "/vim-gutentags"))
@@ -245,7 +244,7 @@ endif
" } " }
"else "else
" vim-airline { " vim-airline {
if g:vim_type == 'vim' && isdirectory(expand(plugin_dir . "/airline")) if g:vim_type == 'vim' && isdirectory(expand(plugin_dir . "/vim-airline"))
" Set configuration options for the statusline plugin vim-airline. " Set configuration options for the statusline plugin vim-airline.
" Use the powerline theme and optionally enable powerline symbols. " Use the powerline theme and optionally enable powerline symbols.
let g:airline_section_b = '' let g:airline_section_b = ''
@@ -332,7 +331,6 @@ endif
" Theme_Appearance " Theme_Appearance
" { " {
" "
" debug function print out highlight group of cursor position " debug function print out highlight group of cursor position
function! SynStack() function! SynStack()
if !exists("*synstack") if !exists("*synstack")