My Vim lightweight Configuration

Source: Internet
Author: User

Syntax on
Set Nu!
Set Ai!
Set showmatch "sets the matching mode of parentheses
Let mapleader = ","
"Set cursorcolumn" Column Display
Set Partition Height = 1
Set Ts = 4 "tab with 4 spaces
Set Sw = 4
Set shiftwidth = 4
Set backspace = 2
Set LBR "Words cannot be broken
Set shortmess = ATI "Start does not display XX children's prompt
Set showcmd "command enabling prompt
Set smarttab
Set ignorecase
Set hlsearch
Set incsearch
Set wildmenu
Set confirm
Set Paste
Set clipboard + = unnamed
Set cindent
Set VB t_vb =
Set guioptions-= m
Set guioptions-= T
Set autoread
Set magic
Set nobackup
Set noswapfile
Filetype indent on
Filetype plugin on
Nnoremap J GJ
Nnoremap K GK
Xnoremap J GJ
Xnoremap K GK
Set cinoptions = {s, T0, N-2, P2s, (03 S, =. 5 S,> 1 s, = 1 s,: 1 s
"<@ Basic config end @>"

"<@ Coding config go> @"
Set encoding = UTF-8
Set fileencoding = UTF-8
Set fileencodings = UCS-bom, utf8, Chinese, Taiwan, ANSI
"<@ Coding config end> @"

Colo torte

Set nocp
Filetype plugin on
Map :! Ctags-r -- C ++-kinds = + p -- fields = + IAS -- extra = + q.
"<@ Taglist config end @>"

"<@ Buf explorer go @>"
"Let G: bufexplorershowrelativepath = 1
"Let G: bufpolicersortby = 'mru'
"Let G: bufexplorersplitright = 0
"Let G: bufpolicersplitvertical = 1
"Let G: bufexplorersplitvertsize = 30
"Let G: bufpolicerusecuritywindow = 1
"Let G: bufexplorermaxheight = 13
NMAP: bufexplorer
"" Enter tree switch u open file e open in new tab
: NMAP: VE
"<@ Buf explorer end @>"

"<@ Minibuffer settings go @>"
Let G: minibufexplmapwindownavvim = 1
Let G: minibufexplmapwindownavarrows = 1
Let G: minibufexplmapctabswitchbufs = 1
Let G: minibufexplmodseltarget = 1
Let G: minibufexplusesingleclick = 1
Autocmd bufread, bufnew: Call uminibufexplorer
"<@ Minibuffer settings end @>"

"<@ Winmangaer settings go @>"
"Let G: winmanagerwindowlayout =" bufexplorer, fileexplorer | taglist"
Let G: winmanagerwidth = 30
"Let G: defaultexplorer = 0
Nmap wm: wmtoggle
"<@ Winmangaer settings end @>"

Set nu
Set tabstop = 4
Set softtabstop = 4
Set shiftwidth = 4
Set autoindent
Set cindent
Set cinoptions = {s, T0, N-2, P2s, (03 S, =. 5 S,> 1 s, = 1 s,: 1 s

"Hi bookmark_highlight guifg = blue"

 

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.