My vim (Gvim) configuration

Source: Internet
Author: User
Tags diff
Everyone is very strong, can share with it.

because temporarily does not have the Linux, therefore first uses the Gvim to make up a bit.

A little bit of a problem before ... UPD (2018.4.01)

My configuration

SOURCE $VIMRUNTIME/vimrc_example.vim Source $VIMRUNTIME/mswin.vim behave mswin set AI set nu set cin set Hlsearch Set Inc Search set shiftwidth=8 set tabstop=8 set softtabstop=8 set mouse=a set smartindent set SHOWCMD syntax on IMAP JJ <es C> Inoremap (() <esc>i inoremap [[]<esc>i inoremap ' "" <esc>i inoremap {{}<esc>i<cr>&lt ; Esc>o Winpos 5 5 Set lines=30 set columns=116 map <F2>:!start gvim $vim/_VIMRC <CR> autocmd FileType C  PP Set cindent autocmd FileType cpp map <F3>:!start gvim%<.in <CR> autocmd FileType cpp map <F4>: !start gvim%<.out <CR> autocmd FileType cpp map <F9>: w <CR>:! g++%-o%<-g-wall-wextra-wconversion <CR> autocmd FileType cpp map <C-F9>: w <CR>:! g++%-o%<-o2-wall-wextra-wconversion <CR> autocmd FileType cpp map <F10>:! GDB%<--silent <CR> autocmd FileType cpp map <F12>:!

%< <CR>Color Desert Set Guifont=courier_new:h16:b:cdefault set Diffexpr=mydiff () function Mydiff () Let opt = '-a--binary ' If &diffopt =~ ' icase ' | Let opt = opt. '-I ' | endif if &diffopt =~ ' Iwhite ' | Let opt = opt. '-B ' | endif let arg1 = v:fname_in if arg1 =~ ' | Let arg1 = ' "'. Arg1. '"' | endif Let arg2 = v:fname_new if arg2 =~ ' | Let arg2 = ' "'. Arg2. '"' | endif Let Arg3 = v:fname_out if Arg3 =~ ' | Let Arg3 = ' "'. Arg3. '"' |
        endif if $VIMRUNTIME =~ ' if &sh =~ ' \<cmd ' if Empty (&shellxquote) Let L:shxq_sav = ' Set shellxquote& endif Let cmd = ' "'. $VIMRUNTIME. ' \diff ' ' else let cmd = substitute ($VIMRUNTIME, ' ', ' "', '). ' \diff "' endif else let cmd = $VIMRUNTIME. ' \diff ' endif silent execute '! '. Cmd. ' ' . Opt. Arg1. ' ' . Arg2. ' > '. Arg3 if exists (' L:shxq_sav ') let &shellxquote=l:shxq_sav endif endfunction
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.