首页 > 其他分享 >VIM 插件一些设置

VIM 插件一些设置

时间:2023-01-06 21:55:39浏览次数:59  
标签:Plug 插件 git vim gruvbox let NERDTree 设置 VIM

" Mode Settings

let &t_SI.="\e[5 q" "SI = INSERT mode
let &t_SR.="\e[4 q" "SR = REPLACE mode
let &t_EI.="\e[1 q" "EI = NORMAL mode (ELSE)

inoremap jj
set nu

let g:plug_url_format='https://git::@gitclone.com/github.com/%s.git'
call plug#begin('~/.vim/plugged')

Plug 'preservim/nerdtree'
Plug 'kien/ctrlp.vim'
Plug 'tpope/vim-surround'
Plug 'easymotion/vim-easymotion'
Plug 'tomtom/tcomment_vim'
Plug 'vim-ruby/vim-ruby'
Plug 'tpope/vim-rails'
Plug 'mattn/emmet-vim'
Plug 'sainnhe/gruvbox-material'

call plug#end()

let g:gruvbox_material_better_performance = 1
colorscheme gruvbox-material

" NERDTree
nnoremap :NERDTreeToggle
autocmd VimEnter * NERDTree

" Close the tab if NERDTree is the only window remaining in it.
autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
" let NERDTreeWinPos="right"

" ctrlp
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[/].(git|hg|svn)$',
\ 'file': '\v.(exe|so|dll)$',
\ 'link': 'some_bad_symbolic_links',
\ }

标签:Plug,插件,git,vim,gruvbox,let,NERDTree,设置,VIM
From: https://www.cnblogs.com/cloudhan/p/17031681.html

相关文章