News for hackers. Stuff that matters.
Re:Reworder – A tale of learning Python and launching an app... by bwooceli on Tuesday October 26, 2010 @09:17PM (#1836855)
Could not agree more!!!! If you're a vimmy, be sure to add this friendly helper into your .vimrc

:set tabstop=4

:set shiftwidth=4

:set expandtab

Re:Reworder – A tale of learning Python and launching an app... by mattdawson on Wednesday October 27, 2010 @12:25AM (#1837248)
Or, if you only want to use these settings for python files, create a ~/.vim/ftplugin/python.vim file. Mine looks like this:

  setlocal tabstop=4
  setlocal softtabstop=4
  setlocal shiftwidth=4
  setlocal textwidth=80
  setlocal smarttab
  setlocal expandtab
  setlocal smartindent
Re:Reworder – A tale of learning Python and launching an app... by whimsy on Wednesday October 27, 2010 @05:27AM (#1837884)
Today I learned...

Thanks.

It looks like ftplugin is a native vim extension - is that correct?

Re:Reworder – A tale of learning Python and launching an app... by mattdawson on Thursday October 28, 2010 @12:45PM (#1843627)
I'm a bit late in responding, but yes, it's a native vim extension. To make sure your plugins are loaded automatically, put

  filetype plugin on
in your .vimrc.