From: Daniel Liu Date: Wed, 7 Jul 2021 15:42:24 +0000 (-0400) Subject: vimrc updates X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=commitdiff_plain;h=0853ad49fc13e10925e855a735bc3122612c3dcb vimrc updates --- diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..f3a3a61 --- /dev/null +++ b/.bash_profile @@ -0,0 +1,5 @@ + +source ~/.config/shell/commonprofile + +[ -f ~/.bashrc ] && source ~/.bashrc + diff --git a/.vimrc b/.vimrc index 90857cc..33cea78 100644 --- a/.vimrc +++ b/.vimrc @@ -13,10 +13,9 @@ set incsearch set encoding=utf-8 set tabstop=4 set shiftwidth=4 -" set expandtab +set expandtab set ignorecase set smartcase -set nrformats+=alpha "inc/dec alpha set hidden " cursors depending on mode @@ -61,6 +60,17 @@ set listchars=tab:▸\ ,space:·,eol:¬ " reload vimrc map r :source ~/.vimrc:echo "vimrc reloaded" +" write with sudo +cmap w!! w !sudo tee > /dev/null % + +" reload current file +map e :e:echo "current file reloaded" +map E :e!:echo "current file force reloaded" + +" highlighting (will get rid of this sometime prob) +au BufRead,BufNewFile *.svelte set filetype=svelte +au! Syntax svelte source ~/.vim/syntax/svelte.vim + " statusline function! StatusModeColor() if (mode() =~# '\v(n|no)') @@ -142,8 +152,8 @@ call plug#begin('~/.vim/plugged') Plug 'sirver/ultisnips' Plug 'tpope/vim-commentary' Plug 'ap/vim-buftabline' -Plug 'lervag/vimtex' -Plug 'PietroPate/vim-tex-conceal' +Plug 'lervag/vimtex', { 'for': 'tex' } +Plug 'PietroPate/vim-tex-conceal', { 'for': 'tex' } " Plug 'jiangmiao/auto-pairs' " Plug 'rlue/vim-barbaric' " Plug 'junegunn/fzf' @@ -233,4 +243,5 @@ hi Todo ctermfg=0 ctermbg=11 hi Comment ctermfg=DarkGrey hi lineNr ctermfg=DarkGrey hi Folded ctermfg=0 - +hi Pmenu ctermfg=0 ctermbg=7 +hi PmenuSel ctermfg=0 ctermbg=6