fixes, add link to discussion page
This commit is contained in:
parent
344ac6ea2c
commit
9ffd166a55
@ -87,6 +87,12 @@ get vim-dev plugin which has function completion
|
|||||||
|
|
||||||
Thus for conditions (while, if ..) and block bodies just use ${N} - Thanks
|
Thus for conditions (while, if ..) and block bodies just use ${N} - Thanks
|
||||||
|
|
||||||
|
Open questions:
|
||||||
|
What about one line if ee then .. else .. vs if \n .. then \n ... \n else \n .. ?
|
||||||
|
What about wh(ile), which trigger?
|
||||||
|
Discuss at: https://github.com/honza/vim-snippets/issues/230
|
||||||
|
|
||||||
|
|
||||||
Related repositories
|
Related repositories
|
||||||
====================
|
====================
|
||||||
We also encourage people to maintain sets of snippets for particular use cases
|
We also encourage people to maintain sets of snippets for particular use cases
|
||||||
|
@ -164,6 +164,8 @@ snippet atp
|
|||||||
attr_protected :${1:attr_names}
|
attr_protected :${1:attr_names}
|
||||||
snippet ata
|
snippet ata
|
||||||
attr_accessible :${1:attr_names}
|
attr_accessible :${1:attr_names}
|
||||||
|
|
||||||
|
# ivc == instance variable cache
|
||||||
snippet ivc
|
snippet ivc
|
||||||
@${1:variable_name} ||= ${2:chached_value}
|
@${1:variable_name} ||= ${2:chached_value}
|
||||||
# include Enumerable
|
# include Enumerable
|
||||||
|
@ -23,9 +23,9 @@ snippet for
|
|||||||
${3}
|
${3}
|
||||||
endfor
|
endfor
|
||||||
snippet forkv
|
snippet forkv
|
||||||
for [a,b] in items({2})
|
for [${1},${2}] in items(${3})
|
||||||
${3}
|
${4}
|
||||||
unlet a b
|
unlet $1 $2
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
snippet wh
|
snippet wh
|
||||||
|
Loading…
Reference in New Issue
Block a user