Skip to content

Instantly share code, notes, and snippets.

@yantze
Last active August 29, 2015 14:05
Show Gist options
  • Save yantze/31c0166e365bb44db1a1 to your computer and use it in GitHub Desktop.
Save yantze/31c0166e365bb44db1a1 to your computer and use it in GitHub Desktop.
use awk and sed get the elapsed time of vim startuptim
"获取插件加载时间
vim filename --startuptime 'time.txt'
"统计加载插件总用时
awk '{print $2}' time.txt | sed 's/\([0-9].*\):/\1/g' | awk '{sum+=$1} END {print sum}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment