-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
40 lines (33 loc) · 724 Bytes
/
.vimrc
File metadata and controls
40 lines (33 loc) · 724 Bytes
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
" General settings
set nocompatible
filetype off
filetype plugin on
filetype plugin indent on
syntax on
set backspace=indent,eol,start
set ttyfast
set lazyredraw
set background=light
set nowrap
set expandtab
set tabstop=2
set t_Co=256
set shiftwidth=2
set number
set autoindent
set hlsearch
set ignorecase
set laststatus=2
noremap ; :
map <Space> <c-W>
" NERDTree
autocmd vimenter * if !argc() | NERDTree | endif
autocmd BufEnter * execute "chdir ".escape(expand("%:p:h"), ' ')
let NERDTreeShowHidden=1
let NERDTreeIgnore=['\.swp$', '\.swo$', '\.pyc']
" Resizing
autocmd VimResized * wincmd =
" Delete trailing whitespace on save
autocmd BufWritePre * :%s/\s\+$//e
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'