mirror of
https://github.com/gryf/pythonhelper.git
synced 2026-04-25 07:01:25 +02:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9f5c2d1dc2 | - |
+10
-4
@@ -336,10 +336,18 @@ function! PHBufferDelete()
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
function! TagInStatusLine()
|
||||||
|
if (exists("w:PHStatusLine"))
|
||||||
|
return w:PHStatusLine
|
||||||
|
else
|
||||||
|
return ""
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
" autocommands binding
|
" autocommands binding
|
||||||
autocmd CursorHold * silent call PHCursorHold()
|
autocmd CursorHold * silent call PHCursorHold()
|
||||||
autocmd BufWinEnter * silent call PHCursorHold()
|
|
||||||
autocmd BufDelete * silent call PHBufferDelete()
|
autocmd BufDelete * silent call PHBufferDelete()
|
||||||
|
|
||||||
" time that determines after how long time of no activity the CursorHold event
|
" time that determines after how long time of no activity the CursorHold event
|
||||||
@@ -352,7 +360,5 @@ highlight User1 gui=bold guifg=cyan guibg=black
|
|||||||
highlight User2 gui=bold guifg=black guibg=red
|
highlight User2 gui=bold guifg=black guibg=red
|
||||||
" the status line will be displayed for every window
|
" the status line will be displayed for every window
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
" set the status variable for the current window
|
|
||||||
let w:PHStatusLine = ''
|
|
||||||
" set the status line to display some useful information
|
" set the status line to display some useful information
|
||||||
set stl=%-f%r\ %2*%m%*\ \ \ \ %1*%{w:PHStatusLine}%*%=[%l:%c]\ \ \ \ [buf\ %n]
|
set stl=%-f%r\ %2*%m%*\ \ \ \ %1*%{TagInStatusLine()}%*%=[%l:%c]\ \ \ \ [buf\ %n]
|
||||||
|
|||||||
Reference in New Issue
Block a user