Skip to content

Instantly share code, notes, and snippets.

@hotoo
Created August 12, 2010 11:03
Show Gist options
  • Select an option

  • Save hotoo/520749 to your computer and use it in GitHub Desktop.

Select an option

Save hotoo/520749 to your computer and use it in GitHub Desktop.
map <leader>.fcss :%s/;\([a-z\*\_]\)/;\r\1/g<cr>:%s/\(\w\){\([^\r]\)/\1\ {\r\2/g<cr>:%s/;}/;\r}/<cr>,=
map <leader>.fcss
:%s/;\([a-z\*\_]\)/;\r\1/g<cr>
:%s/\(\w\){\([^\r]\)/\1\ {\r\2/g<cr>
:%s/;}/;\r}/<cr>,=
map <leader>fcss :%s/{/{\r/g<cr>:%s/;\?\s*}/\r}\r/g<cr>:%s/;/;\r/g<cr>:nohl<cr>gg=G
:%s/{/{\r/g
:%s/;\?\s*}/\r}\r/g
:%s/;/;\r/g
:nohl
map <leader>fcss :%s/;\?\s*}/\r}\r/g<cr>:%s/\([{;]\)/\1\r/g<cr>:nohl<cr>gg=G
:%s/;\?\s*}/\r}\r/g
:%s/\([{;]\)/\1\r/g
:nohl
@hotoo
Copy link
Author

hotoo commented Aug 12, 2010

格式化CSS的 Vim 键盘映射

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment