Mercurial > dotfiles
comparison vim/vimrc @ 73:39a7e05637d8
Added 80 chars limit to text/markdown files.
Added <F4> hotkey to switch to alternate buffer.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 23 Feb 2012 21:01:55 -0800 |
parents | 34dafaf8ed9c |
children | 990968329a9b |
comparison
equal
deleted
inserted
replaced
72:4b4e461e2022 | 73:39a7e05637d8 |
---|---|
175 " Navigate MiniBufExplorer with CTRL+Tab/CTRL+Shift+Tab. | 175 " Navigate MiniBufExplorer with CTRL+Tab/CTRL+Shift+Tab. |
176 let g:miniBufExplMapCTabSwitchBufs = 1 | 176 let g:miniBufExplMapCTabSwitchBufs = 1 |
177 | 177 |
178 " }}} | 178 " }}} |
179 | 179 |
180 " File-Specific Settings {{{ | |
181 | |
182 " Nice text width for text files. | |
183 autocmd FileType text,markdown setlocal textwidth=80 | |
184 | |
185 " }}} | |
186 | |
180 " Mappings {{{ | 187 " Mappings {{{ |
181 | 188 |
182 let mapleader="," | 189 let mapleader="," |
183 | 190 |
184 " Edit & source the VIMRC. | 191 " Edit & source the VIMRC. |
188 " MiniBufExplorer mappings. | 195 " MiniBufExplorer mappings. |
189 nnoremap <F2> :TMiniBufExplorer<cr> | 196 nnoremap <F2> :TMiniBufExplorer<cr> |
190 | 197 |
191 " Open NERDtree. | 198 " Open NERDtree. |
192 nnoremap <F3> :NERDTreeToggle<cr> | 199 nnoremap <F3> :NERDTreeToggle<cr> |
200 | |
201 " Switch buffers. | |
202 nnoremap <F4> :execute ("buffer " . bufname("#"))<cr> | |
193 | 203 |
194 " Switch between FR and US keyboard layouts. | 204 " Switch between FR and US keyboard layouts. |
195 nnoremap <leader>fr :setlocal keymap=french<cr> | 205 nnoremap <leader>fr :setlocal keymap=french<cr> |
196 nnoremap <leader>us :setlocal keymap=<cr> | 206 nnoremap <leader>us :setlocal keymap=<cr> |
197 | 207 |