Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bogdan/dotvim
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan committed Nov 5, 2013
2 parents 8b204d0 + dabb341 commit 351170e
Show file tree
Hide file tree
Showing 44 changed files with 845 additions and 731 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,6 @@
[submodule "bundle/dispatch"]
path = bundle/dispatch
url = gh:tpope/vim-dispatch
[submodule "bundle/file-line"]
path = bundle/file-line
url = https://github.com/bogado/file-line.git
2 changes: 1 addition & 1 deletion bundle/bufexplorer
2 changes: 1 addition & 1 deletion bundle/bundler
Submodule bundler updated 1 files
+32 −10 plugin/bundler.vim
2 changes: 1 addition & 1 deletion bundle/camelcasemotion
2 changes: 1 addition & 1 deletion bundle/cucumber
2 changes: 1 addition & 1 deletion bundle/dispatch
Submodule dispatch updated from b171bb to 6a88e7
2 changes: 1 addition & 1 deletion bundle/endwise
Submodule endwise updated 1 files
+5 −4 plugin/endwise.vim
1 change: 1 addition & 0 deletions bundle/file-line
Submodule file-line added at 06d6c0
2 changes: 1 addition & 1 deletion bundle/gist
Submodule gist updated from f42cef to 917056
2 changes: 1 addition & 1 deletion bundle/git
Submodule git updated 1 files
+1 −0 .gitignore
2 changes: 1 addition & 1 deletion bundle/haml
2 changes: 1 addition & 1 deletion bundle/jade
Submodule jade updated from 35ce7b to fb2934
2 changes: 1 addition & 1 deletion bundle/markdown
Submodule markdown updated 1 files
+6 −3 syntax/markdown.vim
2 changes: 1 addition & 1 deletion bundle/mustache
Submodule mustache updated 2 files
+37 −1 README.md
+13 −0 ftplugin/mustache.vim
2 changes: 1 addition & 1 deletion bundle/nerdtree
2 changes: 1 addition & 1 deletion bundle/rake
Submodule rake updated 1 files
+5 −1 plugin/rake.vim
2 changes: 1 addition & 1 deletion bundle/rvm
Submodule rvm updated from cef207 to 9ffa92
2 changes: 1 addition & 1 deletion bundle/slim
Submodule slim updated from 7bb64e to 68a77a
2 changes: 1 addition & 1 deletion bundle/surround
Submodule surround updated 1 files
+9 −0 plugin/surround.vim
2 changes: 1 addition & 1 deletion bundle/syntastic
2 changes: 1 addition & 1 deletion bundle/vim-fugitive
2 changes: 1 addition & 1 deletion bundle/vim-javascript
2 changes: 1 addition & 1 deletion bundle/vim-liquid
Submodule vim-liquid updated 1 files
+2 −1 syntax/liquid.vim
2 changes: 1 addition & 1 deletion bundle/vim-rails
Submodule vim-rails updated 1 files
+12 −13 autoload/rails.vim
2 changes: 1 addition & 1 deletion bundle/vimoutliner
Submodule vimoutliner updated 1 files
+0 −1 doc/vo_readme.txt
2 changes: 1 addition & 1 deletion bundle/webapi
2 changes: 1 addition & 1 deletion bundle/yankring
2 changes: 1 addition & 1 deletion gvimrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ if has("gui_macvim")
else
set guifont="Inconsolate Medium 12"
endif
set guioptions=aegitc
set guioptions=egitc
set guipty
13 changes: 6 additions & 7 deletions macros/rails.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ command! -nargs=0 RVschema :RVfind db/schema.rb



Rnavcommand jade app/jades/ -suffix=.jade
Rnavcommand service app/services/ -suffix=.rb
"Rnavcommand service app/services/ -suffix=.rb
Rnavcommand worker app/workers/ -suffix=.rb
Rnavcommand factory spec/factories/ -suffix=.rb
Rnavcommand task lib/tasks -suffix=.rake
"Rnavcommand factory spec/factories/ -suffix=.rb
"Rnavcommand task lib/tasks -suffix=.rake
Rnavcommand shared spec/traits -suffix=.rb
Rnavcommand grid app/grids -suffix=.rb
"Rnavcommand grid app/grids -suffix=.rb
Rnavcommand trait app/traits -suffix=.rb
Rnavcommand yml config -suffix=.yml
"Rnavcommand yml config -suffix=.yml
Rnavcommand acceptance spec/acceptance -suffix=.rb

