My preferred editor in unix-like systems is vi or vim. VI is everywhere and VIM is improved for scripting and coding.
Below is my VIM config file /home/dpasek/.vimrc
syntax on
filetype plugin indent on
" Show line numbers
set number
" Show relative line numbers (optional, good for motions like 5j/5k)
" set relativenumber
" Highlight matching parentheses
set showmatch
" Enable auto-indentation
set smartindent
set autoindent
" Use spaces instead of tabs, and set width (adjust to taste)
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
" Show line and column in status line
set ruler
" Show partial command in bottom line
set showcmd
" Show a vertical line at column 80 (optional)
set colorcolumn=80
" Disable VIM mouse handling and keep it to terminal
set mouse=
" Enable persistent undo (requires directory)
set undofile
set undodir=~/.vim/undodir
" Make backspace behave sanely
set backspace=indent,eol,start
" Enable searching while typing
set incsearch
set hlsearch " Highlight all matches
set ignorecase " Case insensitive search...
set smartcase " ...unless capital letter used
" Status line always visible
set laststatus=2
No comments:
Post a Comment