mirror of
https://github.com/amix/vimrc
synced 2025-06-29 02:55:01 +08:00
Updated all the plugins. Removed powerline. Added vim-airline (replacement for powerline). Added vim-fugitive.
This commit is contained in:
@ -18,31 +18,31 @@ snippet html5
|
||||
# ==== TAGS
|
||||
# you always need these:
|
||||
snippet .
|
||||
class="${1}"${2}
|
||||
class="${1}"
|
||||
snippet n
|
||||
name="${1}"${2}
|
||||
name="${1}"
|
||||
snippet r
|
||||
rel="${1}"${2}
|
||||
rel="${1}"
|
||||
snippet t
|
||||
title="${1}"${2}
|
||||
title="${1}"
|
||||
|
||||
# not using # because id is faster to type
|
||||
snippet id
|
||||
id="${1}"${2}
|
||||
id="${1}"
|
||||
snippet idn
|
||||
id="${1}" name="${2:$1}"
|
||||
id="${1}" name="${0:$1}"
|
||||
|
||||
snippet label_and_input
|
||||
<label for="${2:$1}">${1}</label>
|
||||
<input type="${3:text}" name="${4:$2}" id="${5:$2}" value="${6}">${7}
|
||||
<label for="${0:$1}">${1}</label>
|
||||
<input type="${3:text}" name="${4:$2}" id="${5:$2}" value="${6}">
|
||||
|
||||
|
||||
# FORMS
|
||||
# use idn . or n to add id
|
||||
snippet input
|
||||
<input type="${1:text}" value="${2}" ${3}>${7}
|
||||
<input type="${1:text}" value="${2}" ${3}>
|
||||
snippet submit
|
||||
<input type="submit" value="${2}" ${3}>${7}
|
||||
<input type="submit" value="${2}" ${3}>
|
||||
snippet textarea
|
||||
<textarea $1>$2</textarea>
|
||||
|
||||
@ -61,14 +61,12 @@ snippet img
|
||||
<img src="$1" alt="$2"/>
|
||||
# JS/CSS
|
||||
snippet css_file
|
||||
<link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}">${3}
|
||||
snippet css_block
|
||||
<link rel="stylesheet" href="${1:style.css}" type="text/css" media="${2:all}">
|
||||
</link>
|
||||
|
||||
snippet css_block
|
||||
<style type='text/css'>
|
||||
</style>
|
||||
snippet script_block
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
</script>
|
||||
snippet script_file
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
</script>
|
||||
<script src="${1}" type="text/javascript"></script>
|
||||
|
Reference in New Issue
Block a user