Ubuntu under Vim configuration (brush title and match two sets)

Source: Internet
Author: User



1. Usually brush the question practice use




"The mswin.vim plug-in provides the function of editing shortcut keys under Windows
source $VIMRUNTIME/mswin.vim
Behave MSWin
Set nu
set history=1000000
set tabstop=4
set shiftwidth=4
Set smarttab
Set cindent
Set nobackup
set noswapfile
Set mouse=a
Colo Torte
"Set font
set guifont=DejaVuSans\Mono\ 12
"F6 compile run
map <F6> :call CR()<CR>
Func! CR ()
Exec "W"
exec "! g++ % -o %<"
exec "! ./%<"
Endfunc
imap <c-]> {<cr>}<c-o>O<left><right>
"F2 insert necessary code
map <F2> :call SetTitle()<CR>
func SetTitle()
Let L = 0
let l = l + 1 | call setline(l, '/*')
let l = l + 1 | call setline(l, ' * Author: yew1eb')
let l = l + 1 | call setline(l, ' * Created Time:  '.strftime('%c'))
let l = l + 1 | call setline(l, ' * File Name: '.expand('%'))
let l = l + 1 | call setline(l, ' */')
let l = l + 1 | call setline(l, '#include <ctime>')
let l = l + 1 | call setline(l, '#include <cmath>')
let l = l + 1 | call setline(l, '#include <cstdio>')
let l = l + 1 | call setline(l, '#include <cstdlib>')
let l = l + 1 | call setline(l, '#include <cstring>')
let l = l + 1 | call setline(l, '#include <algorithm>')
let l = l + 1 | call setline(l, '#include <iostream>')
let l = l + 1 | call setline(l, '#include <string>')
let l = l + 1 | call setline(l, '#include <vector>')
let l = l + 1 | call setline(l, '#include <stack>')
let l = l + 1 | call setline(l, '#include <queue>')
let l = l + 1 | call setline(l, '#include <set>')
let l = l + 1 | call setline(l, '#include <map>')
let l = l + 1 | call setline(l, 'using namespace std;')
let l = l + 1 | call setline(l, 'typedef long long ll;')
let l = l + 1 | call setline(l, 'const int inf = 0x7fffffff;')
let l = l + 1 | call setline(l, 'const ll  INF = 1e18;')
let l = l + 1 | call setline(l, 'const double eps = 1e-8;')
let l = l + 1 | call setline(l, 'const double pi = acos(-1.0);')
let l = l + 1 | call setline(l, '')
let l = l + 1 | call setline(l, 'int main() {')
let l = l + 1 | call setline(l, '    return 0;')
let l = l + 1 | call setline(l, '}')
let l = l + 1 | call setline(l, '')






2. Match site use




syntax on
set nu ts=4 sw=4 mouse=a cin
colo evening








Ubuntu under Vim configuration (brush title and match two sets)


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.