Configuration of the. VIMRC in the VIM configuration $HOME directory

Source: Internet
Author: User

Set nocompatible "be improved

Set Nu ' displays line number

Set Noswapfile

Syntax on "syntax highlighting open

Set backspace=2

Set tabstop=2

Set shiftwidth=2

Set Foldmethod=indent "code folding

ColorScheme Desert "color scheme

"Let G:molokai_original = 1

The Set font

The Set Guifont=courier_new:h11:cansi

"Set guifontwide= new song body: h11:cgb2312

"" Set the Encoding

Set Enc=utf-8

Set Fileencodings=ucs-bom,utf-8,chinese

Set LANGMENU=ZH_CN. UTF-8

Language message ZH_CN. UTF-8

SOURCE $VIMRUNTIME/delmenu.vim

SOURCE $VIMRUNTIME/menu.vim

Set Completeopt=menu

: ColorScheme Ron

Set Cindent

The Vundle plug-in management tool

Set rtp+=~/.vim/bundle/vundle/

Call VUNDLE#RC ()

Bundle ' Taglist.vim ' "TagList plugin

Bundle ' Gmarik/vundle '

Bundle ' Valloric/youcompleteme ' "Code completion Plugin

Bundle ' scrooloose/syntastic '

Bundle ' The-nerd-tree ' "in Vim's edit window tree-like display file directory

Bundle ' AutoClose ' "in the input () and other need to match the symbol, automatically help you fill the remaining half

"" "" "" "" "" "" "" "" "" "" "" "" "Syntastic" "" "" "" "" "

"Let G:syntastic_check_on_open = 1

Let g:syntastic_cpp_include_dirs = ['/usr/include/']

Let g:syntastic_cpp_remove_include_errors = 1

Let G:syntastic_cpp_check_header = 1

Let G:syntastic_cpp_compiler = ' clang++ '

"Set error or warning signs

"Let G:syntastic_error_symbol = ' x '

"Let G:syntastic_warning_symbol = '! '

"" Whether to show balloons

Let g:syntastic_enable_balloons = 1


"" "" "" "" "" "" YCM "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "

Let Mapleader = "," "This leader is mapped to a comma", "


Let g:ycm_global_ycm_extra_conf = ' ~/.vim/bundle/youcompleteme/cpp/ycm/.ycm_extra_conf.py ' "Configure the default ycm_extra_conf.py

Nnoremap <leader>jd:ycmcompleter Gotodefinitionelsedeclaration<cr> Press, JD will jump to definition

Let g:ycm_confirm_extra_conf=0 "no longer asks if the ycm_extra_conf.py configuration is loaded when Vim is turned on

Let G:ycm_collect_identifiers_from_tag_files = 1 "tags file generated using ctags et g:ycm_confirm_extra_conf = 0


"Tag list (ctags) configuration

""""""""""""""""""""""""""""""

Map <silent> <F9>:tlisttoggle<cr> "shortcut keys (F9) Open taglist

"Source file path cannot be Chinese, pit Daddy!" tag!

Let Tlist_ctags_cmd = '/usr/bin/ctags '


Let Tlist_show_one_file = 1 "does not display the tag of multiple files at the same time, only displays the current file's

Let Tlist_exit_onlywindow = 1 "If the TagList window is the last window, exit vim

Let Tlist_use_right_window = 1 "Displays the TagList window in the right window




From for notes (Wiz)

List of attachments

    Configuration of the. VIMRC in the VIM configuration $HOME directory

    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.