parsed.org

Tips by tag: css

Add this to your .vimrc:

autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
autocmd FileType c set omnifunc=ccomplete#Complete

Try it out:

$ touch index.html
$ vim index.html
type: <ht[CTRL-X][CTRL-O]
autocompleteccsshtmljavascriptphppythonvimvimrcxml
Border Radius by http://xinu.myopenid.com/ on Dec 31, 2005 03:56 PM

This is a Mozilla-specific option, but it makes for some nice edges on interfaces and IE will roll to square edges without any problem:

.mybox {
    -moz-border-radius: 10px;
    border: 1px solid black;
    background: lightblue;
}

See this handy URL for some other tips and tricks:

http://www.eightlines.com/neil/mozskin/csscommands.html

cssmozillaneatproprietaryui
RSS