-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
42 lines (34 loc) · 899 Bytes
/
.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
syntax on
set smartindent
set tabstop=8
set shiftwidth=8
set expandtab
set pastetoggle=<C-g>
"set paste
"set autoindent
highlight Comment ctermfg=darkgrey
highlight Number ctermfg=blue
highlight String ctermfg=blue
"set t_Co=256
"colorscheme desert
set hlsearch
set colorcolumn=80
" clipboard
vmap <C-c> y: call system("xclip -i -selection clipboard", getreg("\""))<CR>
nmap <C-v> :call setreg("\"",system("xclip -o -selection clipboard"))<CR>p
" buffers
"map <c-space> :b#<CR>
"map Ctrl-Space :b#<CR>
"map <C-space> :b#<CR>
map <c-h> :b#<CR>
map <c-j> :bn<CR>
map <c-k> :bp<CR>
map <c-l> :ls<CR>
map <c-p> :pwd<CR>
"<bs><bs><space>
:ab mainc int main(void)<CR>{<CR><CR><CR><CR>}<up><up><tab><bs>
:ab ioh #include <iostream><CR><left><left>
:ab stdd using namespace std;<CR>
:ab ppp printf("hit\n");
:ab vardd var_dump("hit");<CR>die;
":ab mainc int main(void)<CR>{<CR><CR><CR><CR>}<bs><up>