-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrcold
More file actions
executable file
·50 lines (35 loc) · 798 Bytes
/
.vimrcold
File metadata and controls
executable file
·50 lines (35 loc) · 798 Bytes
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
set nocompatible
set guioptions+=T
"autobrackets
ino " ""<left>
ino ' ''<left>
ino ( ()<left>
ino [ []<left>
ino { {}<left>
ino {<CR> {<CR>}<ESC>O
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
set shell=bash
set backspace=indent,eol,start
set whichwrap+=<,>h,l,[,]
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
set textwidth=120
set t_Co=256
syntax enable
let g:solarized_termcolors=256
set background=dark
colorscheme solarized
set ts=4 sw=4 noet
set number
set showmatch
set comments=s1:/*,mb:\ *,elx:\ */
"omnicomplete
imap <F2> <ESC>:w<CR>i
autocmd filetype cpp nnoremap <F7> :!g++ % -ggdb -o %:r <CR>
autocmd filetype cpp nnoremap <F8> :!g++ % -ggdb -o %:r -lncurses<CR>
autocmd filetype cpp nnoremap <F5> :!g++ % -ggdb -o %:r && ./%:r <CR>