forked from jrallison/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc
60 lines (48 loc) · 1.99 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
set nocompatible " choose no compatibility with legacy vi
set encoding=utf-8
set showcmd " display incomplete commands
set hidden " Allows vim to handle multiple buffers more efficiently
set number " Shows line number
set laststatus=2 " Show status line
filetype plugin indent on " load file type plugins + indentation
au BufNewFile,BufRead *.{md,mdown,mkd,mkdn,markdown,mdwn} set filetype=markdown
syntax enable
let mapleader = " " " change modifier key to space
"" CtrlP mappings
nnoremap <silent> <Leader>t :CtrlP<cr>
nnoremap <silent> <leader>T :ClearCtrlPCache<cr>\|:CtrlP<cr>
"" uses the current directory
let g:ctrlp_working_path_mode = 'c'
"" Temporary files
set backupdir=~/.tmp,/var/tmp,/tmp
set directory=~/.tmp,/var/tmp,/tmp
"" 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
"" 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
"" Plugins
call pathogen#infect() " load pathogen
call pathogen#helptags() " load pathogen helptags
let g:loaded_netrwPlugin=1 " disable netrw plugin
let g:Powerline_symbols='fancy' " disable netrw plugin
"" Theme
colors koehler
colors base16 " set base16 as the color theme
"" GUI
set guioptions-=T " Toggle off toolbar
set guifont=Sauce\ Code\ Powerline\ Light:h15
set transparency=5
"" Listing
set wildignore+=*/tmp/*,*/_site/*,*/.sass-cache/*
"" Local config
if filereadable(".vimrc.local")
source .vimrc.local
endif
"" Ack Mapping
nnoremap ,f :Ack<space>