-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
113 lines (93 loc) · 2.66 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
112
113
set shell=/bin/bash
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My Bundles here:
"
" original repos on github
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-fireplace'
Bundle 'tpope/vim-classpath'
Bundle 'guns/vim-clojure-static'
Bundle 'Raimondi/delimitMate'
Bundle 'majutsushi/tagbar'
Bundle 'bling/vim-airline'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'scrooloose/syntastic'
Bundle 'Valloric/YouCompleteMe'
Bundle 'Shougo/neomru.vim'
Bundle 'Shougo/unite.vim'
Bundle 'Shougo/vimproc.vim'
Bundle 'kien/rainbow_parentheses.vim'
Bundle 'wting/rust.vim'
" vim-scripts repos
Bundle 'MatchTag'
Bundle 'ack.vim'
Bundle 'closetag.vim'
Bundle 'taglist.vim'
Bundle 'Zenburn'
Bundle "slimv.vim"
filetype on
filetype off
filetype plugin indent on
set nocompatible
set modelines=0
set encoding=utf8
set autoindent
set showmode
set showcmd
set hidden
set wildmenu
set wildmode=list:longest
set visualbell
set cursorline
set ttyfast
set ruler
set backspace=indent,eol,start
set laststatus=2
set viminfo='10,\"100,:20,%,n~/.viminfo
set directory=~/.tmp
if has('gui_running')
"set guifont=Menlo\ for\ Powerline:h12
set guifont=Menlo:h12
set guioptions=egmrt
end
syntax on
set background=dark
colorscheme zenburn
au FocusLost * :wa
nnoremap <C-u>:w<CR> :call TransmitFtpSendFile()<CR>
let mapleader = ","
set undofile
set rnu
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
ab sbo Sébastien Orban
ab asbo Author: Sébastien Orban
" Raccourci perso
nnoremap <leader>f :TagbarToggle <CR>
nnoremap <leader>sh <C-w>v<C-w>l
nnoremap <leader>n <C-w><C-w>
nnoremap <leader>h :set hlsearch! hlsearch?<CR>
nnoremap <F5> :GundoToggle<CR>
let g:slimv_swank_cmd = '!osascript -e "tell application \"Terminal\" to do script \"ccl --load ~/.vim/bundle/slimv.vim/slime/start-swank.lisp\""'
let g:slimv_leader = ';'
let g:paredit_leader = '='
set rtp+=$GOROOT/misc/vim
autocmd BufNewFile,BufReadPost *.md set filetype=markdown
" Unite
let g:unite_source_history_yank_enable = 1
let g:unite_source_grep_command = 'ack'
let g:unite_source_grep_default_opts='--no-heading --no-color -a'
let g:unite_source_grep_recursive_opt=''
call unite#filters#matcher_default#use(['matcher_fuzzy'])
nnoremap <leader>t :<C-u>Unite -no-split -buffer-name=files -start-insert file_rec/async:!<cr>
nnoremap <leader>f :<C-u>Unite -no-split -buffer-name=files -start-insert file<cr>
nnoremap <leader>r :<C-u>Unite -no-split -buffer-name=mru -start-insert file_mru<cr>
nnoremap <leader>y :<C-u>Unite -no-split -buffer-name=yank history/yank<cr>
nnoremap <leader>e :<C-u>Unite -no-split -buffer-name=buffer buffer<cr>
nnoremap <leader>a :<C-u>Unite grep:.<cr>