Skip to content

Commit

Permalink
vim updates, elixir plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
bkudria committed Apr 21, 2015
1 parent 1158a9d commit b3c35ef
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
15 changes: 14 additions & 1 deletion .ctags-options
Expand Up @@ -34,4 +34,17 @@
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=.*->.*$/\1/f,function/
--regex-coffee=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/

--languages=ruby,objectivec,js,markdown,coffee,html,java,perl,php,python,sh,vim
--langdef=elixir
--langmap=elixir:.ex.exs
--regex-Elixir=/^[ \t]*def(p?)[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\2/f,functions,functions (def ...)/
--regex-Elixir=/^[ \t]*defcallback[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\1/c,callbacks,callbacks (defcallback ...)/
--regex-Elixir=/^[ \t]*defdelegate[ \t]+([a-z_][a-zA-Z0-9_?!]*)/\1/d,delegates,delegates (defdelegate ...)/
--regex-Elixir=/^[ \t]*defexception[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/e,exceptions,exceptions (defexception ...)/
--regex-Elixir=/^[ \t]*defimpl[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/i,implementations,implementations (defimpl ...)/
--regex-Elixir=/^[ \t]*defmacro(p?)[ \t]+([a-z_][a-zA-Z0-9_?!]*)\(/\2/a,macros,macros (defmacro ...)/
--regex-Elixir=/^[ \t]*defmacro(p?)[ \t]+([a-zA-Z0-9_?!]+)?[ \t]+([^ \tA-Za-z0-9_]+)[ \t]*[a-zA-Z0-9_!?!]/\3/o,operators,operators (e.g. "defmacro a <<< b")/
--regex-Elixir=/^[ \t]*defmodule[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/m,modules,modules (defmodule ...)/
--regex-Elixir=/^[ \t]*defprotocol[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\2/p,protocols,protocols (defprotocol...)/
--regex-Elixir=/^[ \t]*defrecord(p?)[ \t]+([A-Z][a-zA-Z0-9_]*\.)*([A-Z][a-zA-Z0-9_?!]*)/\3/r,records,records (defrecord...)/

--languages=ruby,objectivec,js,markdown,coffee,html,java,perl,php,python,sh,vim,elixir
24 changes: 15 additions & 9 deletions .vim/packages.vim
Expand Up @@ -42,13 +42,15 @@ NeoBundle 'aaronjensen/vim-command-w', {'depends' : 'vim-scripts/bufkill.vim'}
NeoBundle 'fisadev/vim-ctrlp-cmdpalette'

NeoBundle 'scrooloose/syntastic'
let g:syntastic_check_on_open = 1
let g:syntastic_aggregate_errors = 1
let g:syntastic_ruby_checkers = ['mri']
let g:syntastic_error_symbol = 'x'
let g:syntastic_warning_symbol = '!'
let g:syntastic_style_error_symbol = '>'
let g:syntastic_style_warning_symbol = '~'
let g:syntastic_check_on_open = 1
let g:syntastic_aggregate_errors = 1
let g:syntastic_enable_elixir_checker = 1
let g:syntastic_ruby_checkers = ['mri']
let g:syntastic_elixir_checkers = ['elixir']
let g:syntastic_error_symbol = 'x'
let g:syntastic_warning_symbol = '!'
let g:syntastic_style_error_symbol = '>'
let g:syntastic_style_warning_symbol = '~'
if exists("b:ismacruby") && b:is_macruby
let b:syntastic_ruby_checkers = ['macruby']
endif
Expand Down Expand Up @@ -95,6 +97,9 @@ cabbrev s <c-r>=(getcmdtype()==':' && getcmdpos()==1 ? 'S' : 's')<CR>
NeoBundle 'tpope/vim-rbenv'

NeoBundle 'Raimondi/delimitMate'
au FileType elixir let b:delimitMate_nesting_quotes = ['"']


NeoBundle 'spiiph/vim-space'
NeoBundle 'majutsushi/tagbar'
let g:tagbar_compact = 1
Expand Down Expand Up @@ -192,8 +197,6 @@ endif
let g:neocomplete#force_omni_input_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::'
let g:neocomplete#force_omni_input_patterns.java = '\k\.\k*'

NeoBundle 'aaronjensen/vim-recentcomplete'

NeoBundle 'terryma/vim-multiple-cursors'

NeoBundle 'b4winckler/vim-objc'
Expand Down Expand Up @@ -292,6 +295,9 @@ let g:interestingWordsGUIColors = [
\ '#859900'
\ ]

NeoBundle 'elixir-lang/vim-elixir'
NeoBundle 'mattreduce/vim-mix'

call neobundle#end()
filetype plugin indent on
NeoBundleCheck

0 comments on commit b3c35ef

Please sign in to comment.