码迷,mamicode.com
首页 > 系统相关 > 详细

垃圾jrF的vimrc配置(不用emacs)

时间:2017-12-17 12:19:24      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:div   idt   enc   shift   gcc   compiler   else   补充   end   

sy on
filetype on
imap jj <Esc>
imap ll <CR>
imap kk <Tab>
imap kkk //
map mm :
set shiftwidth=2
set tabstop=2
set softstop=2
set number
set guifont=Inconsolata\ 15
set encoding=utf-8
set mouse=a
set selection=exclusive
set selectmode=mouse,key
map <F7> :call CompileRunGcc()<CR>
func! CompileRunGcc()
    exec "w"
    if &filetype == 'c'
        exec "!g++ % -o %<"
        exec "! ./%<"
    elseif &filetype == 'cpp'
        exec "!g++ % -o %<"
        exec "! ./%<"
    endif
endfunc
map <F5> :call Rungdb()<CR>
func! Rungdb()
    exec "w"
    exec "!g++ % -g -o %<"
    exec "!gdb ./%<"
endfunc

就这样啦,以后还会补充的!

垃圾jrF的vimrc配置(不用emacs)

标签:div   idt   enc   shift   gcc   compiler   else   补充   end   

原文地址:http://www.cnblogs.com/Fraction/p/8051533.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!