Too many Tabs with Python Code

Bug #1265112 reported by James Pace on 2013-12-31
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

When using the UltiSnips, the automatically placed code bodies are tabbed too many times over. For example:

I type in:

for item in iterable:

Expected Output:
for item in iterable:

This problem doesn't happen when editing, for example, C code.

Relevant piece of vimrc:
set autoindent
set tabstop=4
set backspace=indent,eol,start

I'm also using supertab.

SirVer (sirver) wrote :

Cannot reproduce and the snippet is correct:

check also
set expandtab
set sts
set sw

I guess the problem lays in inconsistent configurations with those.

Changed in ultisnips:
status: New → Incomplete
James Pace (pacejimmy) wrote :

I needed to add 'set sw=4' to my configuration. Thank you for your help and sorry for the inconvenience.

I'll mark this as invalid if that's ok since it was an error with my configuration and Ultisnips was working fine.

James Pace (pacejimmy) wrote :

Error was in user's configuration.

Changed in ultisnips:
status: Incomplete → Invalid
SirVer (sirver) wrote :

no worries. glad that it was sorted out.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers