-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc
111 lines (89 loc) · 2.44 KB
/
vimrc
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
set nocompatible
set hidden
set number
syntax enable
set mouse=a
set encoding=utf-8
set showcmd
filetype plugin on
filetype plugin indent on
set nowrap " Don't wrap lines
set backspace=indent,eol,start
set hlsearch
set incsearch
set ignorecase
set smartcase
let g:gofmt_command = "goimports"
" Pathogen plugin management
call pathogen#infect()
let mapleader=','
nnoremap <Leader>. <C-W><C-W>
nnoremap <Leader>_ <C-W>_
nnoremap <Leader><Bar> <C-W><Bar>
nnoremap <leader><leader> <c-^>
nnoremap <Leader>v :tabe ~/.vim/vimrc<CR>
"" Normal mode mapping
" Save
nmap <C-s> :w<CR>
" Browsing files
nmap <leader>o :CtrlPBuffer<cr>
nmap <leader>t :CtrlP<cr>
" Invisible caracters
nmap <leader>l :set list!<CR>
" Folding
nmap <leader>z zR<CR>
nmap <leader>a za<CR>
"" Insert mode mapping
" Save
imap <C-s> <Esc>:w<CR>a
" Remap esc on jj
imap jj <ESC>
map <F2> :TlistToggle<CR>
map <F3> :NERDTreeToggle<CR>
map <F5> :YcmForceCompileAndDiagnostics<CR>a
map <leader>m :!make<CR>
map <F12> :!zsh<CR>
map! <F2> <ESC>:TlistToggle<CR>
map! <F3> <ESC>:NERDTreeToggle<CR>
map! <F5> <ESC>:YcmForceCompileAndDiagnostics<CR>a
map! <F12> <ESC>:!zsh<CR>
set pastetoggle=<F4>
" Remapper le caractère invisible pour la tabulation
set listchars=tab:▸\ ,eol:$
nnoremap <silent> <Leader>+ :exe "resize " . (winheight(0) * 3/2)<CR>
nnoremap <silent> <Leader>- :exe "resize " . (winheight(0) * 2/3)<CR>
set guioptions-=T
set t_Co=256
let g:solarized_termcolors=256
let g:load_doxygen_syntax=1
set background=light
colorscheme codeschool
set cursorline
hi CursorLine cterm=NONE
set autowriteall
let g:template_author=system("getent passwd | grep $USER | cut -d':' -f5 | tr -d '\n'")
au BufNewFile,BufRead *.hamlc set ft=haml
" disable Keyword completion
" let g:acp_behaviorKeywordLength = -1
" Completion after 3 caracters
" let g:acp_behaviorKeywordLength = 3
" Power status line
set laststatus=2
let g:Powerline_symbols = 'fancy'
" Go language
set rtp+=$GOROOT/misc/vim
set hi=150
let g:ycm_key_invoke_completion = '<C-l>'
let g:ycm_min_num_of_chars_for_completion = 1
let g:UltiSnipsExpandTrigger="<c-j>"
let g:UltiSnipsJumpForwardTrigger="<c-j>"
let g:UltiSnipsJumpBackwardTrigger="<c-k>"
let g:instant_markdown_slow = 1
let g:ycm_confirm_extra_conf = 0
if has("gui_running")
set guifont=Inconsolata-dz\ for\ Powerline\ Medium\ 13
set guioptions-=m "remove menu bar
set guioptions-=T "remove toolbar
set guioptions-=r "remove right-hand scroll bar
endif
"let g:AutoPairsFlyMode = 1