2016-03-31 02:03:55 +00:00
|
|
|
set nocompatible " be iMproved, required
|
|
|
|
filetype off " required
|
|
|
|
|
2016-04-01 11:45:17 +00:00
|
|
|
syntax enable
|
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
set softtabstop=4
|
|
|
|
set expandtab
|
|
|
|
set number
|
|
|
|
set autoindent
|
|
|
|
set laststatus=2
|
|
|
|
set mouse=a
|
|
|
|
set encoding=utf-8
|
2016-04-01 16:39:00 +00:00
|
|
|
set background=dark
|
2016-04-01 15:19:20 +00:00
|
|
|
set guifont=Sauce\ Code\ Pro\ 10.6
|
2016-04-01 11:45:17 +00:00
|
|
|
|
2016-03-31 02:03:55 +00:00
|
|
|
" set the runtime path to include Vundle and initialize
|
|
|
|
set rtp+=~/.vim/bundle/Vundle.vim
|
|
|
|
call vundle#begin()
|
|
|
|
|
|
|
|
Plugin 'VundleVim/Vundle.vim'
|
|
|
|
Plugin 'Valloric/YouCompleteMe'
|
2016-04-17 14:56:09 +00:00
|
|
|
Plugin 'scrooloose/syntastic'
|
|
|
|
Plugin 'tpope/vim-sensible'
|
|
|
|
Plugin 'airblade/vim-gitgutter'
|
2016-04-01 15:19:20 +00:00
|
|
|
Plugin 'ryanoasis/vim-devicons'
|
2016-03-31 02:03:55 +00:00
|
|
|
Plugin 'vim-airline/vim-airline'
|
|
|
|
Plugin 'vim-airline/vim-airline-themes'
|
2016-05-01 13:10:48 +00:00
|
|
|
Plugin 'PotatoesMaster/i3-vim-syntax'
|
2016-03-31 02:03:55 +00:00
|
|
|
|
|
|
|
call vundle#end()
|
|
|
|
|
2016-04-04 02:51:34 +00:00
|
|
|
" YouCompleteMe python fix
|
|
|
|
let g:ycm_server_python_interpreter = '/usr/bin/python3'
|
|
|
|
|
2016-04-01 11:45:17 +00:00
|
|
|
" Vim-Airline config
|
|
|
|
let g:Powerline_symbols = 'fancy'
|
|
|
|
let g:airline_powerline_fonts = 1
|
2016-04-01 16:39:00 +00:00
|
|
|
let g:airline_theme='solarized'
|
2016-03-31 02:03:55 +00:00
|
|
|
|
|
|
|
" Interface with system clipboard
|
|
|
|
noremap <Leader>y "*y
|
|
|
|
noremap <Leader>p "*p
|
|
|
|
noremap <Leader>Y "+y
|
|
|
|
noremap <Leader>P "+p
|
|
|
|
|
2016-04-01 13:00:11 +00:00
|
|
|
com W w
|
|
|
|
com Q q
|
|
|
|
com Wq wq
|
|
|
|
com WQ wq
|
|
|
|
|
2016-03-31 02:03:55 +00:00
|
|
|
" Write with sudo
|
|
|
|
cmap w!! w !sudo tee > /dev/null %
|
|
|
|
|
|
|
|
" airline buffer list
|
|
|
|
let g:airline#extensions#tabline#enabled = 1
|