""""""""""""""""""""""""""""""""""""""""""""""""""
" Khaled Alshaya vimrc file
""""""""""""""""""""""""""""""""""""""""""""""""""

" improved vim mode
set nocompatible

" allow backspace in insert mode
set backspace=indent,eol,start

set encoding=utf-8
set fileencodings=utf-8

" enable syntax highlighting
syntax on
" detect file types
filetype plugin indent on

" automatically indent when adding curly braces
set autoindent
set smartindent
" tabs are soft and should be converted to four spaces
set shiftwidth=4
set tabstop=4
set expandtab
set smarttab

" set the wombat theme
colorscheme wombat

" set the font of vim
set guifont=Consolas:h10:cARABIC

" diable toolbar and menus
set guioptions-=m
set guioptions-=T
set guioptions-=r

" show the ruler
set ruler
" show incomplete commands
set showcmd

" show line numbers
set number

set incsearch
set ignorecase

" save keyboard shortcut
nmap <c-s> :w<CR>
imap <c-s> <Esc>:w<CR>a
