Mercurial > dotfiles
changeset 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 | 4b4e461e2022 |
children | 72791cb6aa8c d930a9c6d590 |
files | vim/vimrc |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
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>