comparison vim/vimrc @ 43:25e8b2fffd50

Changed some mappings. Added some abbreviations. Skipping lawrencium plugin while I'm writing it.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 24 Nov 2011 18:24:46 -0800
parents 6b831735c092
children aac6188ab4d6
comparison
equal deleted inserted replaced
42:6b831735c092 43:25e8b2fffd50
20 endif 20 endif
21 21
22 " Disable some plugins. 22 " Disable some plugins.
23 let g:pathogen_disabled = [] 23 let g:pathogen_disabled = []
24 call add(g:pathogen_disabled, 'command-t') 24 call add(g:pathogen_disabled, 'command-t')
25 call add(g:pathogen_disabled, 'lawrencium')
25 26
26 " Load pathogen. 27 " Load pathogen.
27 call pathogen#infect() 28 call pathogen#infect()
28 29
29 " Hide the toolbar in MacVim/gVIM, and set a nice window size. 30 " Hide the toolbar in MacVim/gVIM, and set a nice window size.
150 " Navigate with CTRL+Tab/CTRL+Shift+Tab 151 " Navigate with CTRL+Tab/CTRL+Shift+Tab
151 let g:miniBufExplMapCTabSwitchBufs = 1 152 let g:miniBufExplMapCTabSwitchBufs = 1
152 153
153 " Custom mappings. 154 " Custom mappings.
154 let mapleader="," 155 let mapleader=","
156
157 " Edit & source the VIMRC
158 nnoremap <leader>ev :vsplit $MYVIMRC<cr>
159 nnoremap <leader>sv :source $MYVIMRC<cr>
160
155 " MiniBufExplorer mappings 161 " MiniBufExplorer mappings
156 map <leader>e :MiniBufExplorer<cr> 162 nnoremap <F2> :MiniBufExplorer<cr>
163
157 " Open NERDtree 164 " Open NERDtree
158 map <leader>n :NERDTreeToggle<cr> 165 nnoremap <F3> :NERDTreeToggle<cr>
166
159 " Switch between FR and US keyboard layouts 167 " Switch between FR and US keyboard layouts
160 map <leader>fr :set keymap=french<cr> 168 nnoremap <leader>fr :set keymap=french<cr>
161 map <leader>us :set keymap=<cr> 169 nnoremap <leader>us :set keymap=<cr>
170
171 " Abbreviations
172 iabbrev @@ ludovic@chabant.com
173 iabbrev ccopy Copyright &copy;2011 Ludovic Chabant, all rights reserved.
174 iabbrev ssig --<cr>l u d o .<cr>. 8 0 17 80
162 175
163 " Temporary stuff 176 " Temporary stuff
164 "let mapleader="," " Use , as Leader 177 "let mapleader="," " Use , as Leader
165 "let gmapleader="," 178 "let gmapleader=","
166 "map Y y$ " Yank to the end of the line w/ Y 179 "map Y y$ " Yank to the end of the line w/ Y