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:
@ -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}
|
||||
|
@ -50,6 +50,9 @@ snippet case
|
||||
${0}
|
||||
end
|
||||
|
||||
snippet df
|
||||
def ${1:name}, do: ${2}
|
||||
|
||||
snippet def
|
||||
def ${1:name} do
|
||||
${0}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user