-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
134 lines (104 loc) · 2.71 KB
/
Copy pathvimrc
File metadata and controls
134 lines (104 loc) · 2.71 KB
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
" VUNDLE
set nocompatible
"set rtp+=~/.vim/bundle/Vundle.vim
"call vundle#begin()
"Plugin 'https://github.com/Valloric/YouCompleteMe.git'
"call vundle#end()
"filetype plugin indent on
" PATHOGEN
execute pathogen#infect()
" SYNTASTIC
" C / C++
let g:syntastic_cpp_compiler = 'clang++'
if has('macunix')
let g:syntastic_cpp_compiler_options = ' -std=c++11 -stdlib=libc++ -Wall -Werror -Wextra'
elseif has('unix')
let g:syntastic_cpp_compiler_options = ' -std=c++11 -Wall -Werror -Wextra'
endif
let g:syntastic_check_on_open=1
let g:syntastic_check_on_wq = 1
let g:syntastic_enable_signs=1
let g:syntastic_cpp_check_header = 1
let g:syntastic_cpp_remove_include_errors = 1
let g:syntastic_c_include_dirs = ['../../../include', '../../include',
\ '../include','./include', '../../../inc',
\ '../../inc','../inc','./inc']
" RUST
let g:syntastic_rust_checkers = ['rustc']
"NERDTREE CONFIG
let g:NERDTreeQuitOnOpen = 1
" SYNTAX
syntax on
set background=light
"colorscheme solarized
"let g:solarized_termcolors=256
"let g:solarized_contrast="high"
"let g:molokai_original = 1
"INDENT AND UTILITIES
set encoding=utf-8
set mouse=a
set smartindent
set ai
set nu
set cc=81
set t_Co=256
set cursorline
set shiftwidth=4
set tabstop=4
" ENABLE SPECIFIC EXTENSION CONFIG FILE
set modeline
filetype on
filetype plugin on
"hi CursorLine term=bold cterm=bold guibg=Grey40
set autochdir
set backspace=indent,eol,start
noremap <C-g> :NERDTreeToggle<CR>
" MOVES BETWEEN BUF
noremap <S-Right> <C-w><Right>
noremap <S-Left> <C-w><Left>
noremap <S-Up> <C-w><Up>
noremap <S-Down> <C-w><Down>
inoremap <S-Right> <Esc><C-w><Right>i
inoremap <S-Left> <Esc><C-w><Left>i
inoremap <S-Up> <Esc><C-w><Up>i
inoremap <S-Down> <Esc><C-w><Down>i
" AUTO-CLOSE
inoremap {{ {}<Left>
inoremap {<CR> {<CR>}<Esc>O
inoremap (( ()<Left>
inoremap (<CR> (<CR>)<Esc>O
inoremap (; ();<Left><Left>
inoremap [[ []<Left>
inoremap "" ""<Left>
inoremap '' ''<Left>
map zz <Esc>:q<CR>
map za <Esc>:qa<CR>
map z! <Esc>:q!<CR>
map zw <Esc>:x<CR>
map zx <Esc>:w<CR>
imap jj <Esc>
inoremap <CR>\ <Esc>o
inoremap <CR>\| <Esc>O
"ADD ; AT END OF LINE
inoremap ;; <Esc>$a;
" CLOSE TAG HTML AND NEWLINE
"inoremap >> <Space><bar><Esc>T<yt<Space>
" \$a<BS><BS>><Esc>
" \$a</<Esc>pa>
" \<Esc>F<i<CR><CR><Up><Tab>
" FOR DJANGO
"inoremap {% {% %}<Left><Left><Left>
"inoremap {{ {{ }}<Left><Left><Left>
" COLUMN NUMBER
set ruler
" HIGHLIGHT DOUBLE SPACES
set hlsearch
"highlight ExtraWhitespace ctermbg=red guibg=red
"autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
"match ExtraWhitespace / \{2,\}/
" HIGHLIGHT TRAILING WHITESPACE
let c_space_errors = 1
" BACKUP
set nobackup
set noswapfile
set scrolloff=5