current working directory in tabline
This commit is contained in:
		
							parent
							
								
									4788857103
								
							
						
					
					
						commit
						86055ebeb7
					
				
							
								
								
									
										20
									
								
								vimrc
								
								
								
								
							
							
						
						
									
										20
									
								
								vimrc
								
								
								
								
							| 
						 | 
					@ -847,9 +847,6 @@ endfunction
 | 
				
			||||||
"}}}
 | 
					"}}}
 | 
				
			||||||
function! JsIncludeExpr(file)"{{{
 | 
					function! JsIncludeExpr(file)"{{{
 | 
				
			||||||
  " substitute(substitute(v:fname,'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','')
 | 
					  " substitute(substitute(v:fname,'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','')
 | 
				
			||||||
 | 
					 | 
				
			||||||
  echom v:fname
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  return substitute(substitute(a:file,'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','')
 | 
					  return substitute(substitute(a:file,'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
endfunction
 | 
					endfunction
 | 
				
			||||||
| 
						 | 
					@ -1167,10 +1164,18 @@ augroup myvimrc
 | 
				
			||||||
augroup END
 | 
					augroup END
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"}}}
 | 
					"}}}
 | 
				
			||||||
" Open qfix after grepping {{{
 | 
					" " Open qfix after grepping {{{
 | 
				
			||||||
augroup qfixopen
 | 
					" augroup qfixopen
 | 
				
			||||||
 | 
					"   autocmd!
 | 
				
			||||||
 | 
					"   autocmd QuickFixCmdPost *grep* botright cwindow
 | 
				
			||||||
 | 
					" augroup END
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					"}}}
 | 
				
			||||||
 | 
					"Open quickfix window{{{
 | 
				
			||||||
 | 
					augroup QuickFixAutoload
 | 
				
			||||||
    autocmd!
 | 
					    autocmd!
 | 
				
			||||||
  autocmd QuickFixCmdPost *grep* botright cwindow
 | 
					    autocmd QuickFixCmdPost [^l]* nested botright cwindow
 | 
				
			||||||
 | 
					    autocmd QuickFixCmdPost l* nested botright lwindow
 | 
				
			||||||
augroup END
 | 
					augroup END
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"}}}
 | 
					"}}}
 | 
				
			||||||
| 
						 | 
					@ -1472,7 +1477,8 @@ if exists('+showtabline')
 | 
				
			||||||
    endwhile
 | 
					    endwhile
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    let l:customtabline .= '%T%#TabLineFill#%='
 | 
					    let l:customtabline .= '%T%#TabLineFill#%='
 | 
				
			||||||
    let l:customtabline .= '%#TabLineItemSel# %{fugitive#statusline()}%   '
 | 
					    let l:customtabline .= '%#TabLineItem# %{getcwd()}%   '
 | 
				
			||||||
 | 
					    let l:customtabline .= '%#TabLineItem# %{fugitive#statusline()}%   '
 | 
				
			||||||
    let l:customtabline .= "%#TabLineItemSel# %{ObsessionStatus(fnamemodify(v:this_session,':t'),'---')} %*"
 | 
					    let l:customtabline .= "%#TabLineItemSel# %{ObsessionStatus(fnamemodify(v:this_session,':t'),'---')} %*"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return l:customtabline
 | 
					    return l:customtabline
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue