4

When syntastic or python-mode finds an error in my python file, they create a new column at the left-hand side of the window with flags at the lines where the errors are:

Terminal window showing vim with python-mode syntax error flags and line numbers

This new column not only causes buffer to shift (which I find disruptive), but also prevents my 80-column-width lines from fitting nicely in the window.

Is there a way to have these flags placed in the line number column?

For longer files, I understand these flags would probably replace overwrite the numbers in the lines they appear. I wouldn't have a problem with that.

  • "For longer files, I understand these flags would probably replace overwrite the numbers in the lines they appear. I wouldn't have a problem with that." You could consider not showing the number column or at least making it thinner (set numberwidth=2). I know it doesn't solve your problem, but I figure it doesn't hurt to mention. – Matt Boehm Apr 16 '15 at 16:14
  • Make your window 2 columns wider and permanently enable signs? :) – Collin Grady Apr 16 '15 at 18:00
5

No, this unfortunately isn't possible. The signs column is separate, and always with a width of two cells. From :help signs:

When signs are defined for a file, Vim will automatically add a column of two characters to display them in. When the last sign is unplaced the column disappears again.

You could only configure Syntastic to not use signs at all (via let g:syntastic_enable_signs = 0, thanks @lcd047!).

  • 2
    Disabling signs in syntastic: let g:syntastic_enable_signs = 0. – lcd047 Apr 16 '15 at 14:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.