File: ruby.vim

package info (click to toggle)
vim 6.1.018-1woody1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 18,144 kB
  • ctags: 13,404
  • sloc: ansic: 171,869; makefile: 2,680; perl: 1,022; awk: 700; sh: 546; csh: 6
file content (21 lines) | stat: -rw-r--r-- 577 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
" Vim filetype plugin
" Language:     Ruby
" Maintainer:   Matt Armstrong <matt@lickey.com>
" Last Change:  2001/03/24
" URL: http://www.lickey.com/env/vim/ftplugin/ruby/ruby.vim

" Only do this when not done yet for this buffer
if (exists("b:did_ftplugin"))
    finish
endif
let b:did_ftplugin = 1

" Set 'formatoptions' to break comment lines but not other lines, and insert
" the comment leader when hitting <CR> or using "o".
setlocal fo-=t fo+=croql

" Format comments to be up to 78 characters long
setlocal tw=78

" Set shift width to 2, the Ruby standard
setlocal sw=2