syntax on
"Reormat current paragraph with Ctrl-j
map <c-j> gqip
set wildmenu
set backupdir=~/.backups
"do not beep on errors
set noerrorbells
"ignorecase:  ignore the case in search patterns?  NO!
set noignorecase
set langmap=Ö;;
set langmap=ñ`,Ùq,æw,ãe,Úr,Õt,Ýy,Óu,èi,éo,×p,å[,ê],äa,ës,Òd,Ðf,ßg,àh,Þj,Ûk,Ôl,í',ïz,çx,ác,Üv,Øb,ân,ìm,Ñ\,,î.,¡~,¹Q,ÆW,ÃE,ºR,µT,HY,³U,ÈI,ÉO,·P,Å{,Ê},ÄA,ËS,²D,°F,¿G,ÀH,¾J,»K,´L,:,Í\",ÏZ,ÇX,ÁC,¼V,¸B,ÂN,ÌM,±<,Î>
set expandtab smarttab shiftwidth=2 "tabs2spaces, replace tabs by spaces, tab=2

noremap <F7>  :so `vimspelle.sh %`<CR><CR>
noremap <F8>  :so `vimspellb.sh %`<CR><CR>
noremap <F9>  :syntax clear SpellErrors<CR>
noremap <F10> :r !c2t\.awk %<CR>

"Works under X Window
set guifont=-rfx-courier-medium-r-*-*-12-*-*-*-*-*-*-5

"Works on Wi32
"so $VIMRUNTIME/mswin.vim
"set guifont=courier_new_cyr:h10

"Do not quote the signature while reading the mail
au BufRead /tmp/mutt* normal :g/^> -- $/,/^$/-1d^M/^$^M^L

"use utf-8 is possible, fallback to iso-8859-5 otherwise
set fileencodings=utf-8,iso-8859-5
" interpret tab as an `indent' command instead of an insert-a-tab command
set softtabstop=2
"indent with two spaces when hitting tab 
set shiftwidth=2
"expand all tabs to spaces according to shiftwidth parameter
set expandtab

"set textwidth=60
"set ai "autoindent
"set sw=2 "shift to left/right by 2
"set ts=2
"set nowrap
"set fileformat=dos
""backspace:  '2' allows backspacing" over
"indentation, end-of-line, and start-of-line.
""see also "help bs".
"set   backspace=2
"set nowrap
""See 'listchars' to make Tabs visible!
"set noexpandtab
"set nohlsearch
""To display color on a vanilla xterm (Use Rxvt luke).
"if &term=="xterm"
" set t_Co=8
"  set t_AB=<ESC>[%?%p1%{8}%<%t%p1%{40}%+%e%p1%{92}%+%;%dm
"  set t_AF=<ESC>[%?%p1%{8}%<%t%p1%{30}%+%e%p1%{82}%+%;%dm
" endif
"set paste "do not autoindent the pasted text