From 86055ebeb771c69dc75078b5d516ae71162515ee Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Thu, 15 Nov 2018 21:04:21 +0000 Subject: [PATCH] current working directory in tabline --- vimrc | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/vimrc b/vimrc index 7c98370..504f073 100644 --- a/vimrc +++ b/vimrc @@ -847,9 +847,6 @@ endfunction "}}} function! JsIncludeExpr(file)"{{{ " substitute(substitute(v:fname,'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','') - - echom v:fname - return substitute(substitute(a:file,'^[\\~@]\/','./',''),'^[\\~@]','./node_modules/','') endfunction @@ -1167,10 +1164,18 @@ augroup myvimrc augroup END "}}} -" Open qfix after grepping {{{ -augroup qfixopen - autocmd! - autocmd QuickFixCmdPost *grep* botright cwindow +" " Open qfix after grepping {{{ +" augroup qfixopen +" autocmd! +" autocmd QuickFixCmdPost *grep* botright cwindow +" augroup END + +"}}} +"Open quickfix window{{{ +augroup QuickFixAutoload + autocmd! + autocmd QuickFixCmdPost [^l]* nested botright cwindow + autocmd QuickFixCmdPost l* nested botright lwindow augroup END "}}} @@ -1472,7 +1477,8 @@ if exists('+showtabline') endwhile 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'),'---')} %*" return l:customtabline