Painful conversion to VIM + GDB + GPP

Source: Internet
Author: User
Tags imap

Recently, I was a beginner in vim and wrote a very ugly vimrc. I will post it and see it ..

Set nocompatiblesource $ vimruntime/vimrc_example.vimsource $ vimruntime/mswin. vimbehave mswin "I just learned Vim. This configuration file will be followed by a shortcut key similar to (XP) colorscheme eveningset cursorlineset shiftwidth = 2 set expandtabset numbercompiler GCC .. <F2> Save <F9> compile <C-F9> RUN <F12> switch tag <F3> new tag open <F4> enable GDB debug NMAP <F2>: W <CR> imap <F2> <ESC> <F2> anmap <F9> <F2> :! "D: \ Program Files \ DEV-CPP \ bin \ g00000000.exe" %-g-wall-o % <> E 2> & 1 <CR>: cfile e <CR>: CW <CR> imap <F9> <ESC> <F9> NMAP <C-F9> <F9>: CCL <CR> :! % <CR> imap <C-F9> <ESC> <C-F9> NMAP <F3>: tabnewimap <F3> <ESC> <F3> NMAP <F4> :! GDB % <CR> imap <F4> <ESC> <F4> Sy onset cindentset guioptions-= mset guioptions-= tset nobackup

So $ vimruntime/mswin. Vim "added the colorscheme eveningset cursorlineset shiftwidth = 2 set expandtabset numberset autochdirset hlscompiler GCC shortcut after learning vim .. <F2> Save <F9> compile <C-F9> RUN <F12> switch tag <F3> new tag open <F4> enable GDB debug NMAP <F2>: W <CR> imap <F2> <ESC> <F2> anmap <F9> <F2> :! G ++ %-g-wall-o % <> E 2> & 1 <CR>: cfile e <CR>: CW <CR> imap <F9> <ESC> <F9> NMAP <C-F9> <F9>: CCL <CR> :!. /% <CR> imap <C-F9> <ESC> <C-F9> NMAP <F12> gtimap <F12> <ESC> <F12> NMAP <F3>: tabnew imap <F3> <ESC> <F3> NMAP <F4> :! GDB % <CR> imap <F4> <ESC> <F4> Sy onset cindent

Code folding is still difficult to use, mainly because it is too ugly

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.