52 lines
2.0 KiB
VimL
52 lines
2.0 KiB
VimL
set mouse=a cb=unnamed,unnamedplus wim=longest,list,full nocompatible backspace=indent,eol,start cmdheight=1 bg=dark nu rnu showcmd incsearch listchars=trail:·,tab:\\ ,eol: list cot=menu si sta cpt=".,w,b,i" tf path+=** aw
|
|
filetype plugin indent on
|
|
syntax on
|
|
colorscheme slate
|
|
|
|
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit! <CR>
|
|
cnoremap i! execute 'silent! write !sudo make install' <CR>
|
|
function! CleverTab()
|
|
if strpart( getline('.'), col('.')-2, 3) =~ '^\w'
|
|
if &completefunc
|
|
return "\<C-X>\<C-U>"
|
|
elseif exists('b:compkey')
|
|
return b:compkey
|
|
else
|
|
return "\<C-X>\<C-I>"
|
|
endif
|
|
else
|
|
return "\<Tab>"
|
|
endif
|
|
endfunction
|
|
inoremap <Tab> <C-R>=CleverTab()<CR>
|
|
|
|
autocmd FileType tex let b:compkey = "\<C-X>\<C-S>"
|
|
autocmd FileType tex set spell
|
|
|
|
autocmd FileType tex command! Comp execute 'silent !rubber -d %' <bar> redraw!
|
|
autocmd FileType css command! Comp execute 'silent !lessc % %:r.css' <bar> redraw!
|
|
autocmd FileType tex command! Compdoc execute 'silent !pandoc -t docx % -o %:r.docx' <bar> redraw!
|
|
|
|
let g:lsc_server_commands = {'java': 'jdtls','html': 'html-languageserver --stdio','less': 'css-languageserver --stdio','css': 'css-languageserver --stdio', 'cpp': { 'command': 'clangd', 'suppress_stderr': v:true }, 'c': { 'command': 'clangd', 'suppress_stderr': v:true }}
|
|
let g:lsc_auto_map = v:true
|
|
let g:lsc_enable_autocomplete = v:true
|
|
|
|
let g:netrw_banner = 0
|
|
let g:netrw_liststile = 3
|
|
|
|
let g:airline_powerline_fonts = v:true
|
|
let g:airline#extensions#tabline#enabled = v:true
|
|
let g:airline_skip_empty_sections = v:true
|
|
let g:airline_left_sep = ''
|
|
let g:airline_left_alt_sep = ''
|
|
let g:airline_right_sep = ''
|
|
let g:airline_right_alt_sep = ''
|
|
let g:airline#extensions#tabline#left_sep = ''
|
|
let g:airline#extensions#tabline#left_alt_sep = ''
|
|
let g:airline#extensions#tabline#right_sep = ''
|
|
let g:airline#extensions#tabline#right_alt_sep = ''
|
|
|
|
let g:clang_format#code_style = 'llvm'
|
|
let g:clang_format#detect_style_file = 1
|
|
let g:clang_format#auto_format = 0
|