I was having trouble with FreeBSD. When I tried the startx command it said "cannot start in framebuffer mode"

Eventually I found a solution to this problem but I assume many other newcomers to FreeBSD may run into the same problem and I want to help them out. But here's the problem:

I'm no FreeBSD expert, so while I know my solution worked for me, I don't know if it's a best practice or if it would work for everyone else. Thus it might be inappropriate to post it as an answer.

On the other hand if I posted the question without any answer that would also be weird because I know the answer (or at least might).

Just wanted to know what the guidelines would suggest I do in this situation.

Also, here is the solution that worked for me:

install vim using `pkg install vim`, then type `y` when appropriate.

Create a file using vim with `vim /usr/local/etc/X11/xorg.conf.d/driver-inter.conf`

add this to the file:

Section "Device" \
Identifier "Card0" \
Driver "scfb" \
EndSection

save and exit vim, then use the startx command again.