-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
107 lines (92 loc) · 3.32 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
set encoding=utf-8
set shell=/bin/sh
set nocompatible " be iMproved, required
set autoindent " set auto indent
set ts=2 " set indent to 2 spaces
set shiftwidth=2
set expandtab
set showmatch " show bracket matches
set ignorecase " ignore case in searches
set hlsearch " highlight all search matches
set cursorline " highlight current line
set smartcase " pay attention to case when caps are used
set incsearch " show search results as I type
set vb " enable visual bell (disable audio bell)
set ruler " show row and column in footer
set scrolloff=2 " minimum lines above/below cursor
set laststatus=2 " always show last status
set list listchars=tab:··,trail:· " show extra space characters
set nofoldenable " disable code folding
set clipboard=unnamed " use the system clipboard
set backspace=2 " Disable the delete button (backspace) in normal mode
set relativenumber " show relative line numbers
" set number " Enable the line numbers
set noswapfile " Disable swap files creation
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" My Bundles
Plugin 'chriskempson/base16-vim'
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-rails'
Plugin 'tpope/vim-endwise'
Plugin 'tpope/vim-commentary'
Plugin 'tpope/vim-surround'
Plugin 'airblade/vim-gitgutter'
Plugin 'godlygeek/tabular'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'mileszs/ack.vim'
" Plugin 'othree/yajs.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx'
" Plugin 'rizzatti/dash.vim'
Plugin 'w0rp/ale'
" Plugin 'morhetz/gruvbox'
" Plugin 'hwartig/vim-seeing-is-believing'
Plugin 'junegunn/fzf.vim'
" Open new split panes naturally to the right and bottom
set splitbelow
set splitright
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" Switch syntax highlighting on, when the terminal has colors
if (&t_Co > 2 || has("gui_running")) && !exists("syntax_on")
syntax on
endif
" set background dark and colocrscheme
set background=dark
let base16colorspace=256
" colorscheme gruvbox
colorscheme base16-default-dark
" color Tomorrow-Night
" Set font
if has("gui_running")
set guifont=Monaco
end
" Get off my lawn
nnoremap <Left> :echoe "Use h"<CR>
nnoremap <Right> :echoe "Use l"<CR>
nnoremap <Up> :echoe "Use k"<CR>
noremap <Down> :echoe "Use j"<CR>
" Nerdtree conf
map <C-n> :NERDTreeToggle<CR>
" ctrlp configuration
let g:ctrlp_map = '<c-p>'
let g:ctrlp_max_height = 15
let g:ctrlp_working_path_mode = 'ra'
let g:ctrlp_match_window_reversed = 0
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*/node_modules/*
" hint to keep lines short
if exists('+colorcolumn')
set colorcolumn=80
endif
" set leader key to comma
let mapleader = ","
" JSX
let g:jsx_ext_required = 0 " Allow JSX in normal JS files
" let g:syntastic_javascript_checkers = ['eslint']
" let g:syntastic_ruby_checkers = ['rubocop']
" let g:syntastic_ignore_files = ['^/usr/', '*node_modules*', '*vendor*', '*build*', '*LOCAL*', '*BASE', '*REMOTE*']