Many (almost all) Linux distributions modify configuration files in their packages, this means you can never rely on the same defaults, or even on relatively sane defaults for that matter...
FreeBSD, on the other hand, almost never modifies the default configuration files beyond what is absolutely necessary, usually the only things that are changed are the various filesystem locations.
So what you have now, are the default Vim settings, instead of a Linux package maintainers choice of "defaults" for that specific distribution.
I don't know what you're used to, but here are a few basic options you will probably want to set in your ~/.vimrc
- Code: Select all
set nocompatible " Use Vim settings, rather then Vi settings
set backspace=indent,eol,start " allow backspacing over everything
set ruler " show the cursor position all the time
set incsearch " do incremental searching
set hlsearch " highlight the last used search pattern.
set autoindent " always set auto indenting on
set lbr " Wrap at word
set tabstop=2 " Tabs are 2 spaces wide
set shiftwidth=2 " Auto-indent 2 spaces wide
set softtabstop=2 " Still 2...
set encoding=utf-8 " Default encoding
syntax on " Switch syntax highlighting on
This should fix the syntax highlighting (with syntax on
) and add the INSERT when in insert mode (with set ruler
When I'm in editing mode and press the cursors, to move around in the text/code, A's, B's, C's and D's show up...
If setting nocompatible
doesn't help, you're probably using the wrong TERM
environment variable. For xterm and most other modern terminal emulators, this should is usually set to xterm-color
In tcsh you use: # setenv TERM xterm-color
And in sh/bash/zsh/ksh: # export TERM=xterm-color
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.