1
0
mirror of https://github.com/amix/vimrc synced 2025-07-09 02:25:00 +08:00

auto build command copy to clipboard

This commit is contained in:
plrectco
2019-12-09 16:46:33 -08:00
parent 6b01a301dd
commit 5ada6ec042
2 changed files with 41 additions and 34 deletions

View File

@ -141,32 +141,6 @@ let g:lightline = {
\ 'subseparator': { 'left': ' ', 'right': ' ' }
\ }
function! GetSmartFilePath()
let path = expand('%:p:h')
" If in google3 path, display the client name and the absolute path
if matchstr(path, 'google3') == 'google3'
let output = ''
let subs = split(path, '/')
let add_to_output = 0
let prev_s = ''
for s in subs
if add_to_output == 1
let output .= '/'
let output .= s
endif
if s == 'google3'
let output .= prev_s
let output .= ':'
let add_to_output = 1
endif
let prev_s = s
endfor
return output
else
return path
endif
endfunction
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Vimroom
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""