-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
120 lines (98 loc) · 2.28 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
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" Color Schemes
Plugin 'dracula/vim'
Plugin 'tomasr/molokai'
" Utilities
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/nerdcommenter'
Plugin 'kien/ctrlp.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'junegunn/vim-easy-align'
Plugin 'tpope/vim-surround'
Plugin 'Townk/vim-autoclose'
Plugin 'vim-syntastic/syntastic'
Plugin 'ngmy/vim-rubocop'
Plugin 'wikitopian/hardmode'
" Ruby on Rails
Plugin 'tpope/vim-endwise'
Plugin 'vim-ruby/vim-ruby'
Plugin 'tpope/vim-rails'
" Elixir on Phoenix
Plugin 'elixir-lang/vim-elixir'
" HTML / CSS / JS
Plugin 'tpope/vim-haml'
Plugin 'slim-template/vim-slim.git'
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx'
Plugin 'kchmck/vim-coffee-script'
Plugin 'ap/vim-css-color'
" Git
Plugin 'tpope/vim-fugitive'
Plugin 'airblade/vim-gitgutter'
call vundle#end()
filetype plugin indent on
syntax on
command! W :w
let mapleader = "\\"
set mouse=ia
set shell=/bin/bash
set encoding=utf-8
set wildignore+=*/tmp/*,*.so,*.swp,*.zip
set switchbuf=useopen
set nolazyredraw
set notimeout
set ttimeout
set ttimeoutlen=10
set showbreak=↪
set autoindent
set tabstop=2
set softtabstop=2
set textwidth=0
set shiftwidth=2
set expandtab
set ignorecase
set smartcase
set showmatch
set showcmd
set cursorline
set incsearch
set hlsearch
set backspace=indent,eol,start
set noswapfile
set colorcolumn=80
set number
" Easy splitted window navigation
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
" NERDTree
nmap <tab> :NERDTreeToggle<cr>
" Clipboard
vmap <C-c> y:call system("pbcopy", getreg("\""))<CR>
nnoremap } <C-w>>
nnoremap { <C-w><lt>
xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)
" CTRLP
let g:ctrlp_working_path_mode = 0
let g:ctrlp_custom_ignore = 'node_modules\|tmp\|coverage\|_build\|deps\|vendor'
let g:ctrlp_show_hidden = 1
" Airline
set laststatus=2
" JSX
let g:jsx_ext_required = 0
" Syntastic
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_ruby_checkers = ['rubocop']
let g:syntastic_scss_checkers = ['stylelint']
" CSS Color
let g:cssColorVimDoNotMessMyUpdatetime = 1
" HardMode
autocmd VimEnter,BufNewFile,BufReadPost * silent! call HardMode()
colorscheme molokai