.vimrc
This commit is contained in:
parent
cdff40d6a8
commit
91ba96eea4
72
.vimrc
72
.vimrc
@ -1,23 +1,29 @@
|
|||||||
" Plugins
|
" Plugins
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
|
||||||
Plug 'dag/vim-fish'
|
Plug 'valloric/youcompleteme'
|
||||||
Plug 'lervag/vimtex'
|
Plug 'rdnetto/ycm-generator'
|
||||||
Plug 'raimondi/delimitmate'
|
Plug 'cometsong/commentframe.vim'
|
||||||
Plug 'easymotion/vim-easymotion'
|
Plug 'mhinz/vim-startify'
|
||||||
Plug 'roosta/srcery'
|
Plug 'dag/vim-fish'
|
||||||
Plug 'scrooloose/nerdcommenter'
|
Plug 'lervag/vimtex'
|
||||||
Plug 'vim-syntastic/syntastic'
|
" Plug 'xuhdev/vim-latex-live-preview', { 'for': 'tex' }
|
||||||
Plug 'tpope/vim-fugitive'
|
Plug 'raimondi/delimitmate'
|
||||||
Plug 'vim-airline/vim-airline'
|
Plug 'easymotion/vim-easymotion'
|
||||||
Plug 'vim-airline/vim-airline-themes'
|
Plug 'roosta/srcery'
|
||||||
Plug 'tpope/vim-sensible'
|
Plug 'scrooloose/nerdcommenter'
|
||||||
Plug 'lokaltog/vim-powerline'
|
Plug 'vim-syntastic/syntastic'
|
||||||
Plug 'kien/ctrlp.vim'
|
Plug 'tpope/vim-fugitive'
|
||||||
Plug 'tpope/vim-surround'
|
Plug 'yggdroot/indentline'
|
||||||
Plug 'airblade/vim-gitgutter'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'godlygeek/tabular'
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
Plug 'christoomey/vim-system-copy'
|
Plug 'tpope/vim-sensible'
|
||||||
|
Plug 'lokaltog/vim-powerline'
|
||||||
|
Plug 'kien/ctrlp.vim'
|
||||||
|
Plug 'tpope/vim-surround'
|
||||||
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
Plug 'godlygeek/tabular'
|
||||||
|
Plug 'ntpeters/vim-better-whitespace'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Defaults
|
" Defaults
|
||||||
@ -30,6 +36,8 @@ set fdm=syntax
|
|||||||
" colorscheme srcery
|
" colorscheme srcery
|
||||||
colorscheme default
|
colorscheme default
|
||||||
let g:airline_theme='base16'
|
let g:airline_theme='base16'
|
||||||
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
|
let g:airline_powerline_fonts = 1
|
||||||
set hlsearch
|
set hlsearch
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
@ -39,7 +47,15 @@ set showcmd
|
|||||||
set wildmenu
|
set wildmenu
|
||||||
syntax enable
|
syntax enable
|
||||||
set ignorecase
|
set ignorecase
|
||||||
set pastetoggle=<F3>
|
let g:better_whitespace_ctermcolor='red'
|
||||||
|
let g:better_whitespace_enabled=1
|
||||||
|
let g:strip_whitespace_on_save=1
|
||||||
|
set linebreak
|
||||||
|
|
||||||
|
" Indent Highlights
|
||||||
|
let g:indentLine_char = '│'
|
||||||
|
set list
|
||||||
|
set lcs=tab:\┆\ ,trail:⎵
|
||||||
|
|
||||||
" CTRL-P
|
" CTRL-P
|
||||||
let g:ctrlp_map = '<c-p>'
|
let g:ctrlp_map = '<c-p>'
|
||||||
@ -107,3 +123,21 @@ if exists("+showtabline")
|
|||||||
set stal=2
|
set stal=2
|
||||||
set tabline=%!MyTabLine()
|
set tabline=%!MyTabLine()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Auto Highlight
|
||||||
|
" autosave delay, cursorhold trigger, default: 4000ms
|
||||||
|
setl updatetime=100
|
||||||
|
" highlight the word under cursor (CursorMoved is inperformant)
|
||||||
|
highlight WordUnderCursor cterm=underline gui=underline
|
||||||
|
autocmd CursorHold * call HighlightCursorWord()
|
||||||
|
function! HighlightCursorWord()
|
||||||
|
" if hlsearch is active, don't overwrite it!
|
||||||
|
let search = getreg('/')
|
||||||
|
let cword = expand('<cword>')
|
||||||
|
if match(cword, search) == -1
|
||||||
|
exe printf('match WordUnderCursor /\V\<%s\>/', escape(cword, '/\'))
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" Latex
|
||||||
|
" let g:vimtex_compiler_method = 'latexmk'
|
||||||
|
Loading…
Reference in New Issue
Block a user