-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
92 lines (65 loc) · 1.64 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
" * General Settings
scriptencoding utf-8
" My normal color scheme
colorscheme ir_black
" Colorscheme for teaching:
"colorscheme morning
" set the font and size
set guifont=DroidSansMono_Nerd_Font:h14
" highlight search terms
set hlsearch
" show search as you type
set incsearch
" forget the backupfiles
set nobackup
set noswapfile
" don't wrap the lines
set nowrap
" Use zsh.
set shell=zsh
" Enable filetype-specific indenting and plugins
filetype plugin indent on
" Explicitly set 256 color support
set t_Co=256
" Set temporary directory (don't litter local dir with swp/tmp files)
set directory=/tmp/
" Syntax Highlighting on
set nocompatible
syntax on
" Highlight matching parens
set showmatch
" Use the tab complete menu
set wildmenu
set wildmode=list:longest,full
" Enable error files & error jumping.
set cf
" Set to auto read when a file is changed from the outside
set autoread
" use indents of 2 spaces, and have them copied down lines:
set expandtab
set tabstop=2
set softtabstop=2
set shiftwidth=2
set autoindent
" line numbers
set number
set numberwidth=3
" Make backspace work in insert mode
set backspace=indent,eol,start
" Yank from the cursor to the end of the line, to be consistent with C and D.
nnoremap Y y$
" ignore case when searching
set ignorecase
" ignore case if search pattern is all lowercase,
" case-sensitive otherwise
set smartcase
" bind command-v to paste from clipboard
imap <D-v> "+p
" bind command-c to copy to clipboard
imap <D-c> "+y
execute pathogen#infect()
" Make F2 open NERDTree
nmap <F2> :NERDTreeToggle<CR>
nmap <C-n> :NERDTreeToggle<CR>
runtime! custom/nerdtree_config.vim
let g:ctrlp_map = '<c-p>'