Skip to content

Instantly share code, notes, and snippets.

@rinx
Last active December 14, 2015 03:09
Show Gist options
  • Save rinx/5018810 to your computer and use it in GitHub Desktop.
Save rinx/5018810 to your computer and use it in GitHub Desktop.
ftplugin for vim
"Ruby
setl autoindent
setl softtabstop=2
setl tabstop=2
setl shiftwidth=2
setl smarttab
setl expandtab
setl smartindent cinwords=if,elsif,else,unless,for,while,try,rescue,ensure,def,class,module
"neocomplcache omni patterns
if !exists('g:neocomplcache_omni_patterns')
let g:neocomplcache_omni_patterns = {}
endif
let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
"iabbrev
iab shb #!/usr/bin/env ruby
iab enc # -*- coding: utf-8 -*-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment