ソースを参照

Add quick xml formatting

Andrew Swistak 8 年 前
コミット
d7aad6d477
1 ファイル変更2 行追加1 行削除
  1. 2 1
      vimrc

+ 2 - 1
vimrc

@@ -137,8 +137,9 @@ vnoremap <silent> <A-h> "mxhh"mp
 " Clear searches so there aren't underlined words.
 nnoremap <silent> <C-i> :nohlsearch<CR>
 
-" JSON formatting
+" Formatting
 nmap <silent> =j :FormatJSON<CR>
+nmap <silent> =x :%s/></>\r</g<CR>gg=G
 
 " Set specific directories for swap, undo, and backups.
 set backupdir=~/.vim/tmp/backup//