let g:rake_ctags_arguments='--regex-ruby="/^[ \t]*(attr_accessor|has_many|belongs_to|has_one|scope|alias|alias_method|named_scope)[ \t(]+:([A-Za-z_]+).*$/\2/f,function/"'
let g:rake_ctags_arguments='--regex-ruby="/^[ \t]*(trait|attr_accessor|has_many|belongs_to|has_one|scope|alias|alias_method|named_scope)[ \t(]+:([A-Za-z_]+).*$/\2/f,function/"'
let g:rails_ctags_arguments='--exclude='.RailsRoot().'/tmp --exclude='.RailsRoot().'/public/system --exclude='.RailsRoot().'/public/uploads --languages=-javascript --langdef=coffee --langmap=coffee:.coffee --regex-coffee="/^class ([A-Za-z.]+)( extends [A-Za-z.]+)?$/\1/c,class/" --regex-coffee="/^[ \t]*@?([A-Za-z.]+):.*[-=]>.*$/\1/f,function/" --regex-coffee="/^[ \t]*([A-Za-z.]+)[ \t]+=.*[-=]>.*$/\1/f,function/" --regex-coffee="/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/" '.g:rake_ctags_arguments
3 changes: 3 additions & 0 deletions snippets/all.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ snippet * "*"
* ${1}
*/
endsnippet
snippet cl "cl"
console.log(${1:"${2}"});
endsnippet
snippet t "t"
<${1:}/>
endsnippet
Expand Down
4 changes: 4 additions & 0 deletions snippets/eruby.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,7 @@ snippet unlesse "unlesse"
<% else %>
<% end %>
endsnippet
snippet dbg "debugger"
<% require 'debugger' -%>
<% debugger -%>
endsnippet
10 changes: 8 additions & 2 deletions snippets/haml.snippets
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
snippet dbg "dbg"
- require 'debugger'
- debugger
endsnippet
snippet conf "conf"
- content_for :${1:yield_label_in_layout} do
${2}
Expand Down Expand Up @@ -86,7 +90,7 @@ endsnippet
snippet jsit "jsit"
= javascript_include_tag "${1}"
endsnippet
snippet k "k"
snippet k "k" w
:${1} => ${2}
endsnippet
snippet lt "lt"
Expand All @@ -113,5 +117,7 @@ endsnippet
snippet unl "unl"
- unless ${1}
${2}

endsnippet
snippet img "img"
%img{src: "${1}"}
endsnippet
8 changes: 8 additions & 0 deletions snippets/html.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,11 @@ endsnippet
snippet textarea "textarea"
<textarea name="${1:Name}" rows="${2:8}" cols="${2:40}">${3}</textarea>
endsnippet

snippet slide "slide"
<section data-markdown>
<script type="text/template">
$0
</script>
</section>
endsnippet
15 changes: 5 additions & 10 deletions snippets/javascript.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,10 @@ snippet attrm "attrm"
${1:obj}.attr({'${2:attr1}': '${3:value1}', '${4:attr2}': '${5:value2}'})${6}
endsnippet
snippet bef "bef"
before_each(function(){
beforeEach(function(){
${1}
});${2}
endsnippet
snippet before "before"
${1:obj}.before('${2:Some text <b>and bold!</b>}')${3}
endsnippet
snippet bind "bind"
${1:obj}.bind('${2:event name}', function(${3:event}) {
${4:// Act on the event}
Expand All @@ -141,9 +138,7 @@ endsnippet
snippet children "children"
${1:obj}.children('${2:selector expression}')${3}
endsnippet
snippet cl "cl"
console.log(${1});
endsnippet

snippet click "click"
click(function(event) {
${1:event.preventDefault();}
Expand Down Expand Up @@ -195,7 +190,7 @@ ${1:obj}.error(function() {
${2:// Act on the event}
});
endsnippet
snippet f "f"
snippet f "f" w
function(${1}) {
${2}
}
Expand Down Expand Up @@ -241,8 +236,8 @@ focus(function() {
});
endsnippet
snippet for "for"
for (var <+i+>=0; <+i+> < <+<+Things+>.length+>; <+i+>++) {
<+<+Things+>[<+i+>]+>
for (var ${1}=0; $1 < ${2}.length; $1++) {
${3}
};
endsnippet
snippet get "get"
Expand Down
37 changes: 37 additions & 0 deletions snippets/liquid.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,40 @@ tags:
- ${3:two}
---
endsnippet

snippet ct "{% ct '' %}" w
{% ct '${1:title}' %}
endsnippet

snippet - "{% _ %}" i
{% ${1} %}
endsnippet

snippet = "{{ }}" i
{{ ${1} }}
endsnippet

snippet p "p=''" w
${1:class}="${2}"
endsnippet

snippet f "function() {}" w
function(${1}) {
${2}
}
endsnippet

snippet if "if" w
{% if ${1} %}
{% endif %}
endsnippet
snippet ife "if else" w
{% if ${1} %}
${2}
{% else %}
${3}
{% endif %}
endsnippet
snippet el "else" w
{% else %}
endsnippet
Loading

0 comments on commit 351170e

Please sign in to comment.