Update vim config
This commit is contained in:
parent
cbd598d9df
commit
c7d2ec0b5d
@ -10,7 +10,7 @@
|
||||
" | |_ | | | | \| | | | | | | | | | \| \___ \
|
||||
" | _| | |_| | |\ | |___ | | | | |_| | |\ |___) |
|
||||
" |_| \___/|_| \_|\____| |_| |___\___/|_| \_|____/
|
||||
"
|
||||
"
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
" Rename current file
|
||||
@ -64,7 +64,7 @@ endfunction
|
||||
|
||||
" Test if current buffer is empty
|
||||
function! IsEmptyBuffer()
|
||||
if (bufname('%') == '')
|
||||
if (bufname('%') == '')
|
||||
return 1
|
||||
endif
|
||||
return 0
|
||||
@ -83,14 +83,14 @@ function! BufClose()
|
||||
endfunction
|
||||
|
||||
|
||||
" COC functions
|
||||
"
|
||||
" COC functions {{{
|
||||
" -----
|
||||
|
||||
function! s:check_back_space() abort
|
||||
let col = col('.') - 1
|
||||
return !col || getline('.')[col - 1] =~# '\s'
|
||||
endfunction
|
||||
|
||||
|
||||
function! s:show_documentation()
|
||||
if (index(['vim','help'], &filetype) >= 0)
|
||||
execute 'h '.expand('<cword>')
|
||||
@ -99,5 +99,5 @@ function! s:show_documentation()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
" -----
|
||||
" }}}
|
||||
|
14
vim/vimrc
14
vim/vimrc
@ -388,16 +388,6 @@ function! g:BuffetSetCustomColors()
|
||||
"
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
|
||||
"" BufTabLine {{{
|
||||
"" -----
|
||||
"
|
||||
"hi TabLineSel ctermbg=Red ctermfg=black guibg=Red guifg=black
|
||||
"hi PmenuSel ctermbg=Black ctermfg=Red guibg=Black guifg=Red
|
||||
"
|
||||
"" -----
|
||||
"" }}}
|
||||
|
||||
|
||||
" Buffet {{{
|
||||
" -----
|
||||
|
||||
@ -568,8 +558,8 @@ let g:python3_host_prog = '/usr/bin/python3'
|
||||
" Spaceline {{{
|
||||
" -----
|
||||
|
||||
let g:spaceline_seperate_style= 'slant-fade'
|
||||
" let g:spaceline_colorscheme = 'snazzy'
|
||||
let g:spaceline_seperate_style = 'arrow-fade'
|
||||
" let g:spaceline_colorscheme = ''
|
||||
|
||||
" -----
|
||||
" }}}
|
||||
|
Loading…
Reference in New Issue
Block a user