diff 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
line wrap: on
line diff
--- a/vim/vimrc	Thu Feb 23 19:59:36 2012 -0800
+++ b/vim/vimrc	Thu Feb 23 21:01:55 2012 -0800
@@ -177,6 +177,13 @@
 
 " }}}
 
+" File-Specific Settings {{{
+
+" Nice text width for text files.
+autocmd FileType text,markdown setlocal textwidth=80
+
+" }}}
+
 " Mappings {{{
 
 let mapleader=","
@@ -191,6 +198,9 @@
 " Open NERDtree.
 nnoremap <F3> :NERDTreeToggle<cr>
 
+" Switch buffers.
+nnoremap <F4> :execute ("buffer " . bufname("#"))<cr>
+
 " Switch between FR and US keyboard layouts.
 nnoremap <leader>fr :setlocal keymap=french<cr>
 nnoremap <leader>us :setlocal keymap=<cr>