The IDE under the Mac is really bad, eventually giving up the IDE ready to use VIM to see the code, then you need to set up vim.
Place the home directory below. The VIMRC in Vim is replaced with the following:
"Set vundle Settings here"git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/vundle.vimSet nocompatible"Be improved, requiredFileType off"Required"set the runtime path to include Vundle and initializeSet rtp+=~/.vim/bundle/vundle.vimcall vundle#begin ()"Alternatively, pass a path where vundle should install plugins"Call vundle#begin (' ~/some/path/here ')"Let Vundle manage Vundle, requiredPlugin'Vundlevim/vundle.vim' "Https://github.com/VundleVim/Vundle.vim"Custom PluginsPlugin'Scrooloose/nerdtree' "Https://github.com/scrooloose/nerdtreePlugin'Mattesgroeger/vim-bookmarks' "Https://github.com/MattesGroeger/vim-bookmarksPlugin'Maciakl/vim-neatstatus' "Https://github.com/maciakl/vim-neatstatus"All of your Plugins must is added before the following lineCall Vundle#end ()"RequiredFileType plugin indent on"Required"to ignore plugin indent changes, instead use:"filetype plugin on""Brief Help":P luginlist-lists configured plugins":P lugininstall-installs plugins, append '! ' to update or just:P luginupdate":P luginsearch foo-searches for foo, append '! ' to refresh local cache":P luginclean-confirms removal of unused plugins; Append '! ' to auto-approve removal""see:h Vundle For more details or wiki for FAQ"Put your non-plugin stuff after this line"VIM5 and later versions support syntax highlighting. Uncommenting the"following enables syntax highlighting by default.ifHas ("Syntax") Syntax on"Syntax Highlightingendif"uncomment the following to has Vim jump to the last position when"reopening a fileifHas ("Autocmd") au bufreadpost*ifLine"' \ '") >1&& Line ("' \ '") <= Line ("$") | Exe"normal! g ' \ ""|endif"Has Vim load indentation rules and plugins according to the detected"filetype on"filetype plugin indent onendifset numberset autoindentset softtabstop=4 "set the width of a soft tabSet shiftwidth=4 "(auto) indent 4 spaces for useSet tabstop=4 "Set the width of tabs (Tab key)Set Expandtab"beginning tab to 4 spacesSet Cindent"automatic indentation using the C + + languageSet cinoptions={0, 1s,t0,n-2, P2s, (03s,=.5s,>1s,=1s,:1s"to set the specific indentation for A/C + + languageSet Showmatch"set the matching pattern to display matching parenthesesSet linebreak"wrap word in full lineSet whichwrap=b,s,<,>,[,]"The cursor can jump to another line from the beginning and end of the line .Set ruler"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 screenSet ShowCmd"command line Displays the command enteredSet Showmode"command line display vim current modeSet Incsearch"Enter a string to display the match pointSet enc=utf-8 "file Encodingset Cursorlinehighlight cursorline cterm=none ctermbg=blue ctermfg=white Guibg=none guifg=NONE"Highlight Cursorcolumn cterm=none ctermbg=green ctermfg=none guibg=none guifg=none"nerdtree SettingsAutocmd Stdinreadpre * Let s:std_in=1Autocmd Vimenter*ifARGC () = =0&&!exists ("s:std_in") | Nerdtree |endif"vim-bookmarks SettingsLet G:bookmark_auto_close =1Let g:bookmark_save_per_working_dir=1Let g:bookmark_highlight_lines=1Let g:bookmark_center=1Let g:bookmark_location_list=1"Key Mapping: inoremap {{}<esc>I:map<f2>:nerdtreetoggle<cr>
Then manually download the following files:
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/vundle.vim
Then in the open vim input: Plugininstall to install the appropriate plug-in, waiting to be completed can be used.
The configured environment is as follows:
Setting up a VIM environment under Mac