Vi tweaking for Dreamwidth
Jan. 6th, 2010 08:04 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Well, just a brief post in the "I hope someone finds this helpful" category.
I'm using Vi (or more accurately Vim) to edit code on DW. And in the past few weeks of doing so I've added some dw-specific tweaks to my .exrc file beyond the usual spam that's there. So here they are, in case anyone else wants to use them:
I'm using Vi (or more accurately Vim) to edit code on DW. And in the past few weeks of doing so I've added some dw-specific tweaks to my .exrc file beyond the usual spam that's there. So here they are, in case anyone else wants to use them:
# To adhere to the programming guidelines, tab size and spaces as tabs.
set tabstop=4
set shiftwidth=4
# Just for convenience's sake. Not really DW specific but some DW Vi stuff depends on it.
syntax enable
set cindent
color delek
# Getting Vim to recognize bml files as perl files for purposes of syntax highlighting.
filetype on
au BufNewFile,BufRead *.bml set filetype=perl