Tabs (or spaces) in snippets

From: Robert <>
Date: Sun, 28 Mar 2010 11:23:59 -0700 (PDT)


does anyone know if there is an easy way to get a "tab" inserted in a
snippet that respects that currently set tab size and type?

tab = "\t",
Will be alway be a tab stop even if spaces are set.

btab = "if %1:\n%(buffer:tab())",
indents the entire block one tab (respecting the current setting)

atab = "if %1:\n%2(#(buffer:tab())) #end"
adds a tab (respecting the current setting) add the end of the entire

Received on Sun 28 Mar 2010 - 14:23:59 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:41:40 EST