Vim Tips Wiki
Explore
Main Page
All Pages
Community
Interactive Maps
Community portal
To do
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Vim Tips Wiki
1,649
pages
Explore
Main Page
All Pages
Community
Interactive Maps
Community portal
To do
Editing
Put the indentation level on the status line
Back to page
Edit
Edit source
View history
Talk (0)
Edit Page
Put the indentation level on the status line
We recommend that you
log in
before editing. This will allow other users to leave you a message about your edit, and will let you track edits via your
Watchlist
.
Creating an account
is quick and free.
The edit appears to have already been undone.
Anti-spam check. Do
not
fill this in!
{{review}} {{TipImported |id=477 |previous=476 |next=478 |created=May 20, 2003 |complexity=basic |author=sputnik |version=5.7 |rating=14/12 |category1=Indenting |category2=Options }} Related to [[VimTip303]] In vimrc: <pre> set statusline=<Whatever your status is>\t%{ShowTab()}\ %P fu ShowTab() let TabLevel = (indent('.') / &ts ) if TabLevel == 0 let TabLevel='*' endif return TabLevel endf </pre> ==Comments== <pre> fu ShowTab() return (indent('.') / &ts ) endf </pre> ---- s/ts/sw/ ----
Summary:
Please note that all contributions to the Vim Tips Wiki are considered to be released under the CC-BY-SA
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Navigation
(
view source
)
Template:Review
(
view source
)
Template:TipImported
(
view source
)
Follow on IG
TikTok
Join Fan Lab