sponsor Vim development Vim logo Vim Book Ad

mystatusinfo.vim : Display Current Tab info on status line

 script karma  Rating 10/5, Downloaded by 741  Comments, bugs, improvements  Vim wiki

created by
vijayandra singh
 
script type
utility
 
description
Multiple file on different tabs becomes confusing when they have same file name, this utility displays current tab info on status line.
 
install details
Just drop it in plugin directory or paste these contents in vimrc file.
set statusline=%{CurTabColor()}\ %<%F%h%m%r%h%w%y\ %{strftime(\"%c\",getftime(expand(\"%:p\")))}%=\ l:%l\,%L\ c:%c%V\ ps:%o\ hex:%b\ %P

fu! CurTabColor()

  let currentTab = tabpagenr()
  let s_line= '(tb=' . currentTab . ')'
  return s_line

endf
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
mystatusinfo.vim 1.10 2012-03-03 7.0 vijayandra singh Initial upload
ip used for rating: 18.97.14.81

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github