/^[^#]The above line command the editor to: find a line which doesn't start with
#or rather: find a string which is at the beginning of a line with the first character anything else then
#. This advice will work not only for vim i.e. you can use it in grep as well:
[user@server]$ grep "^[^#]" modprobe.conf alias eth0 tg3 alias eth1 tg3 alias scsi_hostadapter mptbase alias scsi_hostadapter1 mptspiI discussed the similar case some time ago in this note: How to find line not starting with X in Vim.