标签:img -o hid play sof vim gdb ide tabstop
noip考完啦
不管成绩怎么样,以后不用Dev啦。
尝试一下传说中的Vim
Vim8.0
https://files.cnblogs.com/files/zwfymqz/gvim80.zip
VIM中文帮助
https://files.cnblogs.com/files/zwfymqz/vimcdoc-1.7.0-setup.zip
_Vimrce配置文件
1 source $VIMRUNTIME/vimrc_example.vim 2 source $VIMRUNTIME/mswin.vim 3 behave mswin 4 5 colors evening 6 :set guifont=Consolas:h17 7 :set expandtab 8 :retab! 9 set diffexpr=MyDiff() 10 function MyDiff() 11 let opt = ‘-a --binary ‘ 12 if &diffopt =~ ‘icase‘ | let opt = opt . ‘-i ‘ | endif 13 if &diffopt =~ ‘iwhite‘ | let opt = opt . ‘-b ‘ | endif 14 let arg1 = v:fname_in 15 if arg1 =~ ‘ ‘ | let arg1 = ‘"‘ . arg1 . ‘"‘ | endif 16 let arg2 = v:fname_new 17 if arg2 =~ ‘ ‘ | let arg2 = ‘"‘ . arg2 . ‘"‘ | endif 18 let arg3 = v:fname_out 19 if arg3 =~ ‘ ‘ | let arg3 = ‘"‘ . arg3 . ‘"‘ | endif 20 if $VIMRUNTIME =~ ‘ ‘ 21 if &sh =~ ‘\<cmd‘ 22 if empty(&shellxquote) 23 let l:shxq_sav = ‘‘ 24 set shellxquote& 25 endif 26 let cmd = ‘"‘ . $VIMRUNTIME . ‘\diff"‘ 27 else 28 let cmd = substitute($VIMRUNTIME, ‘ ‘, ‘" ‘, ‘‘) . ‘\diff"‘ 29 endif 30 else 31 let cmd = $VIMRUNTIME . ‘\diff‘ 32 endif 33 silent execute ‘!‘ . cmd . ‘ ‘ . opt . arg1 . ‘ ‘ . arg2 . ‘ > ‘ . arg3 34 if exists(‘l:shxq_sav‘) 35 let &shellxquote=l:shxq_sav 36 endif 37 endfunction 38 39 :set shiftwidth=4 40 :set softtabstop=4 41 :set nu! 42 :set tabstop=4 43 syntax on 44 :set smartindent 45 :set mouse=a 46 :set autoindent 47 48 function Compile() 49 :w 50 exec "!g++ % -o %< -Wall -Wextra -g3 -DLOCAL" 51 endfunction 52 53 function Run() 54 exec "!%<" 55 endfunction 56 57 function Debug() 58 exec "!gdb" 59 endfunction 60 61 function CompileAndRun() 62 call Compile() 63 call Run() 64 endfunction 65 66 function FileTest() 67 :w 68 exec "!g++ % -o %<" 69 call Run() 70 endfunction 71 72 function O2Compile() 73 :w 74 exec "!g++ % -o %< -Wall -Wextra -g3 -DLOCAL -O2" 75 endfunction 76 77 function O2CompileAndRun() 78 call O2Compile() 79 call Run() 80 endfunction 81 82 function O2FileTest() 83 :w 84 exec "!g++ % -o %< -Wall -Wextra -g3 -O2" 85 call Run() 86 endfunction 87 88 89 :nmap <F5> :call Debug()<CR> 90 :nmap <F9> :call Compile()<CR> 91 :nmap <F10> :call Run()<CR> 92 :nmap <F11> :call CompileAndRun()<CR> 93 :nmap <S-F9> :call O2Compile()<CR> 94 :nmap <S-F11> :call O2CompileAndRun()<CR> 95 :nmap <F12> :call FileTest()<CR> 96 :nmap <S-F12> :call O2FileTest()<CR> 97 98 99 " 配置多语言环境,解决中文乱码问题 100 101 if has("multi_byte") 102 " UTF-8 编码 103 set encoding=utf-8 104 set termencoding=utf-8 105 set formatoptions+=mM 106 set fencs=utf-8,gbk 107 if v:lang =~? ‘^/(zh/)/|/(ja/)/|/(ko/)‘ 108 set ambiwidth=double 109 endif 110 if has("win32") 111 source $VIMRUNTIME/delmenu.vim 112 source $VIMRUNTIME/menu.vim 113 language messages zh_CN.utf-8 114 endif 115 else 116 echoerr "Sorry, this version of (g)vim was not compiled with +multi_byte" 117 endif
标签:img -o hid play sof vim gdb ide tabstop
原文地址:http://www.cnblogs.com/zwfymqz/p/7856570.html