forked from Soulou/Soulou-s-Vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
62 lines (48 loc) · 1.35 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
set number
set nocompatible
set hidden
syntax enable
set mouse=a
set encoding=utf-8
set showcmd
filetype plugin indent on
set nowrap " Don't wrap lines
set tabstop=2 shiftwidth=2
set expandtab
set backspace=indent,eol,start
set hlsearch
set incsearch
set ignorecase
set smartcase
" Pathogen plugin management
call pathogen#infect()
let mapleader=','
" CommandT rescan for new or deleted files
" double percentage sign in command mode is expanded
" to directory of current file - http://vimcasts.org/e/14
cnoremap %% <C-R>=expand('%:h').'/'<cr>
map <leader>t :CommandT<cr>
map <leader>f :CommandTFlush<cr>\|:CommandT<cr>
map <leader>F :CommandTFlush<cr>\|:CommandT %%<cr>
" Voir les caractères invisibles
nmap <leader>l :set list!<CR>
" Remapper le caractère invisible pour la tabulation
set listchars=tab:▸\ ,eol:$
" Changer de buffer
nnoremap <leader><leader> <c-^>
" Changement pour gérer les splits
nnoremap <Leader>. <C-W><C-W>
nnoremap <Leader>_ <C-W>_
nnoremap <Leader><Bar> <C-W><Bar>
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
set background=dark
" colorscheme mustang2
colorscheme desert
set cursorline
:hi CursorLine cterm=NONE
set autowriteall
let g:template_author=system('whoami')
au BufNewFile,BufRead *.hamlc set ft=haml