The first "do not use the vi-compatible keyboard mode setnocompatible" detects the file type filetypeon "records the number of historical rows sethistory = 1000". After modifying a file, the system automatically backs up the file, add "~" to the original file name "Suffix ifhas (" vms ") setnobackupelsesetbackupendif" can be used anywhere in the buffer with the mouse setmouse = asetselection = e
First
"Do not use the vi-compatible keyboard Mode
Set nocompatible
"Detection file type
Filetype on
"Records the number of historical rows
Set history = 1000
"After a file is modified, it is automatically backed up. The backup file name is added to the original file name." ~ "Suffix
If has ("vms ")
Set nobackup
Else
Set backup
Endif
"You can use the mouse anywhere in the buffer.
Set mouse =
Set selection = exclusive
Set selectmode = mouse, key
"--------
"Interface settings
"--------
"Show row number
Set nu!
"Highlight the current row
Set cursorline
"Black is used for background
Set background = dark
"Remove toolbar from vim's GUI version
Set guioptions-= T
"During editing, the cursor position is displayed in the lower right corner.
Set ruler
"Always show the status line
Set laststatus = 2
"-------
"Format settings
"-------
"Automatic line feed
Set wrap
"Line feed
Set linebreak
"Automatic Alignment
Set autoindent
"Smart alignment
Set smartindent
"Set auto indent
Set ai!
"Set the tab key to 4 spaces.
Set tabstop = 4
"Do not use spaces instead of tabs.
Set noexpandtab
"Four spaces are set to interlace.
Set shiftwidth = 4
"Make the backspace key available
Set backspace = 2
"Allow backspace and photomark keys to span row boundaries
Set whichwrap + = <,>, h, l
"-------
"Programming settings
"-------
"Syntax High Brightness Display
Syntax on
"Set the matching mode, similar to the right brace that will be matched when a left brace is entered.
Set showmatch
"-------
"Search related settings
"-------
"By default, the search result is displayed in High Brightness. This setting disables the highlighted display.
"Set nohlsearch
"Incremental search with input"
Set incsearch
"Set Font
Set guifont = Monaco \ 10
"Do not use the vi-compatible keyboard mode set nocompatible
"Detection file type filetype on
"Set history = 1000 records the number of historical rows
"After a file is modified, it is automatically backed up. The backup file name is added to the original file name." ~ "Suffix if has (" vms ") set nobackupelseset backupendif
"You can use the mouse set mouse = aset selection = exclusiveset selectmode = mouse, key anywhere in the buffer.
"--------" Interface settings "--------
"Display the row number set nu!
"Highlight the current row set cursorline
"The background uses Black set background = dark
"Remove toolbarset guioptions-= T from the vim GUI version
"During editing, the cursor position set ruler is displayed in the lower right corner.
"Always show the status lineset laststatus = 2
"-------" Format setting "-------
"Automatically wrap set wrap
Set linebreak
"Automatic alignment set autoindent
"Smart alignment set smartindent
"Set auto indent set ai!
"Set the tab key to 4 spaces: set tabstop = 4
"Do not use spaces to replace the tab set noexpandtab.
"Set shiftwidth = 4 when the line is staggered
"Make the backspace key available set backspace = 2
"Allow backspace and the optical mark key to span the row Boundary set whichwrap + = <,>, h, l
"-------" Programming Settings "-------
Syntax on
"Set matching mode, similar to the right brace set showmatch that will be matched when a left brace is entered.
"-------" Search related settings "-------
"By default, the search results are displayed in High Brightness. This setting disables the highlighted display." set nohlsearch
"Search for set incsearch with input increments
"Set guifont = Monaco \ 10
Second
"Vim color file
"
"Author: Tomas Restrepo
"
"Note: Based on the monokai theme for textmate
"By Wimer Hazenberg and its darker variant
"By Hamish Stuart Macpherson
"
Hi clear
Set background = dark
If version> 580
"No guarantees for version 5.8 and below, but this makes it stop
"Complaining
Hi clear
If exists ("syntax_on ")
Syntax reset
Endif
Endif
Let g: colors_name = "molokai"
If exists ("g: molokai_original ")
Let s: molokai_original = g: molokai_original
Else
Let s: molokai_original = 0
Endif
Hi Boolean guifg = # AE81FF
Hi Character guifg = # E6DB74
Hi Number guifg = # AE81FF
Hi String guifg = # E6DB74
Hi Conditional guifg = # F92672 gui = bold
Hi Constant guifg = # AE81FF gui = bold
Hi Cursor guifg = #000000 guibg = # F8F8F0
Hi Debug guifg = # BCA3A3 gui = bold
Hi Define guifg = # 66D9EF
Hi Delimiter guifg = # 8F8F8F
Hi DiffAdd guibg = # 13354A
Hi DiffChange guifg = # 89807D guibg = #4C4745
Hi DiffDelete guifg = #960050 guibg = #1E0010
Hi DiffText guibg = #4C4745 gui = italic, bold
Hi Directory guifg = # A6E22E gui = bold
Hi Error guifg = #960050 guibg = #1E0010
Hi ErrorMsg guifg = # F92672 guibg = #232526 gui = bold
Hi Exception guifg = # A6E22E gui = bold
Hi Float guifg = # AE81FF
Hi FoldColumn guifg = #465457 guibg = #000000
Hi Folded guifg = #465457 guibg = #000000
Hi Function guifg = # A6E22E
Hi Identifier guifg = # FD971F
Hi Ignore guifg = #808080 guibg = bg
Hi IncSearch guifg = # C4BE89 guibg = #000000
Hi Keyword guifg = # F92672 gui = bold
Hi Label guifg = # E6DB74 gui = none
Hi Macro guifg = # C4BE89 gui = italic
Hi SpecialKey guifg = # 66D9EF gui = italic
Hi MatchParen guifg = #000000 guibg = # FD971F gui = bold
Hi ModeMsg guifg = # E6DB74
Hi MoreMsg guifg = # E6DB74
Hi Operator guifg = # F92672
"Complete menu
Hi Pmenu guifg = # 66D9EF guibg = #000000
Hi PmenuSel guibg = #808080
Hi PmenuSbar guibg =# 080808
Hi PmenuThumb guifg = # 66D9EF
Hi PreCondit guifg = # A6E22E gui = bold
Hi PreProc guifg = # A6E22E
Hi Question guifg = # 66D9EF
Hi Repeat guifg = # F92672 gui = bold
Hi Search guifg = # FFFFFF guibg = #455354
"Marks column
Hi SignColumn guifg = # A6E22E guibg = #232526
Hi SpecialChar guifg = # F92672 gui = bold
Hi SpecialComment guifg =# 465457 gui = bold
Hi Special guifg = # 66D9EF guibg = bg gui = italic
Hi SpecialKey guifg = #888A85 gui = italic
If has ("spell ")
Hi SpellBad guisp = # FF0000 gui = undercurl
Hi SpellCap guisp = #7070F0 gui = undercurl
Hi SpellLocal guisp = #70F0F0 gui = undercurl
Hi SpellRare guisp = # FFFFFF gui = undercurl
Endif
Hi Statement guifg = # F92672 gui = bold
Hi StatusLine guifg = #455354 guibg = fg
Hi StatusLineNC guifg = #808080 guibg = #080808
Hi StorageClass guifg = # FD971F gui = italic
Hi Structure guifg = # 66D9EF
Hi Tag guifg = # F92672 gui = italic
Hi Title guifg = # ef5939
Hi Todo guifg = # FFFFFF guibg = bg gui = bold
Hi Typedef guifg = # 66D9EF
Hi Type guifg = # 66D9EF gui = none
Hi Underlined guifg =# 808080 gui = underline
Hi VertSplit guifg = #808080 guibg = #080808 gui = bold
Hi VisualNOS guibg = # 403D3D
Hi Visual guibg = # 403D3D
Hi WarningMsg guifg = # FFFFFF guibg = #333333 gui = bold
Hi WildMenu guifg = # 66D9EF guibg = #000000
If s: molokai_original = 1
Hi Normal guifg = # F8F8F2 guibg = #272822
Hi Comment guifg = # 75715E gui = italic
Hi CursorLine guibg = #3E3D32
Hi CursorColumn guibg = #3E3D32
Hi LineNr guifg = # BCBCBC guibg = #3B3A32
Hi NonText guifg = # BCBCBC guibg = #3B3A32
Else
Hi Normal guifg = # F8F8F2 guibg = # 1B1D1E
Hi Comment guifg =# 465457 gui = italic
Hi CursorLine guibg = #000000
Hi CursorColumn guibg = #000000
Hi LineNr guifg = # BCBCBC guibg = #232526
Hi NonText guifg = # BCBCBC guibg = #232526
End
Set guifont = Monaco \ 10
Set nu