2020-03-02 02:12:16 +00:00
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
2019-12-08 11:49:54 +00:00
filetype plugin on
filetype indent on
syntax on
2020-01-26 22:00:54 +00:00
colorscheme delek
2019-12-31 21:01:00 +00:00
2020-01-26 22:00:54 +00:00
cnoremap w ! ! execute 'silent! write !sudo tee % >/dev/null' < bar > edit ! < CR >
2020-03-02 02:12:16 +00:00
cnoremap i ! execute 'silent! write !sudo 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-01-26 22:00:54 +00:00
return "\<C-X>\<C-I>"
else
return "\<Tab>"
endif
endfunction
inoremap < Tab > < C - R > = CleverTab ( ) < CR >
2019-12-31 21:01:00 +00:00
autocmd BufWritePre * %s /\s\+$/ /e
2019-12-08 11:49:54 +00:00
2020-01-26 22:00:54 +00:00
let g :netrw_banner = 0
let g :netrw_liststile = 3
2019-12-08 11:49:54 +00:00
let g :airline_powerline_fonts = 1
let g :airline #extensions #tabline #enabled = 1
2020-01-26 22:00:54 +00:00
let g :airline #extensions #ale #enabled = 1