-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc
143 lines (116 loc) · 3.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
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 " be iMproved, required
filetype off " required
set tabstop=2
set shiftwidth=2
set expandtab
set colorcolumn=100
set number
syntax enable
" devicons
let g:webdevicons_enable=1
let g:webdevicons_enable_nerdtree = 1
let g:webdevicons_enable_airline_statusline = 1
let g:airline_powerline_fonts = 1
set encoding=utf8
set guifont=Fira\ Code:h12
"set guifont=Hack\ Regular\ Nerd\ Font\ Complete:h11
let g:jsx_ext_required = 0 " Allow JSX in normal JS files
" Neocomplete on start
let g:neocomplete#enable_at_startup = 1
" ALE
let g:ale_linters = {
\ 'javascript': ['standard'],
\}
let g:airline#extensions#ale#enabled = 1
let g:ale_open_list = 1
set foldmethod=indent
set ignorecase " Makes search case-insensitive
set smartcase " Makes caps required
color jellybeans
set hlsearch " highlight search matches
set incsearch " incremental searching
set path=.,/usr/include,,**
" Ctrl p ignore
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git'
" Save .swp/.swo files to a dif directory
set directory=$HOME/.vim/swapfiles//
" Allows yank to pbcopy
set clipboard=unnamed
" Enable mouse lol
set mouse=a
" gently highlights the line the main cursor is on
set cursorline
" Set mapleader to spacebar
let mapleader = "\<Space>"
call plug#begin()
" alternatively, pass a path where Plug should install plugins
"call plug('~/some/path/here')
Plug 'tpope/vim-surround'
Plug 'easymotion/vim-easymotion'
Plug 'christoomey/vim-tmux-navigator'
Plug 'scrooloose/nerdcommenter'
Plug 'scrooloose/nerdtree'
Plug 'jelera/vim-javascript-syntax'
Plug 'sheerun/vim-polyglot'
Plug 'pangloss/vim-javascript'
"Plug 'Shougo/neocomplete'
Plug 'ntpeters/vim-better-whitespace'
Plug 'mattn/emmet-vim'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'rust-lang/rust.vim'
Plug 'vimwiki/vimwiki'
Plug 'maxmellon/vim-jsx-pretty'
Plug 'fatih/vim-go'
Plug 'hashivim/vim-terraform'
Plug 'w0rp/ale'
Plug 'leafgarland/typescript-vim'
Plug 'ryanoasis/vim-devicons'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Track the engine.
Plug 'SirVer/ultisnips'
"
" " Snippets are separated from the engine. Add this if you want them:
Plug 'honza/vim-snippets'
" All of your Plugins must be added before the following line
call plug#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
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" "Syntastic settings
"let g:syntastic_javascript_checkers = ['standard']
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
"set statusline+=%*
"let g:syntastic_always_populate_loc_list = 1
"let g:syntastic_auto_loc_list = 1
"" let g:syntastic_check_on_open = 1
"let g:syntastic_check_on_wq = 0
"let g:syntastic_html_tidy_exec = 'tidy5'
"""""""""""""""""
" NERDTRee settings
"""""""""""""""""
let NERDTreeShowHidden=1
map <C-n> :NERDTreeToggle<CR>
nnoremap <leader>a :NERDTreeFind<cr>
let NERDTreeIgnore=['\.DS_Store$']
" json formatting
nmap =j :%!python -m json.tool<CR>
" UltiSnip settings
"
" " Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger="<C-w>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
" golang
let g:go_version_warning = 0