26 lines
990 B
VimL
26 lines
990 B
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=tab:\|\ list cot=menu,longest,preview si sta cpt=".,w,b,i" tf path+=** aw
|
|
filetype plugin on
|
|
filetype indent on
|
|
syntax on
|
|
colorscheme delek
|
|
|
|
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'
|
|
return "\<C-X>\<C-I>"
|
|
else
|
|
return "\<Tab>"
|
|
endif
|
|
endfunction
|
|
inoremap <Tab> <C-R>=CleverTab()<CR>
|
|
|
|
let g:lsc_server_commands = {'cpp': { 'command': 'clangd', 'suppress_stderr': v:true }, 'c': { 'command': 'clangd', 'suppress_stderr': v:true }, 'tex': { 'command': 'texlab', 'suppress_stderr': v:true }}
|
|
let g:lsc_auto_map = 1
|
|
|
|
let g:netrw_banner=0
|
|
let g:netrw_liststile=3
|
|
let g:airline_powerline_fonts = 1
|
|
let g:airline_theme='simple'
|
|
let g:airline#extensions#tabline#enabled = 1
|