2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

実行環境を記入するvimコマンド

Last updated at Posted at 2018-09-15

READMEとかに自分の環境を載せたほうがいいんだろうけど、
なんかめんどくさい...

こういうことよくありますよね.

じゃあ:EnvInfoって打ったら、
こんなふうに環境情報が記入されるような設定を入れちゃいましょう.:thumbsup_tone1::thumbsup_tone2::thumbsup_tone3:

4.15.0-34-generic

Python 2.7.15

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.5 LTS"

kinetic

以下vimscript.

私はpython使うのでpythonのヴァージョンを表示させていますが、
これをcmakeだったりのヴァージョンに変えたりアレンジして使ってください.

command! EnvInfo call EnvInfo()
function! EnvInfo()
    " carnel version.
    execute ':r! uname -r'
    " python version.
    execute ':r! python -V'
    " Os version.
    execute ':r! cat /etc/lsb-release'
    " ros version.
    execute ':r! rosversion -d'
endfunction

Using

vimにて、以下のexコマンドを実行する.

:EnvInfo
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?