
可能であれば、Vimエディタでサーバー時間を表示する方法を知りたいです。
答え1
必要に応じて、vimrcファイルに次の行を追加して、ステータスバーに時間を表示するようにVimを設定できます。
set ruler
set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5l,%-6(%c%V%)\ %P%)
信用は行くこのVim Wikiページ。
答え2
Vimで外部コマンドを実行するには、「!」フラグを使用できます。
:! date
http://www.linux.com/learn/tutorials/442419-vim-tips-working-with-external-commands