67 lines
1.3 KiB
Plaintext
Executable File
67 lines
1.3 KiB
Plaintext
Executable File
" This version is released with Vim Hints 005
|
|
" -------------------------------------------
|
|
" Ensure Vim runs as Vim
|
|
set nocompatible
|
|
|
|
" Keep a backup file
|
|
set backup
|
|
|
|
" Keep change history
|
|
set undodir=~/.vim/undodir
|
|
set undofile
|
|
|
|
" Show the line,column and the % of buffer
|
|
set ruler
|
|
|
|
" Always show a status line per window
|
|
set laststatus=2
|
|
|
|
" Show Insert, Replace or Visual on the last line
|
|
set showmode
|
|
|
|
" Stop beeping! (Flash the screen instead)
|
|
set visualbell
|
|
|
|
" Show incomplete commands
|
|
set showcmd
|
|
|
|
" Increase the command history
|
|
set history=100
|
|
|
|
" Turn off case in searches
|
|
set ignorecase
|
|
|
|
" Turn case-sensitive searches back on if there are capitals in the target
|
|
set smartcase
|
|
|
|
" Do incremental searching
|
|
set incsearch
|
|
|
|
" Set the search scan to wrap around the file
|
|
set wrapscan
|
|
|
|
" Highlight all matches when searching
|
|
set hlsearch
|
|
|
|
" Map <C-L> (redraw screen) to also turn off search highlighting until the
|
|
" next search
|
|
nnoremap <C-L> :nohl<CR><C-L>
|
|
|
|
" Allow extra movement in INSERT mode
|
|
set backspace=indent,eol,start
|
|
|
|
" Enable syntax highlighting
|
|
syntax on
|
|
|
|
" Indent automatically
|
|
set autoindent
|
|
|
|
" Wrap at 78 characters
|
|
set textwidth=78
|
|
|
|
" In Insert mode use numbers of spaces instead of tabs
|
|
set expandtab
|
|
|
|
" Define number of spaces to use for indenting
|
|
set shiftwidth=4
|