-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
54 lines (42 loc) · 1.24 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
" Pathogen
call pathogen#infect()
call pathogen#helptags()
filetype plugin indent on
" end pathogen
" Git
autocmd Filetype gitcommit setlocal spell textwidth=72
" end Git
set nocompatible " We don't want vi compatibility.
set noswapfile
set nobackup
set hidden " hides buffers instead of closing which means I can switch without needing to save
set cf " Enable error files & error jumping.
set clipboard+=unnamed " Yanks go on clipboard instead.
set history=1000 " Number of things to remember in history.
set autowrite " Writes on make/shell commands
set ruler " Ruler on
set nowrap " Line wrapping off
set timeoutlen=250 " Time to wait after ESC (default causes an annoying delay)
" Formatting (some of these are for coding in C and C++)
set ts=2 " Tabs are 2 spaces
set bs=2 " Backspace over everything in insert mode
set et
set shiftwidth=2 " Tabs under smart indent
set cindent
set autoindent
set smarttab
set expandtab
set incsearch " incremental search
" Visual
set showmatch " Show matching brackets.
set mat=5 " Bracket blinking.
"CtrlP
noremap ,f <Esc>:CtrlP<CR>
noremap ,, <Esc>:CtrlPBuffer<CR>
let g:ctrlp_show_hidden = 1
"Use jj to escape insert mode
imap jj <Esc>
set t_Co=256
set background=dark
syntax on
colorscheme wombat