1
0
mirror of https://github.com/amix/vimrc synced 2025-06-16 01:25:00 +08:00

Added vim-commentary and updarted the plugins.

commentary:
Comment stuff out.  Use `gcc` to comment out a line (takes a count),
`gc` to comment out the target of a motion (for example, `gcap` to
comment out a paragraph), and `gc` in visual mode to comment out the
selection.  That's it.
This commit is contained in:
amix
2014-03-02 14:35:00 +00:00
parent 8c9210dca4
commit 0d8e7370bd
56 changed files with 1330 additions and 873 deletions

View File

@ -74,7 +74,7 @@ ${0}
endsnippet
snippet sec "Section" b
\section{${1:section name}}
\section{${1:section name}}
\label{sec:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3\E)/g}}}
${0}

View File

@ -50,6 +50,9 @@ snippet case
${0}
end
snippet df
def ${1:name}, do: ${2}
snippet def
def ${1:name} do
${0}

View File

@ -749,15 +749,15 @@ snippet summary
snippet sup
<sup>${0}</sup>
snippet table
<table border="${1:0}">
<table>
${0}
</table>
snippet table.
<table class="${1}" border="${2:0}">
<table class="${1}">
${0}
</table>
snippet table#
<table id="${1}" border="${2:0}">
<table id="${1}">
${0}
</table>
snippet tbody

View File

@ -620,6 +620,8 @@ snippet asrj
assert_rjs :${1:replace}, "${0:dom id}"
snippet ass assert_select(..)
assert_select '${1:path}', :${2:text} => '${3:inner_html' ${4:do}
snippet ba
before_action :${0:method}
snippet bf
before_filter :${0:method}
snippet bt