Mercurial > dotfiles
comparison vim/vimrc @ 10:00cac5ebf546
Added default window size. Added buffer keyboard shortcuts.
author | ludovicchabant |
---|---|
date | Mon, 14 Nov 2011 15:28:15 -0800 |
parents | f8792d288397 |
children | 287b91d2898f |
comparison
equal
deleted
inserted
replaced
9:b79a2f8f544a | 10:00cac5ebf546 |
---|---|
20 endif | 20 endif |
21 | 21 |
22 " Load pathogen. | 22 " Load pathogen. |
23 call pathogen#infect() | 23 call pathogen#infect() |
24 | 24 |
25 " Hide the toolbar in MacVim/gVIM | 25 " Hide the toolbar in MacVim/gVIM, and set a nice window size. |
26 if has("gui_running") | 26 if has("gui_running") |
27 set guioptions=-t | 27 set guioptions=-t |
28 set lines=50 | |
29 set columns=135 | |
28 endif | 30 endif |
29 | 31 |
30 " Don't unload abandoned buffers. | 32 " Don't unload abandoned buffers. |
31 set hidden | 33 set hidden |
32 | 34 |
122 set background=dark | 124 set background=dark |
123 | 125 |
124 " Enable file type detection. | 126 " Enable file type detection. |
125 filetype indent plugin on | 127 filetype indent plugin on |
126 | 128 |
129 " MiniBufExplorer | |
130 " Navigate with CTRL+Tab/CTRL+Shift+Tab | |
131 let g:miniBufExplMapCTabSwitchBufs = 1 | |
132 | |
127 " Custom mappings. | 133 " Custom mappings. |
128 let mapleader="," | 134 let mapleader="\\" |
129 map <leader>nt :tabnew<CR> " New tab = ,nt | 135 " MiniBufExplorer mappings |
136 map <leader>e :MiniBufExplorer<cr> | |
137 map <leader>c :CMiniBufExplorer<cr> | |
138 map <leader>u :UMiniBufExplorer<cr> | |
139 map <leader>t :TMiniBufExplorer<cr> | |
140 " Close buffer with CTRL+W | |
141 map <C-w> :bdelete<cr> | |
130 | 142 |
131 " Temporary stuff | 143 " Temporary stuff |
132 "let mapleader="," " Use , as Leader | 144 "let mapleader="," " Use , as Leader |
133 "let gmapleader="," | 145 "let gmapleader="," |
134 "map Y y$ " Yank to the end of the line w/ Y | 146 "map Y y$ " Yank to the end of the line w/ Y |