-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
80 lines (61 loc) · 2.29 KB
/
vimrc
File metadata and controls
80 lines (61 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
set nocompatible
set ts=4
au BufRead,BufNewFile *.hbs setfiletype html
set ruler " affiche la position courante au sein du fichier
let mapleader = ","
set t_Co=256
syntax on
set background=dark
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
""""""""""""""""""""""""""""""""""""""""""""""""""
" My Plugins here:
""""""""""""""""""""""""""""""""""""""""""""""""""
" emmet for vim: http://emmet.io/ http://mattn.github.io/emmet-vim
Plugin 'mattn/emmet-vim'
" A tree explorer plugin for vim
Plugin 'scrooloose/nerdtree'
nnoremap <silent> <F9> :NERDTreeToggle<CR>
map <tab> gt
" Vim plugin for the Perl module / CLI script 'ack'
Plugin 'mileszs/ack.vim'
" pretty status/tabline
Plugin 'bling/vim-airline'
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#left_sep = ' '
let g:airline#extensions#tabline#left_alt_sep = '|'
" Vim plugin for intensely orgasmic commenting
Plugin 'scrooloose/nerdcommenter'
" Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
Plugin 'Raimondi/delimitMate'
imap <C-c> <CR><Esc>O
" Vim Workspace Controller
Plugin 'szw/vim-ctrlspace'
set hidden
" A Vim plugin which shows a git diff in the gutter (sign column) and stages/reverts hunks.
Plugin 'airblade/vim-gitgutter'
""""""""""""""""""""""""""""""""""""""""""""""""""
" javascript specifics bundles
" voir http://oli.me.uk/2013/06/29/equipping-vim-for-javascript/
""""""""""""""""""""""""""""""""""""""""""""""""""
" Beautifier for javascript
Plugin 'einars/js-beautify'
Plugin 'maksimr/vim-jsbeautify'
"let g:editorconfig_Beautifier=expand("<sfile>:p:h").'/.editorconfig'
Plugin 'jelera/vim-javascript-syntax'
"Plugin 'pangloss/vim-javascript'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'scrooloose/syntastic'
" npm install -g jshint
let g:syntastic_check_on_open=1
Plugin 'https://github.com/sickill/vim-monokai.git'
colorscheme monokai
call vundle#end()
filetype plugin indent on " détecter le type de fichiers
"au FileType javascript call JavaScriptFold()
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS