X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=.vimrc;h=aeea621f004b447865a62f1a79312364c54ad39e;hb=a798b1f596aa7c037f32f45371525331a3e773b2;hp=e68fc91344609464e9703c1974d33d4425e2a244;hpb=339415291a788dafe60c6e2503220e0482c44bf1;p=dotfiles.git diff --git a/.vimrc b/.vimrc index e68fc91..aeea621 100644 --- a/.vimrc +++ b/.vimrc @@ -14,14 +14,14 @@ set smartcase set encoding=utf-8 set tabstop=4 set shiftwidth=4 -set expandtab +" set expandtab set nrformats+=alpha "inc/dec alpha set hidden -" spell check -setlocal spell -set spelllang=en_us -set spellcapcheck= +" cursors depending on mode +let &t_EI = "\[2 q" "normal mode +let &t_SI = "\[6 q" "insert mode +let &t_SR = "\[4 q" "replace mode " conceal set conceallevel=2 @@ -39,9 +39,17 @@ let g:netrw_liststyle = 3 let g:netrw_banner = 0 let g:netrw_winsize = 25 +" spell check +setlocal spell +set spelllang=en_us +set spellcapcheck= + +" accept first spell check fix +map z 1z= + " View whitespace map s :set list! -set lcs=space:· +set listchars=tab:▸\ ,space:·,eol:¬ " colors hi Conceal ctermbg=Black @@ -60,7 +68,7 @@ function! StatusModeColor() else hi StatusLine cterm=None gui=None ctermfg=black ctermbg=DarkGrey endif - + return '' endfunction @@ -121,6 +129,7 @@ Plug 'lervag/vimtex' Plug 'PietroPate/vim-tex-conceal' Plug 'jiangmiao/auto-pairs' Plug 'tpope/vim-commentary' +Plug 'rlue/vim-barbaric' " Plug 'ptzz/lf.vim' " Plug 'voldikss/vim-floaterm' @@ -144,7 +153,7 @@ let g:vimtex_quickfix_mode=0 let g:tex_conceal='abdmgs' let g:vimtex_compiler_latexmk = { - \'build_dir': '/home/pinosaur/.cache/latexaux/', + \'build_dir': '/home/pinosaur/.cache/latexaux/' \} " Ctrlp @@ -153,5 +162,9 @@ let g:vimtex_compiler_latexmk = { " Lf " let g:lf_replace_netrw = 1 " weird behavior rn +" vim-barbaric +let g:barbaric_ime = 'ibus' +set ttimeoutlen=0 + " Run after plugins autocmd FileType * set formatoptions-=o