ZenCoding Syntax, zencodingsyntax

Source: Internet
Author: User

ZenCoding Syntax, zencodingsyntax
Syntax: descendant:>

Abbreviation: nav> ul> li

Brother: +

Abbreviation: div + p + bq

Superior: ^

Abbreviation: div + div> p> span + em ^ bq

Abbreviation: div + div> p> span + em ^ bq

GROUP :()

Abbreviation: div> (header> ul> li * 2> a) + footer> p

Abbreviation: (div> dl> (dt + dd) * 3) + footer> p

Multiplication :*

Abbreviation: ul> li * 5

Auto-incrementing Symbol: $

Ul> li. item $ * 5

Abbreviation: h $ [title = item $] {Header $} * 3

Abbreviation: ul> li. item $ * 5

Abbreviation: ul> li. item $ @-* 5

Abbreviation: ul> li. item $ @ 3*5

ID and class attributes

Abbreviation: # header

Abbreviation:. title

Abbreviation: form # search. wide

Abbreviation: p. class1.class2. class3

Custom Attributes

Abbreviation: p [title = "Hello world"]

Abbreviation: td [rowspan = 2 colspan = 3 title]

Abbreviation: [a = 'value1' B = "value2"]

Text :{}

Abbreviation: a {Click me}

Abbreviation: p> {Click} + a {here} + {to continue}

Implicit tag

Abbreviation:. class

Abbreviation: em>. class

Abbreviation: ul>. class

Abbreviation: table>. row>. col


I just want to install zencoding For vim In ubuntu.

No plug-in directory can be created under. vim, and zencoding. vim can be put in it.
Install the Vim plug-in to copy all directories corresponding to the plug-in to $ HOME/. vim ($ HOME is your HOME directory, which can be directly entered by running the cd command,
For example, a plug-in named abc has the following directory structure:
Abc
|-Plugin
| ------ Abc. vim
|-Syntax
| ------ Abc. vim

You can directly copy in/abc. vim to the $ HOME/. vim/plugin directory.
Copy syntax/abc. vim to the $ HOME/. vim/syntax directory, and so on.
Of course, if there is no directory, you can directly copy the directory or copy the file after it is created.
For Linux Command Line copy directories, the-r parameter must be added to the cp command:
Cp-r/dir1/dir2

Vim c program development configuration in Linux

Modify/etc/vimrc (we recommend that you use cp first)

Let's take a look at what is useful to you, and you can modify it.

Set nocompatible "Disable vi compatibility mode
Syntax on "auto syntax highlighting
Colorscheme molokai "sets the color scheme
Set number "display row number
Set cursorline "to highlight the current row
Set ruler "Open the status bar ruler
Set shiftwidth = 4 "set <and> the width of the command to move is 4.
Set softtabstop = 4 "allows you to delete four spaces at a time when you press the return key.
Set tabstop = 4 "set the tab length to 4
Set nobackup "does not back up when overwriting files
Set autochdir "automatically switches the current directory to the directory where the current file is located
Filetype plugin indent on "Enable Plug-in
Set backupcopy = yes "sets the backup behavior to overwrite
Set ignorecase smartcase is case-insensitive during search, but remains case-sensitive when one or more uppercase letters exist.
Set nowrapscan: no re-search is allowed when both ends of the file are searched.
Set incsearch: the search result is displayed when you enter the search content.
Set hlsearch "highlight the found text during search
Set noerrorbells "Disable Error message logging
Set novisualbell "Disable the use of visual bell instead of call
Set t_vb = "Terminal code for setting an empty wrong ringtone
When brackets are inserted in "set showmatch", the matching brackets are jumped temporarily.
"Set matchtime = 2" Jump to the matching bracket time for a short time
Set magic "set magic
Set hidden "allows you to switch the buffer when there are unsaved changes. At this time, vim is responsible for saving the changes.
Set guioptions-= T "Hide Toolbar
Set guioptions-= m "hide the menu bar
Set smartindent
Set backspace = indent, eol, start
"You cannot use the return key and Delete key to Delete the carriage return when the insertion status is not set.
Set bytes Height = 1 ...... the remaining full text>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.