-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvimrc
87 lines (66 loc) · 1.36 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
if &term == 'xterm-color'
set term=linux
end
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'corntrace/bufexplorer'
Plugin 'fatih/vim-go'
Plugin 'kchmck/vim-coffee-script'
Plugin 'leafgarland/typescript-vim'
Plugin 'majutsushi/tagbar'
Plugin 'rking/ag.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-bundler'
Plugin 'tpope/vim-endwise'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-rails'
Plugin 'wincent/command-t'
call vundle#end()
filetype plugin indent on
let mapleader = ","
set nobackup
set nowritebackup
set cursorline
set ruler
set number
set nowrap
syntax on
set incsearch
set hlsearch
set ignorecase
set smartcase
set scrolloff=3
set confirm
set shortmess=atI
set visualbell
set noswapfile
set hidden
set tabstop=2
set shiftwidth=2
set smarttab
set autoindent
set expandtab
set backspace=indent,eol,start
set wildmenu
set wildmode=longest:full
autocmd BufWritePre * :%s/\s\+$//e
cnoreabbrev W w
set wildignore=compiled,*.pyc
map <leader>d :execute 'NERDTreeToggle ' . getcwd()<CR>
map <leader>b :execute 'BufExplorer' <CR>
map <leader>w :execute 'BD' <CR>
map <leader>g :execute 'TagbarToggle' <CR>
let g:CommandTTraverseSCM = 'pwd'
map <up> <nop>
map <down> <nop>
map <left> <nop>
map <right> <nop>
imap <up> <nop>
imap <down> <nop>
imap <left> <nop>
imap <right> <nop>
map H ^
map L $