-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
143 lines (118 loc) · 4.67 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
set nocompatible " Don't force vi compatibility
filetype off
" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
" Vundle
" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'gre/play2vim'
Plugin 'quanganhdo/grb256'
set t_Co=256
" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
" Plugins
" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Plugin 'bling/vim-airline'
Plugin 'mileszs/ack.vim'
Plugin 'wincent/command-t'
" LANGUAGE SPECIFIC PLUGINS
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx'
Plugin 'derekwyatt/vim-scala'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
" color scheme
" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
" ask BENJAMIN what does this do?
"behave xterm
set term=xterm-256color
" colorscheme solarized
set background=dark
let g:solarized_termcolors=256
let g:solarized_termtrans=1
" colorscheme delek
colorscheme monokai
" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
let javascript_enable_domhtmlcss= 0
let g:jsx_ext_required = 0
set shell=bash
set lazyredraw
set autoread
set hidden
set viminfo=
set noesckeys
set number " always show line number
set relativenumber " Show relative line numbers
syntax on " Enable syntax highlighting
syntax enable
set ruler " Show current position in status bar
set cursorline " Highlight current line
set synmaxcol=800 " Don’t highlight lines longer than 800 chars
set wrap " Soft-wrap long lines
set linebreak
set showbreak=↪ " Prefix linebreaks with this fancy arrow
set scrolloff=5 " Keep at least 5 lines above/below
set title " Change terminal title
set showmode " Always show current mode
set laststatus=2 " Make sure airline isn’t hidden
set showmatch " show matching brackets
set shortmess=atI " Hide intro message
set showcmd " Show command as it’s being typed
set list " Show invisible characters
set noerrorbells " Disable bells
set wildmenu " Enhance command-line completion
set clipboard=unnamed " Use the system clipboard
set et " Pressing TAB creates spaces instead
set tabstop=2
set shiftwidth=2
set backspace=indent,eol,start " Allow backspace in insert mode
set lcs=tab:▸\ ,extends:❯,precedes:❮,nbsp:.,trail:·,eol:¬
set nobackup " Disable backups
set nowb " Disable write backups
set noswapfile " Disable swap files
set completeopt-=preview " Disable scratch preview buffer
set ttyfast
set encoding=utf-8 nobomb " Use UTF-8 without BOM
set nojoinspaces " Don’t double space after join
let g:airline_powerline_fonts = 1 " Custom airline font
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_symbols.space = "\ua0"
" Auto-reload vim when vimrc changes
augroup myvimrc
au!
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC | if has('gui_running') | so $MYGVIMRC | endif
augroup END
" Jump to beginning of line
noremap H 0
" Jump to end of line
noremap L $
let mapleader="\<space>"
" Clean trailing whitespace
nnoremap <leader>w mz:%s/\s\+$//<cr>:let @/=''<cr>`z
" Fast saving
nmap <leader>s :w!<cr>
" Fast saving
nmap <leader>q :q<cr>
" Switch to alternate buffer
nnoremap <leader><leader> <c-^>
iabbrev fliptable (╯°□°)╯ ┻━┻
set wildignore+=node_modules
set wildignore+=venv
set wildignore+=dist