-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc
82 lines (65 loc) · 1.97 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
" Leader
let mapleader = " "
" Use new regular expression engine
syntax on
set re=0
" colorscheme solarized
highlight ColorColumn ctermbg=5
set nowrap
set synmaxcol=200 " Limit syntax highlighting to lines under 200 chars
set clipboard=unnamed " Use system clipboard
set background=dark
set backspace=2 " Backspace deletes like most programs in insert mode
set nobackup
set nowritebackup
set noswapfile
set history=50
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
set laststatus=2 " Always display the status line
set autowrite " Automatically :write before running commands
set tabstop=2
set shiftwidth=2
set shiftround
set expandtab
set ignorecase
set smartcase
" set inccommand=nosplit
" Display extra whitespace
set list listchars=tab:»·,trail:·,nbsp:·
" Use one space, not two, after punctuation.
set nojoinspaces
" Use The Silver Searcher https://github.com/ggreer/the_silver_searcher
if executable('ag')
" Use Ag over Grep
set grepprg=ag\ --nogroup\ --nocolor
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
let g:ctrlp_user_command = 'ag -Q -l --nocolor --hidden -g "" %s'
" ag is fast enough that CtrlP doesn't need to cache
let g:ctrlp_use_caching = 0
endif
" Resize windows when you resize vim
autocmd VimResized * :wincmd =
" Disable netrw
let g:loaded_netrw = 1
let g:loaded_netrwPlugin = 1
" Open new split panes to right and bottom, which feels more natural
set splitbelow
set splitright
" Make it obvious where 80 characters is
set textwidth=80
set colorcolumn=+1
" Numbers
set number
set numberwidth=5
" ESLint
let g:syntastic_javascript_checkers = ['eslint']
" Mouse support
set mouse=a
" Enable the list of buffers
let g:airline#extensions#tabline#enabled = 1
" Local File
if filereadable(expand("/Users/baylee.schmeisser/.vimrc.env"))
source /Users/baylee.schmeisser/.vimrc.env
endif