"pathogen
runtime bundle/vim-pathogen/autoload/pathogen.vim
execute pathogen#infect()

"file type detection
filetype on

"ligne number
set number

"coloration 
syntax on
set cursorline
"highlight ColorColumn ctermbg=DarkYellow
let g:spacegray_use_italics=1
colorscheme spacegray
"let g:minimap_highlight='Visual'

"miscellaneous
set backspace=indent,eol,start
set tabstop=4
set shiftwidth=4 
set shiftround
set ruler
set nocompatible

"inclomplete commands
set showcmd

"indent
filetype plugin indent on
set autoindent
set smartindent
set cindent
set pastetoggle=<F5>

"matching parenthesis
set showmatch

"escape sequence
set ttimeout
set timeout timeoutlen=300
let mapleader=','

" window nav
nnoremap <leader>w <C-w>
nnoremap <Esc>h <C-w>h
nnoremap <Esc>j <C-w>j
nnoremap <Esc>k <C-w>k
nnoremap <Esc>l <C-w>l

" resize window
nnoremap <C-h> <C-w><
nnoremap <C-j> <C-w>+
nnoremap <C-k> <C-w>-
nnoremap <C-l> <C-w>>

" tab nav
nnoremap <Esc>n :tabn<cr>
nnoremap <Esc>p :tabp<cr>

" buffer nav
nmap <C-n> :bn<cr>
nmap <C-p> :bp<cr>

nmap <silent> <^[[1;4D> :wincmd h<CR>
nmap <silent> <C-l> :noh<CR>
nmap <silent> <F6> gg=G<C-o><C-o><CR>
nmap <silent> <C-t> :NERDTreeToggle<CR>

"headers
let g:header_auto_add_header=0
let g:header_field_author='Steins7'
let g:header_field_author_email='steinsset@gmail.com'
let g:header_field_license_id='GNU'
nmap <silent> <F4> :AddHeader<CR>

