總算可以簡單偵測分頁關閉,發生順序是 TabLeave
→ TabClosed
→ TabEnter
,在 TabClosed
的時候就能取得新的 tabpagenr('$')
了。
簡化 Vim 切換至最後選取的 tab 功能:
封存
總算可以簡單偵測分頁關閉,發生順序是 TabLeave
→ TabClosed
→ TabEnter
,在 TabClosed
的時候就能取得新的 tabpagenr('$')
了。
簡化 Vim 切換至最後選取的 tab 功能:
if exists('##TabClosed') function! LastTab(act) let lt = g:lasttab if a:act ==# 'TabLeave' let lt.prevLeave = lt.leave let lt.leave = tabpagenr() elseif a:act ==# 'TabClosed' let lt.leave = lt.prevLeave elseif a:act ==# 'switch' let to = lt.leave if to == tabpagenr() echo 'Already on last tab.' else execute "tabnext " . lt.leave endif endif endfunction if !exists('g:lasttab') let g:lasttab = {'leave':1, 'prevLeave':1} endif autocmd TabLeave * call LastTab('TabLeave') autocmd TabClosed * call LastTab('TabClosed') nnoremap <silent> <LocalLeader>t :call LastTab('switch')<CR> inoremap <silent> <LocalLeader>t <C-\><C-N>:call LastTab('switch')<CR> endif
神奇的解法!
取得BlogId >> data:blog.blogId
不妙,我也沒留底了
大大
檔案已失聯,跪求檔案
Yeah it really works but its better to keep a towel or any kind of cloth below the stained cloth nor the stain will be absorbed by the other side of that cloth.And it really doesn't matter whether the stain is of 1 week or 1 month.
Alec is awesome! I fix nearly everything that I possibly can in my home and use youtube almost exclusively. Most posts are a constant ramble and yammering and words filling dead air space. It 's unnecessary and confusing. Alec speaks only when necessary and demonstrates each fix quickly and accurately. Camera person is completely tuned in to every move Alec makes. Thanks! Just spot on