2015-07-12 17:50:37 +02:00
|
|
|
" VIM Configuration - Geoffrey FROGEYE
|
|
|
|
"
|
|
|
|
|
|
|
|
set nocompatible
|
|
|
|
filetype off
|
|
|
|
|
|
|
|
""" PLUGINS MANAGEMENT """
|
|
|
|
" Voir :h vundle
|
|
|
|
|
|
|
|
set rtp+=~/.vim/bundle/Vundle.vim
|
|
|
|
call vundle#begin()
|
|
|
|
Plugin 'gmarik/Vundle.vim'
|
|
|
|
|
|
|
|
Plugin 'L9'
|
|
|
|
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
|
|
|
|
Plugin 'altercation/vim-colors-solarized'
|
|
|
|
Bundle 'Shougo/neosnippet'
|
|
|
|
Bundle 'Shougo/neosnippet-snippets'
|
|
|
|
Plugin 'tpope/vim-surround'
|
|
|
|
Plugin 'tpope/vim-fugitive'
|
|
|
|
Plugin 'tpope/vim-repeat'
|
2016-02-20 23:53:40 +01:00
|
|
|
Plugin 'vim-airline/vim-airline'
|
|
|
|
Plugin 'vim-airline/vim-airline-themes'
|
2015-07-12 17:50:37 +02:00
|
|
|
Plugin 'airblade/vim-gitgutter'
|
|
|
|
Plugin 'kien/ctrlp.vim'
|
2016-02-20 23:53:40 +01:00
|
|
|
Plugin 'mbbill/undotree'
|
|
|
|
Plugin 'scrooloose/nerdtree'
|
|
|
|
Plugin 'Xuyuanp/nerdtree-git-plugin'
|
|
|
|
Plugin 'xolox/vim-misc'
|
|
|
|
Plugin 'xolox/vim-easytags'
|
|
|
|
Plugin 'majutsushi/tagbar'
|
2016-03-16 14:23:03 +01:00
|
|
|
"Plugin 'gilligan/vim-lldb'
|
2016-04-10 14:06:36 +02:00
|
|
|
Plugin 'wellle/targets.vim'
|
|
|
|
Plugin 'Chiel92/vim-autoformat'
|
2016-12-05 21:31:02 +01:00
|
|
|
Plugin 'Valloric/YouCompleteMe'
|
2017-01-14 16:46:30 +01:00
|
|
|
Plugin 'Raimondi/delimitMate'
|
2015-07-12 17:50:37 +02:00
|
|
|
|
|
|
|
call vundle#end() " required
|
|
|
|
filetype plugin indent on " required
|
|
|
|
|
|
|
|
""" CTRLP """
|
|
|
|
|
|
|
|
let g:ctrlp_custom_ignore = {
|
|
|
|
\ 'dir': '\v([\/]\.(git|hg|svn)|node_modules|bower_components|__pycache__|vendor)$',
|
|
|
|
\ 'file': '\v\.(exe|so|dll)$',
|
|
|
|
\ 'link': 'SOME_BAD_SYMBOLIC_LINKS',
|
|
|
|
\ }
|
|
|
|
|
|
|
|
""" VIM-AIRLINE """
|
|
|
|
|
|
|
|
set noshowmode
|
|
|
|
set laststatus=2
|
|
|
|
let g:airline_powerline_fonts = 1
|
2017-01-14 16:46:30 +01:00
|
|
|
" let g:airline#extensions#syntastic#enabled = 1
|
2015-07-12 17:50:37 +02:00
|
|
|
let g:airline#extensions#tabline#enabled = 1
|
|
|
|
|
|
|
|
let g:airline_section_a = airline#section#create(['mode'])
|
|
|
|
let g:airline_section_b = airline#section#create(['branch', 'hunks'])
|
|
|
|
let g:airline_section_z = airline#section#create(['%B', '@', '%l', ':', '%c'])
|
|
|
|
|
2016-02-20 23:53:40 +01:00
|
|
|
""" NERDTREE-GIT-PLUGIN """
|
|
|
|
|
|
|
|
let g:NERDTreeIndicatorMapCustom = {
|
|
|
|
\ "Modified" : "✹",
|
|
|
|
\ "Staged" : "✚",
|
|
|
|
\ "Untracked" : "✭",
|
|
|
|
\ "Renamed" : "➜",
|
|
|
|
\ "Unmerged" : "═",
|
|
|
|
\ "Deleted" : "✖",
|
|
|
|
\ "Dirty" : "✗",
|
|
|
|
\ "Clean" : "✔︎",
|
|
|
|
\ "Unknown" : "?"
|
|
|
|
\ }
|
|
|
|
|
2017-01-14 16:46:30 +01:00
|
|
|
""" YOUCOMPLETEME """
|
|
|
|
|
|
|
|
let g:ycm_global_ycm_extra_conf = '~/.config/ycm_extra_conf.py'
|
|
|
|
|
2016-02-20 23:53:40 +01:00
|
|
|
|
2015-07-12 17:50:37 +02:00
|
|
|
""" VIM SETTINGS """
|
|
|
|
|
|
|
|
set encoding=utf-8
|
|
|
|
set title
|
|
|
|
|
|
|
|
set number
|
|
|
|
set ruler
|
|
|
|
set wrap
|
|
|
|
|
|
|
|
set scrolloff=5
|
|
|
|
|
|
|
|
set ignorecase
|
|
|
|
set smartcase
|
|
|
|
|
|
|
|
set incsearch
|
|
|
|
|
|
|
|
set hlsearch
|
|
|
|
|
2015-11-20 14:03:59 +01:00
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
set expandtab
|
|
|
|
|
2015-07-12 17:50:37 +02:00
|
|
|
set visualbell
|
|
|
|
set noerrorbells
|
|
|
|
|
|
|
|
set backspace=indent,eol,start
|
|
|
|
|
|
|
|
set hidden
|
2016-02-20 23:53:40 +01:00
|
|
|
set updatetime=250
|
2015-07-12 17:50:37 +02:00
|
|
|
|
2017-01-14 16:46:30 +01:00
|
|
|
set cursorcolumn
|
|
|
|
|
2015-07-12 17:50:37 +02:00
|
|
|
syntax enable
|
|
|
|
|
|
|
|
set background=dark
|
2016-03-14 13:43:17 +01:00
|
|
|
set t_Co=256
|
2015-07-12 17:50:37 +02:00
|
|
|
colorscheme solarized
|
2016-02-20 23:53:40 +01:00
|
|
|
|
2016-03-16 14:23:03 +01:00
|
|
|
" From http://stackoverflow.com/a/5004785/2766106
|
|
|
|
set list
|
|
|
|
set listchars=tab:╾╌,trail:·,extends:↦,precedes:↤,nbsp:_
|
2016-08-03 20:01:24 +02:00
|
|
|
set showbreak=↪
|
2015-07-12 17:50:37 +02:00
|
|
|
|
|
|
|
filetype on
|
|
|
|
filetype plugin on
|
|
|
|
filetype indent on
|
|
|
|
|
2016-01-12 14:05:27 +01:00
|
|
|
" Put plugins and dictionaries in this dir (also on Windows)
|
|
|
|
let vimDir = '$HOME/.vim'
|
|
|
|
let &runtimepath.=','.vimDir
|
|
|
|
|
|
|
|
" Keep undo history across sessions by storing it in a file
|
|
|
|
if has('persistent_undo')
|
|
|
|
let myUndoDir = expand(vimDir . '/undodir')
|
|
|
|
" Create dirs
|
|
|
|
call system('mkdir ' . vimDir)
|
|
|
|
call system('mkdir ' . myUndoDir)
|
|
|
|
let &undodir = myUndoDir
|
|
|
|
set undofile
|
|
|
|
endif
|
|
|
|
|
2017-01-14 16:46:30 +01:00
|
|
|
imap jk <Esc>
|
2017-01-14 18:34:14 +01:00
|
|
|
imap mù <Esc>
|
2015-07-12 17:50:37 +02:00
|
|
|
map <Enter> o<Esc>
|
|
|
|
|