Add smart tab, install, change colorscheme, netrw changes and some other options
This commit is contained in:
parent
25ede7e544
commit
56cfad8ea0
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,6 +1,3 @@
|
||||
[submodule "pack/ide-alike/start/clang_complete"]
|
||||
path = pack/ide-alike/start/clang_complete
|
||||
url = https://github.com/xavierd/clang_complete
|
||||
[submodule "pack/airline/start/vim-airline"]
|
||||
path = pack/airline/start/vim-airline
|
||||
url = https://github.com/vim-airline/vim-airline
|
||||
|
@ -1 +0,0 @@
|
||||
Subproject commit 0b98d7533ad967aac3fc4c1a5b0508dafa8a676f
|
20
vimrc
20
vimrc
@ -1,12 +1,24 @@
|
||||
set mouse=a cb=unnamedplus,unnamed wim=longest,list,full nocompatible backspace=indent,eol,start cmdheight=1 background=dark ru rnu showcmd incsearch listchars=tab:\|\ list cot=menu,longest,preview si cf cpt=".,i,d,t" tf
|
||||
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 cpt=".,w,b,i" tf path+=** aw
|
||||
filetype plugin on
|
||||
filetype indent on
|
||||
syntax on
|
||||
colorscheme default
|
||||
colorscheme delek
|
||||
|
||||
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
||||
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit! <CR>
|
||||
cnoremap install! execute 'silent! write !sudo make install' <CR>
|
||||
function! CleverTab()
|
||||
if strpart( getline('.'), col('.')-2, col('.')-1 ) =~ '\w$'
|
||||
return "\<C-X>\<C-I>"
|
||||
else
|
||||
return "\<Tab>"
|
||||
endif
|
||||
endfunction
|
||||
inoremap <Tab> <C-R>=CleverTab()<CR>
|
||||
autocmd BufWritePre * %s/\s\+$//e
|
||||
|
||||
let g:netrw_banner=0
|
||||
let g:netrw_liststile=3
|
||||
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
let g:clang_c_options = '-std=gnu11'
|
||||
let g:airline#extensions#ale#enabled = 1
|
||||
|
Loading…
Reference in New Issue
Block a user