2009-05-15

Bikin Hidup Jadi Lebih Berwarna

Kadang terasa sulit untuk membaca file konfigurasi. Kita ambil contoh saja file ini:
/etc/default/ntpdate


# The settings in this file are used by the program ntpdate-debian, but not
# by the upstream program ntpdate.

# Set to "yes" to take the server list from /etc/ntp.conf, from package ntp,
# so you only have to keep it in one place.
NTPDATE_USE_NTP_CONF=no

# List of NTP servers to use (Separate multiple servers with spaces.)
# Not used if NTPDATE_USE_NTP_CONF is yes.
NTPSERVERS="id.pool.ntp.org"

# Additional options to pass to ntpdate
NTPOPTIONS="-u"


Kucoba warnai agar lebih menarik:
:syntax on



Lho, kok tidak bisa?
E319: Sorry, the command is not available in this version

Oh, sepertinya yang kupakai adalah vim-common, bukan vim.

Kalau begitu kuinstal vim saja.
apt-get install vim

Kucoba mewarnai lagi:
:syntax on

Jadinya begini:


# The settings in this file are used by the program ntpdate-debian, but not
# by the upstream program ntpdate.

# Set to "yes" to take the server list from /etc/ntp.conf, from package ntp,
# so you only have to keep it in one place.
NTPDATE_USE_NTP_CONF=no

# List of NTP servers to use (Separate multiple servers with spaces.)
# Not used if NTPDATE_USE_NTP_CONF is yes.
NTPSERVERS="id.pool.ntp.org"

# Additional options to pass to ntpdate
NTPOPTIONS="-u"



Agar bisa diwarnai otomatis, diubah konfigurasi vim-nya.
/etc/vim/vimrc

" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.

syntax on

1 comment:

  1. agar lebih enak lagi set background=dark



    reply:
    Background console-ku default-nya sudah gelap. :D

    ReplyDelete