2013-05-21 22:09:58 +02:00
|
|
|
#!/usr/bin/vim -S
|
|
|
|
set nocompatible
|
|
|
|
try
|
|
|
|
source powerline/bindings/vim/plugin/powerline.vim
|
|
|
|
catch
|
2013-05-23 16:22:49 +02:00
|
|
|
call writefile([v:exception], 'message.fail')
|
2013-05-21 22:09:58 +02:00
|
|
|
cquit
|
|
|
|
endtry
|
|
|
|
set ls=2
|
|
|
|
redrawstatus!
|
|
|
|
redir =>mes
|
|
|
|
messages
|
|
|
|
redir END
|
2013-05-23 16:22:49 +02:00
|
|
|
let mess=split(mes, "\n")
|
|
|
|
if len(mess)>1
|
|
|
|
call writefile(mess, 'message.fail')
|
2013-05-21 22:09:58 +02:00
|
|
|
cquit
|
|
|
|
endif
|
|
|
|
quit!
|