sudo apt-get install build-essential cmake #Install development tools and CMake sudo apt-get install python-dev python3-dev #Make sure you have Python headers installed cd ~/.vim/bundle/YouCompleteMe ./install.py --clang-completer #Compiling YCM with semantic support for C-family languages
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " => Vundle """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" set nocompatible " be iMproved, required filetype off " required
" set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() " alternatively, pass a path where Vundle should install plugins "call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported. " Keep Plugin commands between vundle#begin/end. " plugin on GitHub repo Plugin 'tpope/vim-fugitive'
" Powerline Plugin 'Lokaltog/vim-powerline'
" plugin from http://vim-scripts.org/vim/scripts.html " Plugin 'L9' " Git plugin not hosted on GitHub Plugin 'git://git.wincent.com/command-t.git'
" YouCompleteMe Plugin 'Valloric/YouCompleteMe'"git clone it from github is rather quicker than this
" git repos on your local machine (i.e. when working on your own plugin) " Plugin 'file:///home/gmarik/path/to/plugin'
" Install L9 and avoid a Naming conflict if you've already installed a " different version somewhere else. " Plugin 'ascenator/L9', {'name': 'newL9'}
" All of your Plugins must be added before the following line call vundle#end() " required filetype plugin indenton" required " To ignore plugin indent changes, instead use: "filetype plugin on " " Brief help " :PluginList - lists configured plugins " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate " :PluginSearch foo - searches for foo; append `!` to refresh local cache " :PluginClean - 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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Basic Configuration """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" sethistory=500" Sets how many lines of history VIM has to remember
syntaxon" Enable filetype plugins
" Colorcolumn setcc=100
hi Search guibg=peru guifg=wheat
" Set to auto read when a file is changed from the outside set autoread
" With a map leader it's possible to do extra key combinations " like <leader>w saves the current file let mapleader = "," letg:mapleader = ","
" Smart way to move between windows map<C-j><C-W>j map<C-k><C-W>k map<C-h><C-W>h map<C-l><C-W>l
" color scheme syntax enable " colorscheme monokai " colo seoul256 " let g:seoul256_srgb = 1 colorscheme molokai " let g:rehash256 = 1 letg:molokai_original = 1" use original monokai
" these part refer http://harttle.land/2013/11/08/vim-config.html set tabstop=4" Number of spaces that a <Tab> in the file counts for. setshiftwidth=4" Number of spaces to use for each step of (auto)indent. set expandtab " Use the appropriate number of spaces to insert a <Tab>. " Spaces are used in indents with the '>' and '<' commands " and when 'autoindent' is on. To insert a real tab when " 'expandtab' is on, use CTRL-V <Tab>.
set softtabstop=4 set smarttab " When on, a <Tab> in front of a line inserts blanks " according to 'shiftwidth'. 'tabstop' is used in other " places. A <BS> will delete a 'shiftwidth' worth of space " at the start of the line. set showcmd " Show (partial) command in status line.
setnumber" Show line numbers.
set showmatch " When a bracket is inserted, briefly jump to the matching " one. The jump is only done if the match can be seen on the " screen. The time to show the match can be set with " 'matchtime'. set hlsearch " When there is a previous search pattern, highlight all " its matches. set incsearch " While typing a search command, show immediately where the " so far typed pattern matches. set ignorecase " Ignore case in search patterns. set smartcase " Override the 'ignorecase' option if the search pattern " contains upper case characters. set backspace=2" Influences the working of <BS>, <Del>, CTRL-W " and CTRL-U in Insert mode. This is a list of items, " separated by commas. Each item allows a way to backspace " over something. set autoindent " Copy indent from current line when starting a new line " (typing <CR> in Insert mode or when using the "o" or "O" " command). set textwidth=100" Maximum width of text that is being inserted. A longer " line will be broken after white space to get this width. set formatoptions=c,q,r,t " This is a sequence of letters which describes how " automatic formatting is to be done. " " letter meaning when present in 'formatoptions' " ------ --------------------------------------- " c Auto-wrap comments using textwidth, inserting " the current comment leader automatically. " q Allow formatting of comments with "gq". " r Automatically insert the current comment leader " after hitting <Enter> in Insert mode. " t Auto-wrap text using textwidth (does not apply " to comments) set ruler " Show the line and column number of the cursor position, " separated by a comma. set background=dark " When set to "dark", Vim will try to use colors that look " good on a dark background. When set to "light", Vim will " try to use colors that look good on a light background. " Any other value is illegal. set mouse=a" Enable the use of the mouse. filetype plugin indenton syntaxon
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " vim-airline/vim-airline """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " " These lines setup the environment to show graphics and colors correctly. set nocompatible set t_Co=256 " Always show the status line set laststatus=2 " Format the status line " set statusline=%F%m%r%h\ %w\ \ CWD:\ %r%{getcwd()}%h\ \ \ Line:\ %l\ \ Column:\ %c letg:airline#extensions#tabline#enabled = 1 " let g:airline#extensions#tabline#left_sep = ' ' " let g:airline#extensions#tabline#left_alt_sep = '>'