About: Statusline tab level ruler   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

The t* on the ruler means I am not. But t3 means the cursor is on tablevel 3 ~vimrc ----------------------- My Ruler ------------------------ r4,c13,t3 ~vimrc ----------------------- My Ruler ------------------------ r4,c14,t* If you want to change a tab level you can drag or push the first character of a line to a desired tab level (more on that later). This ruler replacement will let you know where you are, whether you like to use space tabs (see VimTip12) or regular tabs. My function is set to four space tabs stops and only goes 9 levels but can be easily modified.

AttributesValues
rdfs:label
  • Statusline tab level ruler
rdfs:comment
  • The t* on the ruler means I am not. But t3 means the cursor is on tablevel 3 ~vimrc ----------------------- My Ruler ------------------------ r4,c13,t3 ~vimrc ----------------------- My Ruler ------------------------ r4,c14,t* If you want to change a tab level you can drag or push the first character of a line to a desired tab level (more on that later). This ruler replacement will let you know where you are, whether you like to use space tabs (see VimTip12) or regular tabs. My function is set to four space tabs stops and only goes 9 levels but can be easily modified.
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 302(xsd:integer)
Author
  • TVIM
Complexity
  • basic
Created
  • 2002(xsd:integer)
ID
  • 303(xsd:integer)
NEXT
  • 305(xsd:integer)
Rating
  • -1(xsd:integer)
abstract
  • The t* on the ruler means I am not. But t3 means the cursor is on tablevel 3 ~vimrc ----------------------- My Ruler ------------------------ r4,c13,t3 ~vimrc ----------------------- My Ruler ------------------------ r4,c14,t* If you want to change a tab level you can drag or push the first character of a line to a desired tab level (more on that later). This ruler replacement will let you know where you are, whether you like to use space tabs (see VimTip12) or regular tabs. My function is set to four space tabs stops and only goes 9 levels but can be easily modified. Actually I just wanted to learn how to use a function in my _vimrc and this was my first attempt. Add this to your _vimrc: set laststatus=2 "This makes sure the ruler shows. See help laststatus set statusline=%f\ ---------\ My\ Ruler\ ----------\ r%l,c%c,t%{ShowTab()} "See help statusline (I toggle between 12 helpful rulers -- more on that later) fu ShowTab() let TabLev='*' let Col=(col(".")) if Col == 1 | let TabLev='0' | en if Col == 5 | let TabLev='1' | en if Col == 9 | let TabLev='2' | en if Col ==13 | let TabLev='3' | en if Col ==17 | let TabLev='4' | en if Col ==21 | let TabLev='5' | en if Col ==25 | let TabLev='6' | en if Col ==29 | let TabLev='7' | en if Col ==33 | let TabLev='8' | en if Col ==37 | let TabLev='9' | en return TabLev endf "The ruler (statusline) shows a t* unless you are on col 1,5,9,13,... This function ShowTab() gets called and updates the ruler with every cursor move but it does not slow things down as I type. Perhaps a speed typist may complain.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software