Narven
12/19/2016 - 3:17 PM

VIM basic config

VIM basic config

" compatible with vi
set nocompatible

" Indent automatically depending on filetype
filetype indent on
set autoindent

" Turn on line numbering. Turn it off with "set nonu"
set number

" Set syntax on
syntax on

" Case insensitive search
set ic

" Higlhight search
set hls

" Wrap text instead of being on one line
set lbr

" turn wildmenu
set wildmenu

" always show position
set ruler

" height of the command bar
set cmdheight=2

" for line numbers in the left margin.
set nu

" highlights the line containing the cursor.
set cul

" make backspace behave in a sane manner
set backspace=indent,eol,start
set whichwrap+=<,>,h,l

" no annoying bells
set noerrorbells
set novisualbell

" Override the 'ignorecase' option if the search pattern
" contains upper case characters.
set smartcase

" Enable the use of the mouse.0
set mouse=a

" default language en
set spelllang=en

" Don't display the intro message on starting Vim.
set shortmess+=I