Tabs (or spaces) in snippets

From: Robert <ro....at.web.de>
Date: Sun, 28 Mar 2010 11:23:59 -0700 (PDT)

Hi,

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
snippet

Robert
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