Ps:K Blue、K Blue G1、K Blue G2的区别:
K Blue :基础简洁版,背景色是灰色的过度,背景无彩色圆。
K Blue G1 : 跟"K Blue"类似,背景色加上了26个彩色的圆。
K Blue G2 : 暗色调,背景色是黑色加上了26个彩色的圆。
专注于WEB前端开发, 永远追求更好的用户体验, 更好的开发体验
/ 分类: 生活 / No Comments
Ps:K Blue、K Blue G1、K Blue G2的区别:
K Blue :基础简洁版,背景色是灰色的过度,背景无彩色圆。
K Blue G1 : 跟"K Blue"类似,背景色加上了26个彩色的圆。
K Blue G2 : 暗色调,背景色是黑色加上了26个彩色的圆。
/ 分类: 工具 / 5 Comments
最近这段时间睡眠严重不足,脑袋发晕的时候就要放送下,so改善vim。产生个想法:把自己喜欢的editplus的功能都搞到vim上面来。这个就是其中之一:在浏览器中预览当前文件。有时间的话,可能要写点从editplus转型到vim的东西。
优点1:" 在浏览器预览 for win32
function! ViewInBrowser(name)
let file = expand("%:p")
exec ":update " . file
let browsers = {"cr":"D:\\WebDevelopment\\Browser\\Chrome\\Chrome.exe", "ff":"D:\\WebDevelopment\\Browser\\Firefox\\Firefox.exe", "op":"D:\\WebDevelopment\\Browser\\Opera\\opera.exe", "ie":"C:\\progra~1\\intern~1\\iexplore.exe", "ie6":"D:\\WebDevelopment\\Browser\\IETester\\IETester.exe -ie6", "ie7":"D:\\WebDevelopment\\Browser\\IETester\\IETester.exe -ie7", "ie8":"D:\\WebDevelopment\\Browser\\IETester\\IETester.exe -ie8", "ie9":"D:\\WebDevelopment\\Browser\\IETester\\IETester.exe -ie9", "iea":"D:\\WebDevelopment\\Browser\\IETester\\IETester.exe -all"}
let htdocs='E:\\@apmxe\\htdocs\\'
let strpos = stridx(file, substitute(htdocs, '\\\\', '\', "g"))
if strpos == -1
exec ":silent !start ". browsers[a:name] ." file://" . file
else
let file=substitute(file, htdocs, "http://127.0.0.1:8090/", "g")
let file=substitute(file, '\\', '/', "g")
exec ":silent !start ". browsers[a:name] file
endif
endfunction
nmap <f4>cr :call ViewInBrowser("cr")<cr>
nmap <f4>ff :call ViewInBrowser("ff")<cr>
nmap <f4>ie6 :call ViewInBrowser("ie6")<cr>