1. The system only has vim-minimal, Execute the following command to install the other two components

yum install vim-common
yum install vim-enhanced

2. install ctags

yum install ctags

download linux- Kernel source code and unzip to ~/arm/linux-, Enter this directory , Generate index file

ctags -R *

3. Installing a plug-in ( It's basically decompressed to ~/.vim Catalog ):taglist/nerdcommenter/omnicppcomplete/echofunc/bufexplorer/winmanager

4. The configuration file

" close vi Keyboard mode 
set nocompatible
" Turn off backup
set nobackup
" Disable temporary file generation
set noswapfile " Allows you to use the mouse to locate and select
set mouse=a
set selection=exclusive
set selectmode=mouse,key " According to the line Numbers
set number
" No folding
set nowrap " Highlight current line
"set cursorline cursorcolumn " Automatically save the current changed file when switching files
set autowrite " Set what the status bar displays
"set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ %{strftime(\"%d/%m/%y\ -\ %H:%M\")}
" Set to always show the status bar
"set laststatus=2 " When the cursor moves to the top and bottom, hold 3 Row distance
set scrolloff= " Test file type
filetype on
filetype plugin on " Set encoding
set encoding=utf-
set termencoding=utf-
set fileencodings=ucs-bom,utf-,gbk,gb2312,cp936
set fileencoding=utf- " Setup language
set langmenu=zh_CN.UTF-
set helplang=cn " Set up tab
set noexpandtab " Will not tab Expand into spaces
set tabstop= " One tab How many spaces are shown
set shiftwidth= " How many spaces are indented at each level
set smarttab " Determine a... Based on the number of indented spaces in other parts of the file tab How many spaces " Set indent
set nocindent " close cindent Indent mode
"set cindent " Turn on C/C++ The way language is indented
"set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s " Set up C/C++ How to indent a language
set noautoindent " close autoindent Indent mode
set nosmartindent " close smartindent Indent mode if has("autocmd")
filetype plugin indent on autocmd FileType text setlocal textwidth=
autocmd FileType text set nocindent
autocmd FileType html set formatoptions+=tl
autocmd FileType css set smartindent
autocmd FileType c,cpp,slang,esqlc set cindent
endif " Syntax highlighting
syntax enable
syntax on " Set color
colorscheme desert
"colorscheme darkblue
"colorscheme peachpuff " Search ignores case
set ignorecase
" If the search pattern contains uppercase letters, ignore 'ignorecase' Options
set smartcase
" Search for character by character highlighting
set hlsearch
set incsearch " Highlight the matching brackets
set showmatch
" Match the highlighted time of brackets ( The unit is one tenth of a second )
set matchtime= " --ctags settings--
map <F12> :!ctags -R --c++-kinds=+p --fields=+ialS --extra=+q .<CR><CR> :TlistUpdate<CR>
imap <F12> <ESC>:!ctags -R -c++kinds=+p --fields=+ialS --extra=+q .<CR><CR> :TlistUpdate<CR>
set tags=tags
set tags+=~/arm/linux- " add the linux kernel source's tags file
set tags+=./tags " add current directory's generated tags file " --OmniCppComplete settings--
imap<F3> <C-X><C-O>
set completeopt=menu,menuone " Close the preview window of intelligent completion
let OmniCpp_MayCompleteDot= " autocomplete with .
let OmniCpp_MayCompleteArrow= " autocomplete with ->
let OmniCpp_MayCompleteScope= " autocomplete with ::
let OmniCpp_SelectFirstItem= " select first item, but don't insert
let OmniCpp_NamespaceSearch= " search namespaces in this and included files
let OmniCpp_ShowPrototypeInAbbr= " show function prototype in popup window
let OmniCpp_GlobalScopeSearch= " enable the global scope search
let OmniCpp_DisplayMode= " class scope completion mode: always show all members
"let OmniCpp_DefaultNamespaces=["std"]
let OmniCpp_ShowScopeInAbbr= " show scope in abbreviation and remove the last column
let OmniCpp_ShowAccess= " --Taglist settings--
let Tlist_Ctags_Cmd='ctags'
let Tlist_Use_Right_Window=
let Tlist_Show_One_File= " A list of functions that allow multiple files to be displayed at the same time
let Tlist_File_Fold_Auto_Close= " Not the current file , Function list collapse hidden
let Tlist_Exit_OnlyWindow= " When Taglist Is the last window to split , Automatically quit vim
let Tlist_Process_File_Always= " Real time updates tags
let Tlist_Inc_Winwidth=
let Tlist_WinWidth=
"nmap tl :Tlist<CR> " --BufExplorer settings--
let g:bufExplorerDefaultHelp= " Do not show default help.
let g:bufExplorerShowRelativePath= " Show relative paths.
let g:bufExplorerSortBy='mru' " Sort by most recently used. " --WinManager setting--
let g:winManagerWindowLayout='BufExplorer|FileExplorer' " Set the plug-ins we want to manage
let g:persistentBehaviour= " If all edit files are closed , sign out vi
let g:winManagerWidth=
nmap wm :TlistToggle<CR> :WMToggle<CR> " --QuickFix settings--
"map <F7> :make<CR> :copen<CR>
"map <F8> :cp<CR>
"map <F9> :cn<CR>
"imap <F7> <ESC>:make<CR> :copen<CR>
"imap <F8> <ESC>:cp<CR>
"imap <F9> <ESC>:cn<CR> " --Fold settings--
function! ToggleFold()
if foldlevel('.')==
normal! l
if foldclosed('.')<
. foldclose!
. foldopen!
" clear status line
endfunction noremap <space> :call ToggleFold()<CR> function FoldBrace()
if getline(v:lnum+)[]=='{'
if getline(v:lnum)=~'{'
if getline(v:lnum)[]=~'}'
return '<1'
return -
endfunction if has("autocmd")
autocmd BufReadPost *.h,*.hh,*.c,*.ec,*.cpp,*.hpp,*.ecpp,*.pc set foldexpr=FoldBrace()
autocmd BufReadPost *.h,*.hh,*.c,*.ec,*.cpp,*.hpp,*.ecpp,*.pc set foldmethod=expr
autocmd BufReadPost *.h,*.hh,*.c,*.ec,*.cpp,*.hpp,*.ecpp,*.pc set foldenable
endif " --Terminal color settings--
hi Folded term=standout cterm=bold ctermfg=DarkGreen ctermbg=NONE
hi IncSearch term=bold ctermfg=red ctermbg=black
hi Search term=bold ctermfg=red ctermbg=black

CentOS6 Next Vim More about installation and configuration

  1. Alibaba cloud centOS6 Next python Installation and configuration 、pip Installation and configuration 、ipython Installation and configuration

    I did it on Alibaba cloud server python Environment building , Alibaba cloud server will bring python But the version is low , So I plan to install one myself , During this period, we encountered various problems , And Baidu is not enough, but on the Internet soon solved . Share it here . One .pyth ...

  2. CentOs6.5 Installation and configuration in vsftp concise

    This article mainly introduces CentOs6.5 Installation and configuration in vsftp A concise tutorial , Friends in need can refer to     One .vsftp Installation chapter Copy the code as follows : # install vsftpdyum -y install vsftp ...

  3. CentOs6.5 Installation and configuration in vsftp A concise tutorial [ turn ]

    CentOs6.5 Installation and configuration in vsftp A concise tutorial Lin Tao   Published in :2017-3-17 10:10  classification :WebServer  label : 101 Time One .vsftp Installation chapter Copy the code as follows : # install vsftp ...

  4. [moka Excerpts from classmates ] stay Centos 6.5 Successfully installed and configured vim7.4

    source :https://my.oschina.net/gzyh/blog/266097 Resource download address : link :http://pan.baidu.com/s/1kVuaV5P  password :xkq9   Abstract : ...

  5. CentOS6 Download and install Python2.7.6 Method

    About the CentOS6 Download and install Python2.7.6 There are so many ways , Xiaobian has introduced related articles before , Now let's get together a tutorial editor to introduce it to you , I hope this article can help you .   CentOS below Python The upgrade ...

  6. centos6 Installation below navicat premium

    centos6 Installation below navicat premium CentOS6 Next time we do development , Database client is a necessary tool , Because I often have to deal with databases . Because of the variety of database types , Yes MySQL.Oracle.Pos ...

  7. centos6 Next yum install mariadb Database solutions

    stay centos6 Next Yum install mariadb The database always indicates that it cannot be installed normally , Look at the error log to find , It's not mariadb release The source file is in /etc/yum.repos.d/ in , So , I'm creating a new file : # ...

  8. [ turn ]:Ubuntu Next Apache install and configure

    [ turn ]:Ubuntu Next Apache install and configure _ Server applications _Linux Commune -Linux System portal  https://www.linuxidc.com/Linux/2013-06/85827.htm ...

  9. libCURL Open source libraries are VS2010 Compile and install under environment , Configuration details

    libCURL Open source libraries are VS2010 Compile and install under environment , Configuration details from :http://my.oschina.net/u/1420791/blog/198247 http://blog.csdn.net/su ...

Random recommendation

  1. [MFC] MFC Find other window handles Operate other windows

    Please look directly for CWnd class !!! CWnd* cWnd; cWnd= cWnd->FindWindowW(L"kwmusicmaindlg",NULL); CRect cRect; ...

  2. Python The whole stack path directory structure

    Basics 1.Python The road of the whole stack ----- The basic chapter 2.Python The road of the whole stack --- Operators and basic data structures 3.Python The road of the whole stack 3--set aggregate -- The ternary operation -- Depth copy -- Initial recognition function 4.Python The whole stack ...

  3. I should know Python modular

    Python Very elegant . Use the following modules to help keep your code clean . Easy to maintain . Welcome to add . Docopt. Forget optparse and argparse Well , Use docstring To build elegant . High readability . complex ( If you have this need ...

  4. python Django Learning notes ( Four )—— Use MySQL database

    1, Download and install MySQLdb Class library http://www.djangoproject.com/r/python-mysql/ 2, modify settings.py Configure data properties DATABASES = { 'd ...

  5. nohub command


  6. Linux To solve your network problems

    On the Internet ,Linux The system usually works properly , But occasionally there are some disturbing problems , Here are some common solutions to network problems . If your network interface appears to be up and running , But no access to the Internet , Then you can try pi ...

  7. [Swift]LeetCode326. 3 The power of | Power of Three

    Given an integer, write a function to determine if it is a power of three. Example 1: Input: 27 Outp ...

  8. Docker Push the mirror image to hub.docker

    1.Docker Image file :lails.server.demo:1.0, 2. Sign in Docker:docker login[ Follow the prompts to enter the user name / password ] 3. perform :docker push lails.ser ...

  9. EntityFramework Code-First API Tutorial ( 7、 ... and )------- Domain class configuration Fluent API

    Fluent API To configure : We've learned about using DataAnotations Feature to override Code-First Default Convention , Now let's learn Fluent API. Fluent API Is another way to configure domain classes ...

  10. NASSA&rsquo;s Robot

    NASSA Our robot landed on Mars , The landing place can use X-Y Coordinate representation . Robots started in (0, 0). Due to transmission problems , Some instructions may be confused , Now give the definite command and the unknown command , Please confirm the robot's X.Y The minimum and maximum coordinates are respectively ...