Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
128 lines (103 sloc) 3.68 KB
runtime bundle/pathogen/autoload/pathogen.vim
execute pathogen#infect()
syntax enable
filetype plugin indent on " load the plugin and indent settings for the detected filetype
set modelines=0 " prevent security exploits that use modelines in files
set cryptmethod=blowfish " use strong encryption when requried
"" General settings
set nocompatible " choose no compatibility with legacy vi
set encoding=utf-8 " use the UTF-8 encoding
set showcmd " display incomplete commands
set relativenumber " Relative Line numbers
set ruler " Position of cursor, relative position of text
set scrolloff=15 " Keep cursor centred (where possible)
set hidden " Manage multiple buffers effectively
set cursorline " Highlight the line the cursor is currently on
set laststatus=2 " Always show the statusline
set lazyredraw " Do not update while in macro
set ttyfast " Improves redrawing
syntax enable
"" Solarized color scheme
"set background=light
"colorscheme solarized
"" Modified Codeschool color scheme
colorscheme codeschool_mod
"" Whitespace
set nowrap " don't wrap lines
set tabstop=2 shiftwidth=2 " a tab is two spaces (or set this to 4)
set expandtab " use spaces, not tabs (optional)
set backspace=indent,eol,start " backspace through everything in insert mode
set list listchars=tab:\ \ ,trail:· " mark trailing spaces
"" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
"" Wildmenu
set wildmenu
set wildmode=list:longest,full
"" Change leder to ,
let mapleader = ","
let maplocalleader = ","
"" Get rid of /-find highlighting
nnoremap <leader><space> :noh<cr>
"" NERDTree configuration
let NERDTreeIgnore=['\.rbc$', '\~$']
map <Leader>n :NERDTreeToggle<CR> " Activate on \n
"" Gundo configuration
map <Leader>u :GundoToggle<CR> " Activate on \u
"" Create undo files
set undofile
"" Snipmate snippets
"let g:snippets_dir = '$HOME/.vim/bundle/snipmate/snippets/'
"autocmd vimenter * call ExtractSnips('$HOME/.vim/snippets/', 'tex')
" Latex settings
let g:tex_flavor = "latex" " Default filetype for .tex files is 'tex'
autocmd FileType tex call Tex_config()
function Tex_config()
"let g:LatexBox_viewer = '/Applications/Skim.app/Contents/MacOS/Skim'
let g:LatexBox_latexmk_async=1
let g:LatexBox_latexmk_preview_continuously=1
setlocal spell spelllang=en_ca
set wrap linebreak nolist
endfunction
" Notes settings (must not be conditional)
let g:notes_suffix = '.txt'
let g:notes_directories = ['~/Documents/Notes']
" Outliner settings
autocmd FileType votl call Otl_config()
function Otl_config()
setlocal spell spelllang=en_ca
set wrap linebreak nolist
colorscheme codeschool_mod " Override the Outliner colorscheme
endfunction
" Coffee settings
autocmd FileType coffee call Coffee_config()
function Coffee_config()
map <Leader>r :CoffeeMake
endfunction
" Mutt settings
autocmd FileType mail call Mail_config()
function Mail_config()
set wrap linebreak nolist
setlocal spell spelllang=en_ca
set textwidth=0
endfunction
" Set vim shell
set shell=/bin/sh
" Turn on wrapping with :Wrap
command! -nargs=* Wrap set wrap linebreak nolist
command! -nargs=* Nowrap set nowrap
" Allow movement through displayed lines by holding down command
vmap <D-j> gj
vmap <D-k> gk
vmap <D-4> g$
vmap <D-6> g^
vmap <D-0> g^
nmap <D-j> gj
nmap <D-k> gk
nmap <D-4> g$
nmap <D-6> g^
nmap <D-0> g^
" Command-/ to toggle comments
map <D-/> <plug>NERDCommenterToggle<CR>