Added vim-airline config
This commit is contained in:
parent
f4634b4ee9
commit
c3b661e730
35
vimrc
35
vimrc
|
@ -1,14 +1,22 @@
|
||||||
" Pas de compatibilité a VI !
|
" Pas de compatibilité a VI !
|
||||||
set nocompatible
|
set nocompatible
|
||||||
|
|
||||||
" PLUGNIS ########################################################
|
" PLUGNIS ###########################################################{{{
|
||||||
filetype off " required
|
filetype off " required
|
||||||
set rtp+=~/.vim/bundle/Vundle.vim
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
call vundle#begin()
|
call vundle#begin()
|
||||||
" Vundle
|
" Vundle
|
||||||
Plugin 'VundleVim/Vundle.vim'
|
Plugin 'VundleVim/Vundle.vim'
|
||||||
|
" Stylish bar ...
|
||||||
|
Plugin 'vim-airline/vim-airline'
|
||||||
|
" ... and its themes
|
||||||
|
Plugin 'vim-airline/vim-airline-themes'
|
||||||
" I don't know what this is
|
" I don't know what this is
|
||||||
Plugin 'othree/html5.vim'
|
Plugin 'othree/html5.vim'
|
||||||
|
" Vim markdown previewer
|
||||||
|
Plugin 'suan/vim-instant-markdown'
|
||||||
|
" YouCompleteMe : best vim completer ever
|
||||||
|
Plugin 'Valloric/YouCompleteMe'
|
||||||
" Generate doc for typescript functions
|
" Generate doc for typescript functions
|
||||||
Plugin 'https://gogs.tforgione.fr/tforgione/typescript-doc.git'
|
Plugin 'https://gogs.tforgione.fr/tforgione/typescript-doc.git'
|
||||||
call vundle#end() " required
|
call vundle#end() " required
|
||||||
|
@ -21,6 +29,7 @@ filetype plugin indent on " required
|
||||||
" Highlight bad spaces (not working...)
|
" Highlight bad spaces (not working...)
|
||||||
" highlight BadWhitespace ctermbg=red guibg=red
|
" highlight BadWhitespace ctermbg=red guibg=red
|
||||||
" match BadWhitespace / \| \+\t/
|
" match BadWhitespace / \| \+\t/
|
||||||
|
" }}}
|
||||||
|
|
||||||
" COLOR #############################################################{{{
|
" COLOR #############################################################{{{
|
||||||
set background=dark
|
set background=dark
|
||||||
|
@ -41,7 +50,6 @@ set showcmd
|
||||||
set wildmenu
|
set wildmenu
|
||||||
set lazyredraw
|
set lazyredraw
|
||||||
set encoding=utf8
|
set encoding=utf8
|
||||||
let g:airline_powerline_fonts=1
|
|
||||||
set clipboard=unnamedplus
|
set clipboard=unnamedplus
|
||||||
set updatecount=50
|
set updatecount=50
|
||||||
set mouse=a
|
set mouse=a
|
||||||
|
@ -58,6 +66,12 @@ vnoremap <silent><F12> :wa \|!make-client.sh<CR>
|
||||||
" Escape on F1
|
" Escape on F1
|
||||||
map <F1> <Esc>
|
map <F1> <Esc>
|
||||||
imap <F1> <Esc>
|
imap <F1> <Esc>
|
||||||
|
" vim airline config
|
||||||
|
set laststatus=2
|
||||||
|
let g:airline_powerline_fonts = 1
|
||||||
|
let g:airline#extensions#branch#format = 1
|
||||||
|
let g:airline_theme='dark'
|
||||||
|
set t_Co=256
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" SEARCHING #########################################################{{{
|
" SEARCHING #########################################################{{{
|
||||||
|
@ -99,6 +113,21 @@ endif
|
||||||
|
|
||||||
|
|
||||||
" MARKDOWN PREVIEW ##################################################{{{
|
" MARKDOWN PREVIEW ##################################################{{{
|
||||||
set nobackup
|
|
||||||
let g:markdown_composer_browser = 'firefox'
|
let g:markdown_composer_browser = 'firefox'
|
||||||
|
let g:instant_markdown_autostart = 0
|
||||||
|
" }}}
|
||||||
|
|
||||||
|
" CODE COMPLETION ###################################################{{{
|
||||||
|
" You complete me configuration file
|
||||||
|
let g:ycm_global_ycm_extra_conf = '~/.vim/ycm_extra_conf.py'
|
||||||
|
let g:ycm_confirm_extra_conf = 0
|
||||||
|
|
||||||
|
" Goto with F11
|
||||||
|
nnoremap <silent><F10> :YcmCompleter GoTo<CR>
|
||||||
|
inoremap <silent><F10> <C-O>:YcmCompleter GoTo<CR>
|
||||||
|
vnoremap <silent><F10> :YcmCompleter GoTo<CR>
|
||||||
|
|
||||||
|
nnoremap <silent><F11> :vs \| :YcmCompleter GoTo<CR> \| <C-w><C-x><C-w><C-w>
|
||||||
|
inoremap <silent><F11> <C-O>:vs \| :YcmCompleter GoTo<CR> \| <C-w><C-x><C-w><C-w>
|
||||||
|
vnoremap <silent><F11> :vs \| :YcmCompleter GoTo<CR> \| <C-w><C-x><C-w><C-w>
|
||||||
" }}}
|
" }}}
|
||||||
|
|
Loading…
Reference in New Issue