-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
76 lines (57 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
74
75
76
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'wincent/command-t'
Plugin 'mileszs/ack.vim'
Plugin 'The-NERD-Commenter'
Plugin 'wting/rust.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'kchmck/vim-coffee-script'
Plugin 'wookiehangover/jshint.vim'
Plugin 'digitaltoad/vim-jade'
Plugin 'cespare/vim-toml'
Plugin 'fatih/vim-go'
Plugin 'vim-ruby/vim-ruby'
Plugin 'rking/ag.vim'
Plugin 'tpope/vim-dispatch'
Plugin 'bling/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'suan/vim-instant-markdown'
Plugin 'eiginn/netrw'
Plugin 'kana/vim-textobj-user'
Plugin 'jceb/vim-textobj-uri'
Plugin 'mattn/vim-sqlfmt'
Plugin 'tyru/open-browser.vim'
Plugin 'neoclide/coc.nvim', {'branch': 'release'}
call vundle#end()
filetype plugin indent on
set number
set colorcolumn=81
autocmd BufWinEnter * match Error /\%>80v.\+\|\s\+$\|^\s*\n\+\%$/
set dir=~/.vim/swap//,/var/tmp//,/tmp//,.
set hlsearch
set expandtab
syntax on
cmap w!! w !sudo tee > /dev/null %
let g:CommandTFileScanner='watchman'
let g:airline#extensions#tabline#enabled=1
let g:airline_theme='papercolor'
set noshowmode
set laststatus=2
let g:ackprg = 'ag --vimgrep'
let g:netrw_nogx = 1
nmap gx <Plug>(openbrowser-smart-search)
vmap gx <Plug>(openbrowser-smart-search)
set clipboard=unnamed
if has('gui_running')
set guioptions=m,T
endif
nnoremap <S-t> :vertical rightb terminal<CR>
nnoremap t :below terminal<CR>
let g:ycm_autoclose_preview_window_after_completion=1
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
command! Sh new | setlocal bt=nofile bh=wipe nobl noswapfile nu
command! Sv vnew | setlocal bt=nofile bh=wipe nobl noswapfile nu