-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
73 lines (61 loc) · 1.7 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
set number
set hidden
set nowrap
set tabstop=2
set autoindent
set copyindent
set shiftwidth=2
set showmatch
set smarttab
set hlsearch
set incsearch
set history=1000 " remember more commands and search history
set undolevels=1000 " use many muchos levels of undo
set wildignore=*.swp,*.bak,*.pyc,*.class
set title " change the terminal's title
set visualbell " don't beep
set noerrorbells " don't beep
let g:jsx_ext_required = 0 " Allow JSX in normal JS files
let g:spotify_country_code = 'CR'
" KEY MAPPINGS
let mapleader = "\<Space>"
noremap <leader>ev :vsplit $MYVIMRC<cr>
map <leader>ss :NERDTreeToggle<CR>
map <leader>spt :Spotify
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
inoremap jj <Esc>
nnoremap ; :
if has("autocmd")
autocmd bufwritepost .vimrc source $MYVIMRC
endif
call plug#begin('~/.vim/plugged')
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'kristijanhusak/vim-hybrid-material'
Plug 'scrooloose/syntastic'
Plug 'tpope/vim-surround'
Plug 'kien/ctrlp.vim'
Plug 'bling/vim-airline'
Plug 'pangloss/vim-javascript'
Plug 'fatih/vim-go'
Plug 'moll/vim-node'
Plug 'vim-airline/vim-airline-themes'
Plug 'easymotion/vim-easymotion'
Plug 'mxw/vim-jsx'
Plug 'takac/vim-spotifysearch'
call plug#end()
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall | source $MYVIMRC
endif
filetype on
syntax on
set background=dark
let g:airline_theme = "hybrid"
colorscheme hybrid_reverse
set guifont=Menlo\ Regular:h18