*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
06-02-2009, 09:24 PM
#1
Member
Registered: Apr 2008
Distribution: Ubuntu 8.04 64bit/ 32bit, FreeBSD 8
Posts: 185
Rep:
editing ~/.vimrc in FreeBSD
I have made it to the file but I am wondering what to do in order to create syntax highlighting. I have added the line
and this has done nothing. I am also running in just TTY1-6
could this be a reason?
thanks
06-03-2009, 03:21 AM
#2
Member
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 406
Rep:
does ":syntax on" work when you type it in vim interactively?
06-03-2009, 08:46 AM
#3
Member
Registered: Apr 2008
Distribution: Ubuntu 8.04 64bit/ 32bit, FreeBSD 8
Posts: 185
Original Poster
Rep:
Quote:
Originally Posted by
Ygrex
does ":syntax on" work when you type it in vim interactively?
No, course I was also noticing that I may not have the full version...and one thing that is annoying me is I can not find the way to, for example in Linux
Code:
sudo apt-get install vim-full
and VIM is installed. I can't find what does this in FreeBSD, and I think that may have some bearing in this situation.
06-03-2009, 09:31 AM
#4
Member
Registered: Jan 2009
Location: London (UK)
Distribution: Home: Debian (Squeeze), openBSD 4.7 and more; Work: CentOS 5.5
Posts: 202
Rep:
this should be the full vim:
http://ftp2.at.freebsd.org/pub/FreeB...-7.2.166_1.tbz
compared to
vim-lite-7.2.166_1.tbz
does freebsd give you options what to install when you use
pkg_add -i vim
?
vim syntax highlighting:
http://www.vim.org/htmldoc/syntax.html
basically to enable it, it's
:syntax enable
06-03-2009, 11:25 AM
#5
Member
Registered: Mar 2005
Location: Finland
Distribution: FreeBSD 7.2
Posts: 59
Rep:
These are directly from the very useful handbook
Press Previous to package method :-) (2 methods: Package method and port method)
http://www.freebsd.org/doc/en/books/...rts-using.html
You can use
or then if you have ports tree installed (if not you can get it by)
Code:
portsnap fetch
portsnap extract
If you have portstree you can update it by running
Code:
portsnap fetch
portsnap update
then
goto /usr/ports/editors/vim
This might also require X on its depencies so if you want it without X
if you dont have X installed then i dunno this is a little old article
http://www.tequilafish.com/2005/08/1...out-x-windows/
Last edited by Fin7PL; 06-04-2009 at 12:07 AM .
06-03-2009, 05:22 PM
#6
Member
Registered: Apr 2008
Distribution: Ubuntu 8.04 64bit/ 32bit, FreeBSD 8
Posts: 185
Original Poster
Rep:
error: FTP Unable to get
ftp://ftp.freebsd.org/etc etc etc No address record.
pkg_add: unable to fetch 'ftp://ftp."""" by URL
06-03-2009, 07:46 PM
#7
Member
Registered: Apr 2008
Distribution: Ubuntu 8.04 64bit/ 32bit, FreeBSD 8
Posts: 185
Original Poster
Rep:
seems as though I don't have any internet connection....
06-04-2009, 12:08 AM
#8
Member
Registered: Mar 2005
Location: Finland
Distribution: FreeBSD 7.2
Posts: 59
Rep:
Tried the ports method?
You really have no connectivity to anything in there?
ifconfig?
Btw how old your FreeBSD is?
if its
VERY old then
http://lessfaq.wordpress.com/2008/05...ecord-freebsd/
But i dont think that is the case..
Is DNS working (etc/resolv.conf)?
output of
Code:
host ftp.freebsd.org
cat /etc/resolv.conf
Suppose you have no firewall installed/enabled?
Last edited by Fin7PL; 06-04-2009 at 12:17 AM .
06-04-2009, 11:09 PM
#9
Member
Registered: Apr 2008
Distribution: Ubuntu 8.04 64bit/ 32bit, FreeBSD 8
Posts: 185
Original Poster
Rep:
Quote:
Originally Posted by
Fin7PL
Tried the ports method?
You really have no connectivity to anything in there?
ifconfig?
Btw how old your FreeBSD is?
if its
VERY old then
http://lessfaq.wordpress.com/2008/05...ecord-freebsd/
But i dont think that is the case..
Is DNS working (etc/resolv.conf)?
output of
Code:
host ftp.freebsd.org
cat /etc/resolv.conf
Suppose you have no firewall installed/enabled?
No No its FreeBSD 7.2, I ran ifconfig and best I could see was it was at least connecting. It showed the ethernet as enabled and active. and inet is shown as home IP (127.0.0.1)
so I am pretty confused right now.
06-05-2009, 02:09 AM
#10
Member
Registered: Mar 2005
Location: Finland
Distribution: FreeBSD 7.2
Posts: 59
Rep:
Seems like you have only the loopback device there (lo0)
Could you post the output of
also have you done anything to the kernel. What network card /chip you have?
Also if you kindly would post what says
06-07-2009, 07:21 PM
#11
Member
Registered: Apr 2008
Distribution: Ubuntu 8.04 64bit/ 32bit, FreeBSD 8
Posts: 185
Original Poster
Rep:
$ ifconfig
Code:
fwe0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 02:e0:18:0e:94:4b
inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
ch 1 dma 0
fwip0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
lladdr 0.e0.18.0.0.e.94.4b.a.2.ff.fe.0.0.0.0
bfe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:e0:18:e2:38:18
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
plip0: flags=108810<POINTTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MUTLICAST>metric 0 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
dmesg
Code:
ums0: 3 buttons and Z dir.
Timecounter "TSC" frequency 2004558132 Hz quality 800
Timecounters tick every 1.000 msec
firewire0: 1nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
and the rest is GEOM_LABEL s
06-08-2009, 03:06 AM
#12
Member
Registered: Mar 2005
Location: Finland
Distribution: FreeBSD 7.2
Posts: 59
Rep:
fwe0 is your wireless ethernet over firewire? you use that or the card. (rj45)
Code:
bfe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8<VLAN_MTU>
ether 00:e0:18:e2:38:18
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
So this bfe0 is your ethernet card. and it is plugged in too.
It seems it doesn´t get any ip, you have static ip or do you normally get it automatically.
try command
It should try to get some ip bound to your bfe card.
and post the output. thanks.
To get the dhcp work at boottime place this line to your /etc/rc.conf
Code:
ifconfig_bfe0="DHCP"
Last edited by Fin7PL; 06-08-2009 at 06:51 AM .
06-08-2009, 10:19 PM
#13
Member
Registered: Apr 2008
Distribution: Ubuntu 8.04 64bit/ 32bit, FreeBSD 8
Posts: 185
Original Poster
Rep:
Kazahh it works....thank you very much.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 01:49 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News