# HG changeset patch # User Steve Losh # Date 1314992979 14400 # Node ID cc0b45881ef952925dc388a1e65a07c40ca07183 # Parent e2fb3a0337949c7361f68c40a22e4ad1f15c22e1 Clean up less mappings. diff -r e2fb3a033794 -r cc0b45881ef9 vim/.vimrc --- a/vim/.vimrc Fri Sep 02 10:18:01 2011 -0400 +++ b/vim/.vimrc Fri Sep 02 15:49:39 2011 -0400 @@ -328,15 +328,8 @@ au BufNewFile,BufRead *.less setlocal filetype=less -au BufNewFile,BufRead *.css setlocal foldmethod=marker -au BufNewFile,BufRead *.less setlocal foldmethod=marker - -au BufNewFile,BufRead *.css setlocal foldmarker={,} -au BufNewFile,BufRead *.less setlocal foldmarker={,} - -" Use cc to change lines without borking the indentation. -au BufNewFile,BufRead *.css nnoremap cc ddko -au BufNewFile,BufRead *.less nnoremap cc ddko +au BufNewFile,BufRead *.less,*.css setlocal foldmethod=marker +au BufNewFile,BufRead *.less,*.css setlocal foldmarker={,} " Use S to sort properties. Turns this: " @@ -357,14 +350,11 @@ " " ... " } -" -au BufNewFile,BufRead *.css nnoremap S ?{jV/\v^\s*\}?$k:sort:noh -au BufNewFile,BufRead *.less nnoremap S ?{jV/\v^\s*\}?$k:sort:noh +au BufNewFile,BufRead *.less,*.css nnoremap S ?{jV/\v^\s*\}?$k:sort:noh " Make { insert a pair of brackets in such a way that the cursor is correctly " positioned inside of them AND the following code doesn't get unfolded. -au BufNewFile,BufRead *.css inoremap { {}.kA -au BufNewFile,BufRead *.less inoremap { {}.kA +au BufNewFile,BufRead *.less,*.css inoremap { {}.kA " }}} " Django {{{