-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
89 lines (69 loc) · 2.19 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
syntax enable " enable syntax processing
set number " show line numbers
" ============ COLOR SCHEME ====================
" set color scheme
colorscheme koehler
" =========== TABS AND SPACES ==================
" set custom tab width
set shiftwidth=4
set softtabstop=4 " Number of spaces in tab when editing
set tabstop=4 " Number of visual spaces per tab
set expandtab " Tabs are spaces
" ============= Indentation ====================
set autoindent " Auto indenting line....I hope?
set smartindent " indent or dedent (undent?) based on set rules
set cindent " Identing for c programs
call plug#begin('~/.vim/plugged')
Plug 'fatih/vim-go'
Plug 'Valloric/YouCompleteMe', { 'do': './install.py' }
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'zeekay/vim-beautify'
Plug 'leafgarland/typescript-vim'
Plug 'Quramy/tsuquyomi'
Plug 'othree/eregex.vim'
Plug 'tpope/vim-surround'
call plug#end()
if !exists("g:ycm_semantic_triggers")
let g:ycm_semantic_triggers = {}
endif
let g:ycm_semantic_triggers['typescript'] = ['.']
set number
set t_Co=256
let g:go_fmt_command = "goimports"
command! GD GoDef
command! NT NERDTreeToggle
set nofoldenable " disable folding
command! BEA %!python -m json.tool
function! NumberToggle()
if(&relativenumber == 1)
set number
else
set relativenumber
endif
endfunc
nnoremap <C-n> :call NumberToggle()<cr>
inoremap ieee<space> <C-o>:GoIfErr<CR>
:call NumberToggle()
set pastetoggle=<F2>
let g:go_highlight_structs = 1
let g:go_highlight_methods = 1
let g:go_highlight_functions = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
hi javaRepeat ctermfg = green
hi javaType ctermfg = green
hi javaStorageClass ctermfg = green cterm=bold
hi javaDocTags ctermfg = green
hi Conditional ctermfg = green
hi LineNr ctermfg = red
hi Comment ctermfg = magenta
hi Statement ctermfg = blue
hi Function ctermfg = blue
hi Identifier ctermfg = blue
hi Exception ctermfg = green
hi Special ctermfg = green
hi String ctermfg = yellow
hi MatchParen ctermbg=none cterm=underline ctermfg=magenta
highlight Visual ctermfg = gray