" vim: set filetype=vim :
" encoding and language
set enc=utf-8
set tenc=utf-8
set langmenu=en_GB.UTF-8
lang messages en
" bells
set noeb
set vb
set t_vb=
autocmd GUIEnter * set visualbell t_vb=
colorscheme koehler " colours
set wrap " line wrapping
set ch=1 " height of command line
set nu " line numbers
set nuw=6 " width of line number column
set cul " highlight current line
set cuc " highlight current column
set nomh " don't hide mouse pointer
set stal=2 " always show tabline
set ls=2 " always show statusline
set mousem=popup " rmb behaviour
set go=eR " GUI options: GUI tabline, right-hand scrollbar
set lsp=0 " no additional spacing between lines
set gfn=Consolas:h13 " font
set ts=4 " tabstop
set sw=4 " shiftwidth
set sta " smarttab
set ai " autoindent
set si " smartindent
set et " expandtab
set nofoldenable " no folding
set dir=. " swap file
set list " visible whitespace
set lcs=tab:>-,trail:· " whitespace characters
set nobackup " no backup
" stop annyoing whitespace destroying crappy behaviour
inoremap <CR> <CR>x<BS>
" spellchecking (F11 toggle)
inoremap <silent> <F11> :set spell!<CR>
nnoremap <silent> <F11> :set spell!<CR>
vnoremap <silent> <F11> :set spell!<CR>
set spelllang=en_gb
" status line
set statusline=%<#%n\ %F\ [%{&fileencoding}]\ [%{&fileformat}]\ %y%(\ %m%)%(\ %r%)%=%-14.(%l,%c%V%)\ %P
" secure rc mode
set secure