Mercurial > dotfiles
changeset 10:00cac5ebf546
Added default window size. Added buffer keyboard shortcuts.
author | ludovicchabant |
---|---|
date | Mon, 14 Nov 2011 15:28:15 -0800 |
parents | b79a2f8f544a |
children | 0f87011f1029 |
files | vim/vimrc |
diffstat | 1 files changed, 15 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/vim/vimrc Mon Nov 14 15:10:49 2011 -0800 +++ b/vim/vimrc Mon Nov 14 15:28:15 2011 -0800 @@ -22,9 +22,11 @@ " Load pathogen. call pathogen#infect() -" Hide the toolbar in MacVim/gVIM +" Hide the toolbar in MacVim/gVIM, and set a nice window size. if has("gui_running") set guioptions=-t + set lines=50 + set columns=135 endif " Don't unload abandoned buffers. @@ -124,9 +126,19 @@ " Enable file type detection. filetype indent plugin on +" MiniBufExplorer +" Navigate with CTRL+Tab/CTRL+Shift+Tab +let g:miniBufExplMapCTabSwitchBufs = 1 + " Custom mappings. -let mapleader="," -map <leader>nt :tabnew<CR> " New tab = ,nt +let mapleader="\\" +" MiniBufExplorer mappings +map <leader>e :MiniBufExplorer<cr> +map <leader>c :CMiniBufExplorer<cr> +map <leader>u :UMiniBufExplorer<cr> +map <leader>t :TMiniBufExplorer<cr> +" Close buffer with CTRL+W +map <C-w> :bdelete<cr> " Temporary stuff "let mapleader="," " Use , as Leader