Logging to stdout and bzr selftest

John A Meinel john at arbash-meinel.com
Sat Sep 10 20:52:05 BST 2005


Michael Ellerman wrote:
> On Sat, 10 Sep 2005 08:09, Brian M. Carlson wrote:
>
>>BTW, sorry about the modeline, but vim is not currently set up to do
>>PEP-8 compliant code, and that's the only way that it will.
>
>
> Try this in your ~/.vimrc:
> autocmd FileType python set tabstop=4 shiftwidth=4 expandtab softtabstop=4
>
> I also like these for highlighting useless white space:
> highlight RedundantWhitespace ctermbg=red guibg=red
> match RedundantWhitespace /\s\+$\| \+\ze\t/
>
> cheers
>

Personally, I put this in my ~/.vim/filetype.vim file:
" Setup file editing modes for bzr code.
au BufNewFile,BufRead **/dev/bzr/**/*.py setlocal ts=8 sts=4 sw=4 et ai si

You might do something similar to this and combine it with the FileType
python, I just do it this way, so that when I edit *bzr* sources, it
sets up my settings correctly, but when I edit other sources, they can
be setup to my preferred method (using all tabs, ts=4).

John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050910/325db7c2/attachment.pgp 


More information about the bazaar mailing list