2021-03-05 15:03:59 +00:00
|
|
|
set mouse=a cb=unnamed,unnamedplus wim=longest,list,full backspace=indent,eol,start cmdheight=1 bg=dark nu rnu incsearch cot=menu si sta cpt=.,w,b,i tf foldmethod=syntax path+=** nocompatible sc nosmd cursorline listchars=trail:·,eol:,tab:\ list directory=$HOME/.vim/swap// shm=asTIt fo=rnl
|
2020-08-27 14:51:00 +00:00
|
|
|
filetype plugin indent on
|
2019-12-08 11:49:54 +00:00
|
|
|
syntax on
|
2020-08-27 14:51:00 +00:00
|
|
|
colorscheme delek
|
2019-12-31 21:01:00 +00:00
|
|
|
|
2021-01-17 13:13:07 +00:00
|
|
|
cnoremap w!! execute 'silent! write !doas tee % >/dev/null' <bar> edit! <CR>
|
|
|
|
cnoremap i! execute 'silent! write !doas make install' <CR>
|
2020-01-26 22:00:54 +00:00
|
|
|
function! CleverTab()
|
2020-03-02 02:12:16 +00:00
|
|
|
if strpart( getline('.'), col('.')-2, 3) =~ '^\w'
|
2020-05-13 19:44:08 +00:00
|
|
|
if &completefunc
|
|
|
|
return "\<C-X>\<C-U>"
|
|
|
|
elseif exists('b:compkey')
|
|
|
|
return b:compkey
|
|
|
|
else
|
|
|
|
return "\<C-X>\<C-I>"
|
|
|
|
endif
|
2020-01-26 22:00:54 +00:00
|
|
|
else
|
|
|
|
return "\<Tab>"
|
|
|
|
endif
|
|
|
|
endfunction
|
|
|
|
inoremap <Tab> <C-R>=CleverTab()<CR>
|
2020-05-13 19:44:08 +00:00
|
|
|
|
2020-08-27 14:51:00 +00:00
|
|
|
autocmd FileType yaml setlocal sw=8 sts=8 expandtab
|
2020-05-13 19:44:08 +00:00
|
|
|
|
2021-01-17 13:13:07 +00:00
|
|
|
autocmd FileType tex command! Comp execute 'silent !pdflatex %' <bar> redraw!
|
2020-08-27 14:51:00 +00:00
|
|
|
autocmd FileType less command! Comp execute 'silent !lessc % %:r.css' <bar> redraw!
|
2020-05-13 19:44:08 +00:00
|
|
|
autocmd FileType tex command! Compdoc execute 'silent !pandoc -t docx % -o %:r.docx' <bar> redraw!
|
2019-12-08 11:49:54 +00:00
|
|
|
|
2021-03-05 15:03:59 +00:00
|
|
|
let g:lsc_server_commands = {'cpp': { 'command': 'clangd --completion-style=detailed --suggest-missing-includes --clang-tidy -j=8', 'suppress_stderr': v:true }, 'c': { 'command': 'clangd --completion-style=detailed --suggest-missing-includes --clang-tidy -j=8', 'suppress_stderr': v:true }}
|
2020-05-10 23:47:18 +00:00
|
|
|
let g:lsc_auto_map = v:true
|
2020-05-13 14:06:00 +00:00
|
|
|
let g:lsc_enable_autocomplete = v:true
|
2020-03-15 13:29:11 +00:00
|
|
|
|
2020-05-10 20:00:09 +00:00
|
|
|
let g:netrw_banner = 0
|
|
|
|
let g:netrw_liststile = 3
|
2020-03-22 13:35:12 +00:00
|
|
|
|
2020-05-10 23:47:18 +00:00
|
|
|
let g:airline_powerline_fonts = v:true
|
|
|
|
let g:airline#extensions#tabline#enabled = v:true
|
|
|
|
let g:airline_skip_empty_sections = v:true
|
2020-05-17 13:11:05 +00:00
|
|
|
let g:airline_theme='term'
|
2020-05-10 20:00:09 +00:00
|
|
|
|
|
|
|
let g:clang_format#code_style = 'llvm'
|
2020-08-27 14:51:00 +00:00
|
|
|
let g:clang_format#detect_style_file = v:true
|
2021-01-17 13:13:07 +00:00
|
|
|
let g:clang_format#auto_format = v:true
|
|
|
|
let g:clang_format#enable_fallback_style = 0
|