Skip to content

Instantly share code, notes, and snippets.

@darkoperator
Created July 26, 2011 00:47
Show Gist options
  • Save darkoperator/1105656 to your computer and use it in GitHub Desktop.
Save darkoperator/1105656 to your computer and use it in GitHub Desktop.
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1
autocmd FileType ruby,eruby let g:rubycomplete_include_object = 1
autocmd FileType ruby,eruby let g:rubycomplete_include_objectspace = 1
autocmd CursorMoved * silent! exe printf('match IncSearch /\<%s\>/', expand('<cword>'))
set nu " Set line numbers
set nocompatible " We're running Vim, not Vi!
syntax on " Enable syntax highlighting
filetype on " Enable filetype detection
filetype indent on " Enable filetype-specific indenting
filetype plugin on " Enable filetype-specific plugins
au BufEnter *.nasl setfiletype nasl
au BufEnter *.inc setfiletype nasl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment