Logging to stdout and bzr selftest
Nikolai Weibull
mailing-lists.bazaar-ng at rawuncut.elitemail.org
Mon Sep 12 11:47:41 BST 2005
Martin Pool wrote:
> On 12/09/05, Robert Collins <robertc at robertcollins.net> wrote:
> I don't mind them as long as they're reasonably small, and people
> agree on what's in them. Certainly much better than inconsistent
> style. If the vim heads think this is right then maybe we should add
> it to all files?
> > I have the following in my ~/.vimrc to handle non-modeline marked files.
> > autocmd BufRead *.py set sts=4
> > autocmd BufRead *.py set sta
> > autocmd BufRead *.py set et
> > autocmd BufRead *.py set ai
> > autocmd BufRead *.py set shiftwidth=4
> > autocmd BufNewFile,BufRead *.py match Error /^[[:tab:]]\+/
This can equally well go into ~/.vim/ftplugin/python.vim or, for
project-specific stuff, perhaps ~/.vim/filetype.vim. For example, to
set a given "style" for python files in a local copy of the bzr
repository (in a directory called 'bzr.dev'), add the following line to
~/.vim/filetype.vim
augroup filetypedetect " Add this only if it isn't already in the file
au BufNewFile,BufRead ~/bzr.dev/{*.py,**/*.py} setlocal sts=4 sw=4 et
augroup END " Add this only if it isn't already in the file
(The brace-hack is needed, as ** needs at least one directory to match
when doing autocommands...I've talked to Bram about it, but it is yet
to be fixed.),
nikolai
--
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
More information about the bazaar
mailing list