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 = "\<Esc>[2 q" "normal mode
+let &t_SI = "\<Esc>[6 q" "insert mode
+let &t_SR = "\<Esc>[4 q" "replace mode
" conceal
set conceallevel=2
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 <leader>z 1z=<cr>
+
" View whitespace
map <leader>s :set list!<cr>
-set lcs=space:·
+set listchars=tab:▸\ ,space:·,eol:¬
" colors
hi Conceal ctermbg=Black
else
hi StatusLine cterm=None gui=None ctermfg=black ctermbg=DarkGrey
endif
-
+
return ''
endfunction
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'
let g:tex_conceal='abdmgs'
let g:vimtex_compiler_latexmk = {
- \'build_dir': '/home/pinosaur/.cache/latexaux/',
+ \'build_dir': '/home/pinosaur/.cache/latexaux/'
\}
" Ctrlp
" 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