-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
45 lines (37 loc) · 1.15 KB
/
vimrc
File metadata and controls
45 lines (37 loc) · 1.15 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
set exrc
set secure
filetype plugin indent on
"set textwidth=80 " maximum of 80 characters per line
set textwidth=0 " no line wrapping
set colorcolumn=81 " show the 81st line clearly
set tabstop=2 " 1 tab = <tabstop> spaces
set softtabstop=2
set shiftwidth=2 " for when you use << and >>
set expandtab " expandtab = replace tab with spaces
set autoindent " on newline, keep current indentation
set scrolloff=5
syntax enable
set background=dark
colorscheme elflord
set number
set numberwidth=5
highlight LineNr term=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
set hlsearch
match Error /\s\s*\n/
"set list
"set listchars=tab:>\
"highlight SpecialKey guifg=red ctermfg=yellow
augroup project
autocmd!
autocmd BufRead,BufNewFile *.h,*.c set filetype=c.doxygen
augroup END
nnoremap <F2> :!valgrind ./
nnoremap <F3> :!./
nnoremap <F4> :make!<cr>
nnoremap <F5> :w<enter>
nnoremap <F6> :xa<enter>
nnoremap <F7> :tabp<enter>
nnoremap <F8> :tabn<enter>
nnoremap <F9> :tabe
nnoremap <F10> :!cd .. && make<cr>
"map <special> <F12> :set filetype=singular<cr> :set indentexpr=<cr>