Skip to content

Commit

Permalink
markdown includes html now. cleaned up rails.vim shortcuts so command…
Browse files Browse the repository at this point in the history
…-t is faster
  • Loading branch information
ryanjm committed Nov 20, 2012
1 parent 4b7a455 commit 4fae5f6
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 76 deletions.
5 changes: 4 additions & 1 deletion oh-my-zsh/custom/plugins/rbates/rbates.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ export EDITOR='mate -w'
unsetopt correct_all

# a few aliases I like
alias gs='git status'
alias gs='git status -sb'
alias gd='git diff'
alias tlog='tail -f log/development.log'
alias git-amend='git commit --amend -C HEAD'
alias git-undo='git reset --soft HEAD^'
alias git-count='git shortlog -sn'

# add plugin's bin directory to path
export PATH="$(dirname $0)/bin:$PATH"
Empty file.
2 changes: 2 additions & 0 deletions vim/after/plugin/snipMate.vim
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ call GetSnippets(snippets_dir, '_') " Get global snippets

" Add html to erb
call ExtractSnipsFile(g:snippets_dir.'html.snippets','eruby')
" Add html to markdown
call ExtractSnipsFile(g:snippets_dir.'html.snippets','markdown')

au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif
" vim:noet:sw=4:ts=4:ft=vim
7 changes: 7 additions & 0 deletions vim/snippets/html.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ snippet hgroup.
</hgroup>
snippet hr
<hr />${1}
snippet hr.
<hr class="${1}" />${2}
snippet html
<html>
${1}
Expand Down Expand Up @@ -721,6 +723,8 @@ snippet source
<source src="${1}" type="${2}" media="${3}" />
snippet span
<span>${1}</span>
snippet span.
<span class="${1}">${2}</span>${3}
snippet strong
<strong>${1}</strong>
snippet style
Expand Down Expand Up @@ -817,3 +821,6 @@ snippet video
<video src="${1} height="${2}" width="${3}" preload="${5:none}" autoplay="${6:autoplay}>${7}</video>${8}
snippet wbr
<wbr />${1}
snippet jquery
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

66 changes: 2 additions & 64 deletions vim/snippets/markdown.snippets
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Markdown

# Includes octopress (http://octopress.org/) snippets
# Includes html.snippets

snippet [
[${1:text}](http://${2:address} "${3:title}")
[${1:text}](${2:address} "${3:title}")
snippet [*
[${1:link}](${2:`@*`} "${3:title}")${4}

Expand All @@ -22,66 +23,3 @@ snippet ![:
snippet ![:*
![${1:id}]: ${2:`@*`} "${3:title}"

snippet ===
`repeat('=', strlen(getline(line(".") - 1)))`

${1}
snippet ---
`repeat('-', strlen(getline(line(".") - 1)))`

${1}

snippet blockquote
{% blockquote %}
${1:quote}
{% endblockquote %}

snippet blockquote-author
{% blockquote ${1:author}, ${2:title} %}
${3:quote}
{% endblockquote %}

snippet blockquote-link
{% blockquote ${1:author} ${2:URL} ${3:link_text} %}
${4:quote}
{% endblockquote %}

snippet bt-codeblock-short
```
${1:code_snippet}
```

snippet bt-codeblock-full
``` ${1:language} ${2:title} ${3:URL} ${4:link_text}
${5:code_snippet}
```

snippet codeblock-short
{% codeblock %}
${1:code_snippet}
{% endcodeblock %}

snippet codeblock-full
{% codeblock ${1:title} lang:${2:language} ${3:URL} ${4:link_text} %}
${5:code_snippet}
{% endcodeblock %}

snippet gist-full
{% gist ${1:gist_id} ${2:filename} %}

snippet gist-short
{% gist ${1:gist_id} %}

snippet img
{% img ${1:class} ${2:URL} ${3:width} ${4:height} ${5:title_text} ${6:alt_text} %}

snippet youtube
{% youtube ${1:video_id} %}

# The quote should appear only once in the text. It is inherently part of it.
# See http://octopress.org/docs/plugins/pullquote/ for more info.

snippet pullquote
{% pullquote %}
${1:text} {" ${2:quote} "} ${3:text}
{% endpullquote %}
2 changes: 1 addition & 1 deletion vim/snippets/ruby.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ snippet when
when ${1:condition}
${2}
snippet def
def ${1:method_name}
def ${1:initialize}
${2}
end
snippet deft
Expand Down
4 changes: 4 additions & 0 deletions vim/spell/en.utf-8.add
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
OrangeQC
Instapaper
jQuery
javascript
Binary file added vim/spell/en.utf-8.add.spl
Binary file not shown.
17 changes: 9 additions & 8 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ map <Leader>R :e doc/README_FOR_APP<CR>
map <Leader>m :Rmodel
map <Leader>c :Rcontroller
map <Leader>v :Rview
map <Leader>u :Runittest
map <Leader>f :Rfunctionaltest
map <Leader>tm :RTmodel
map <Leader>tc :RTcontroller
map <Leader>tv :RTview
map <Leader>tu :RTunittest
map <Leader>tf :RTfunctionaltest
" map <Leader>u :Runittest
" map <Leader>f :Rfunctionaltest
" map <Leader>tm :RTmodel
" map <Leader>tc :RTcontroller
" map <Leader>tv :RTview
" map <Leader>tu :RTunittest
" map <Leader>tf :RTfunctionaltest
map <Leader>sm :RSmodel
map <Leader>sc :RScontroller
map <Leader>sv :RSview
Expand Down Expand Up @@ -151,9 +151,10 @@ nmap <F1> <Esc>
imap <C-F> <C-R>=expand("%")<CR>
" Maps autocomplete to tab
imap <Tab> <C-N>
" imap <Tab> <C-N>

imap <C-L> <Space>=><Space>
imap <D-CR> <C-O>o
" Display extra whitespace
" set list listchars=tab:»·,trail:·
Expand Down
5 changes: 3 additions & 2 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ ZSH_THEME="rbates"
DISABLE_AUTO_UPDATE="true"
DISABLE_LS_COLORS="true"

plugins=(git bundler brew gem rbates)
plugins=(git bundler brew gem rbates ryanjm)

export PATH="/usr/local/bin:/Users/ryanjm/code/scripts:$PATH"

source $ZSH/oh-my-zsh.sh

# for Homebrew installed rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi

0 comments on commit 4fae5f6

Please sign in to comment.