" supetuxs ~/.vimrc 
" vim rc file for vim ver. Gentoo-7.1.319


" color schemes"{{{
colorscheme default
syntax on
"}}}

" encoding"{{{
set fileencoding=utf-8
"}}}

" typesetting setting"{{{
map <F9> :set number!<CR>
imap <F9> <ESC>:set number!<CR>a
set pastetoggle=<F10>
set number "enable numbering by default
filetype indent on
filetype plugin on
"}}}

" mappings for tabbing"{{{
map <C-Right> :tabnext<CR>
map <C-Left> :tabprevious<CR>
map <C-n> :tabnew<SPACE>
map <C-b> :tn<CR>
map <C-F12> :qall<CR>
hi TabLineSel ctermbg=Red
hi StatusLine ctermfg=Red
hi StatusLine ctermbg=White
hi StatusLineNC ctermbg=Cyan
hi StatusLineNC ctermfg=black
"}}}

" Session managment "{{{
" taken from http://notvincenz.blogspot.com/2007/03/vim-sessions.html
set sessionoptions=blank,buffers,curdir,folds,help,resize,tabpages,winsize
map <F11> :mksession! ~/.vim/session<CR>
map <F12> :source ~/.vim/session<CR>
"}}}

" Visual Cues"{{{
set showmatch " show matching brackets
set mat=5 " how many tenths of a second to blink matching brackets for
set incsearch " do highlight as you type you search phrase
set laststatus=2 " always show the status line
"}}}

" Text Formatting/Layout"{{{
set fo=tcrqn " See Help (complex)
set ai " autoindent
set cindent " do c-style indenting
set ts=4 " tab stop
set sw=4 " shiftwidth (indention size)
"}}}

" Miscellaneous options (gentoo-spec, folding, window resizing) "{{{
set modeline
let g:bugsummary_browser="opera -newpage '%s'"
helptags ~/.vim/doc
set completeopt=menuone
" for a better command completion
set wildmenu
" show partial command
set showcmd


 " folds a section
 map <C-f> :foldc<CR>
 " enable disable fold
 map <S-f> :set foldenable!<CR>
 
 " resizing window
 " Shift-Left == Decrease current window width
 map <C-S-Left> <C-w><
 " Shift-Right == Increase current window width
 map <C-S-Right> <C-w>>
 " Shift-Up == Increase current window hight
 map <S-Up> <C-w>+
 " Shift-Down == Decrease current window hight
 map <S-Down> <C-w>-

"}}}

" vim: set foldmethod=marker :
