aboutsummaryrefslogblamecommitdiff
path: root/vim/vimrc
blob: 11746738b2085cf7809bfe24ff968b901eb54812 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                            

                





                                                                

                                                                              
                     
 




                                                                             
 



                                                                              

     

                                                                              
                    
" Don't make any effort to be compatible with vi, use more sensible settings
set nocompatible

" Use UTF-8 by default wherever possible, including in this file
if has('multi_byte')
  set encoding=utf-8
  scriptencoding utf-8
endif

" Load configuration files from ~/.vim/config or its analogue, before Pathogen
" loads all its directories into 'runtimepath'
runtime! config/*.vim

" If our version isn't ancient and Pathogen is available, call it to load all
" the plugins in .vim/bundle; these are saved as submodules
if v:version >= 701
  silent! call pathogen#infect()
  silent! call pathogen#helptags()

  " With the plugins loaded, we might now be able to use my custom colorscheme
  if has('syntax')
    silent! colorscheme sahara
  endif
endif

" Don't assume a number with a leading zero is octal; it's far more likely a
" zero-padded decimal, so increment and decrement with ^A and ^X on that basis
set nrformats-=octal