文章來源: http://www.mclark.name/dlog/2010/02/format-xml-in-vim/
gg=G
不行的話,可以安裝xmllint來用。
@echo off
set a=c:\program files\7-zip\7z.exe
for %%a in (%*) do (
dir /a %%a|findstr "DIR" >nul 2>nul && (
"%a%" a -tzip "%%~dpa%%~na.zip" "%%~a\*"
) || (
"%a%" a -tzip "%%~dpa%%~na.zip" %%a
)
)

網頁版: http://jsbeautifier.org/
<leader>ff
或
按<F6> (或是你自訂的鍵) |
/shares/Publilc # dd if=/dev/zero of=zero.test bs=1M count=1000 1000+0 records in 1000+0 records out 1048576000 bytes (1000.0MB) copied, 14.971962 seconds, 66.8MB/s /shares/Publilc # dd if=/dev/zero of=zero.test bs=10M count=100 100+0 records in 100+0 records out 1048576000 bytes (1000.0MB) copied, 14.615720 seconds, 68.4MB/s /shares/Publilc # dd if=/dev/zero of=zero.test bs=20M count=50 50+0 records in 50+0 records out 1048576000 bytes (1000.0MB) copied, 14.045518 seconds, 71.2MB/s /shares/Publilc # dd if=/dev/zero of=zero.test bs=50M count=20 20+0 records in 20+0 records out 1048576000 bytes (1000.0MB) copied, 18.544483 seconds, 53.9MB/s /shares/Publilc # dd if=/dev/zero of=zero.test bs=20M count=50 50+0 records in 50+0 records out 1048576000 bytes (1000.0MB) copied, 14.120041 seconds, 70.8MB/s /shares/Publilc # dd if=/dev/zero of=zero.test bs=50M count=20 20+0 records in 20+0 records out 1048576000 bytes (1000.0MB) copied, 21.059055 seconds, 47.5MB/s /shares/Publilc #