My VIM configuration

Source: Internet
Author: User

SetNocompatible"Be improvedFileType off"required! Setrtp+=~/.vim/bundle/vundle/Call VUNDLE#RC ()"Let Vundle manage Vundle "required!Bundle'Gmarik/vundle' "My Bundles here: "BuBundle'Valloric/youcompleteme' "original repos on GitHubBundle'tpope/vim-fugitive'Bundle'lokaltog/vim-easymotion'Bundle'Rstacruz/sparkup', {'RTP':'vim/'} Bundle'Tpope/vim-rails.git' "vim-scripts ReposBundle'L9'Bundle'Fuzzyfinder' "Non GitHub reposBundle'Git://git.wincent.com/command-t.git' "git repos on your local machine (ie. when working on your own plugin)Bundle'File:///Users/gmarik/path/to/plugin' " ...Bundle'Dgryski/vim-godef'Bundle'Blackrush/vim-gocode'Bundle'Majustsushi/tagbar'filetype plugin indent on"required! " "Brief Help ": Bundlelist-list configured Bundles ": Bundleinstall (!) -Install (update) Bundles ": Bundlesearch (!) Foo-search (or refresh cache first) for Foo ": Bundleclean (!) -Confirm (or auto-approve) removal of unused bundles " "see:h Vundle For more details or wiki for FAQ "note:comments after Bundle command is not allowed."This line should is removed as it ensures that various options is    "Properly set to work with the vim-related packages available in Debian.     "Debian.vim    "Uncomment the next line to make Vim more vi-compatible    "NOTE:debian.vim sets ' nocompatible '. Setting ' compatible ' changes numerous    "options, so any other options should is set after setting ' compatible '.    Setnocompatible"VIM5 and later versions support syntax highlighting. Uncommenting the    "following enables syntax highlighting by default.    ifHas ("Syntax") Syntax on"Syntax Highlightingendif ColorScheme Ron"Elflord Ron Peachpuff default set color scheme, VIM comes with a color scheme saved in/usr/share/vim/vim72/colors directory    "Detect file Typefiletype on filetype plugin on"If using a dark background within the editing area and syntax highlighting    "turn on this option as well    SetBackground=Dark"uncomment the following to has Vim jump to the last position when    "reopening a file    ifHas ("Autocmd") au bufreadpost*ifLine"' \ '") >1&& Line ("' \ '") <= Line ("$") | Exe"normal! g ' \ ""|endif"Has Vim load indentation rules and plugins according to the detected filetypefiletype plugin indent on endif"The following is commented out as they cause vim -to-behave a lot    "differently from regular Vi. They is highly recommended though.    SetIgnoreCase"Ignore case in search mode    SetSmartcase"If the search pattern contains uppercase characters, do not use the ' ignorecase ' option. Used only when entering the search mode and opening the ' ignorecase ' option.     SetAutowrite"automatically write the contents back to the file: If the file has been modified, in each: Next,: Rewind,: Last,: First,:p revious, stop,: suspend,: Tag,:!,: Make, Ctrl] and 
    "ctrl-^ command: Buffer, Ctrl-o, Ctrl-i,'the {a-z0-9} or ' {a-z0-9} ' command goes to another file.     SetAutoindent"Set auto-align (indent): The indent value for each line is equal to the previous line; Use Noautoindent to cancel the setting    SetSmartindent"Smart Alignment    Settabstop=4        "Set the width of tabs (Tab key)    Setsofttabstop=4     "set the width of a soft tab    SetShiftwidth=4    "(auto) indent 4 spaces for use    SetCindent"automatic indentation using the C + + language    Setcinoptions={0, 1s,t0,n-2, P2s, (03s,=.5s,>1s,=1s,:1s"to set the specific indentation for A/C + + language    SetBackspace=2    "set BACKSPACE keys available    SetShowmatch"set the matching pattern to display matching parentheses    SetLineBreak"wrap word in full line    Setwhichwrap=b,s,<,>,[,]"The cursor can jump to another line from the beginning and end of the line .    SetHidden"Hide buffers When they is abandoned    SetMouse=a"Enable Mouse usage (all modes)"using the mouseSetNumber"Enable Line number"Show Line NumbersSetPreviewwindow"identify the preview window    Sethistory= -        "set command history to"History 50 Records"-- status line settings--    Setlaststatus=2 "The status line of the last window is always displayed, and when the number of Windows is set to 1, the status line of the last window is displayed; 0 does not display the status line of the last window    SetRuler"ruler, which is used to display the line and column numbers of the cursor position, separated by commas. Each window has its own ruler. If the window has a status line, the ruler is displayed there. Otherwise, it appears on the last line of the screen.     "-- command line settings--    SetShowCmd"command line Displays the command entered    SetShowmode"command line display vim current mode    "--find setting--    SetIncsearch"Enter a string to display the match point    SetHlsearchSetencoding=utf-8    Setfileencodings=ucs-bom,utf-8, cp936Setfileencoding=gb2312Settermencoding=utf-8Nnoremap<F2>: exe'Nerdtreetoggle'<CR>

My VIM configuration

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.