Vim's Learning Journey

Source: Internet
Author: User
Tags set background

VIM is the God of editors

1.vimtutor (Vim comes with)
2.vim-adventures
3.vim Configuration

Set nocompatible
set lines=40 columns=150
set number
set go=
set ruler
syntax on
set ShowCmd

syntax enable
set Background=dark
colorscheme Molokai
set t_co=256
set Guifont=yahei_consolas _hybrid:h14

filetype on
set history=1000

set autoindent
set smartindent
set backspace= Indent,eol,start
set tabstop=4
set shiftwidth=4
set Showmatch
set cursorline

map <c-a > GGVG "+y
map <F9>: Call RUN1 () <CR>
func! RUN1 ()
    exec "W"
    exec "!g++-wall%-o%<"
endfunc

map <F10>: Call Run2 () <CR>
func! RUN2 ()
    exec "!%<"
endfunc

map <F11>: Call Run3 () <CR>
func! RUN3 ()
    exec "W"
    exec "!g++-wall%-o%<"
    exec "!%<"
endfunc


set clipboard=unnamedplus< C37/>au bufread,bufnewfile,bufenter * CD%:p: H
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.