-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
66 lines (55 loc) · 1.27 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
set nocompatible
filetype off
"" Enable Vundle
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
"" Vundle-ception
Bundle 'gmarik/vundle'
"" My Bundles
Bundle 'bling/vim-airline'
Bundle 'chriskempson/tomorrow-theme', {'rtp': 'vim/'}
Bundle 'Raimondi/delimitMate'
Bundle 'scrooloose/nerdtree'
Bundle 'mustache/vim-mustache-handlebars'
Bundle 'groenewege/vim-less'
Bundle 'tpope/vim-fugitive'
Bundle 'kien/ctrlp.vim'
Bundle 'tpope/vim-surround'
Bundle 'pangloss/vim-javascript'
"" Settings
filetype plugin indent on
syntax enable
set encoding=utf-8
set showcmd
set number
hi LineNR ctermfg=grey
colorscheme Tomorrow-Night-Bright
set scrolloff=25
set noswapfile
"" Whitespace
set nowrap
set tabstop=4 shiftwidth=4
set expandtab
set backspace=indent,eol,start
"" Filetype Specific Spacing
autocmd Filetype ruby setlocal ts=2 sts=2 sw=2
"" Searching
set hlsearch
set incsearch
set ignorecase
set smartcase
"" Character Limit
set textwidth=120
set colorcolumn=+1
"" Airline Fix
set laststatus=2
"" Remapping
imap jk <Esc>
map <C-n> :NERDTreeToggle<CR>
let mapleader = "\<Space>"
nnoremap <Leader>w :w<CR>
"" Ctrlp Settings
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_working_path_mode = 'ra'
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*/.idea/*,*/_vagrant/*,*/node_modules/*