Mercurial > dotfiles
comparison vim/vimrc @ 76:990968329a9b
Disabled minibufexpl for a while.
New settings for all kinds of stuff.
Using badwolf color scheme by default.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 09 Mar 2012 17:14:30 -0800 |
parents | 39a7e05637d8 |
children | 121bef55252f |
comparison
equal
deleted
inserted
replaced
75:d930a9c6d590 | 76:990968329a9b |
---|---|
29 endif | 29 endif |
30 | 30 |
31 " Disable some plugins. | 31 " Disable some plugins. |
32 let g:pathogen_disabled = [] | 32 let g:pathogen_disabled = [] |
33 call add(g:pathogen_disabled, 'vimroom') | 33 call add(g:pathogen_disabled, 'vimroom') |
34 call add(g:pathogen_disabled, 'minibufexpl') | |
34 | 35 |
35 " Load pathogen. | 36 " Load pathogen. |
36 call pathogen#infect() | 37 call pathogen#infect() |
37 | 38 |
38 " Hide the toolbar in MacVim/gVIM, and set a nice window size. | 39 " Hide the toolbar in MacVim/gVIM, and set a nice window size. |
67 set smartindent | 68 set smartindent |
68 | 69 |
69 " Use confirmation dialog. | 70 " Use confirmation dialog. |
70 set confirm | 71 set confirm |
71 | 72 |
73 " Don't use annoying sounds. | |
74 set visualbell | |
75 | |
72 " Remember lots of commands. | 76 " Remember lots of commands. |
73 set history=1000 | 77 set history=1000 |
78 | |
79 " Try to reduce flickering. | |
80 set lazyredraw | |
81 | |
82 " Show matching braces but not for too long. | |
83 set showmatch | |
84 set matchtime=2 | |
85 | |
86 " Show soft-broken/wrapped lines with a prefix. | |
87 set showbreak=→ | |
74 | 88 |
75 " Use incremental search, with highlighting, | 89 " Use incremental search, with highlighting, |
76 " case-insensitive unless we actually type some | 90 " case-insensitive unless we actually type some |
77 " mixed-case stuff. | 91 " mixed-case stuff. |
78 set incsearch | 92 set incsearch |
88 | 102 |
89 " Show interesting stuff at the bottom of the window. | 103 " Show interesting stuff at the bottom of the window. |
90 set showcmd | 104 set showcmd |
91 set ruler | 105 set ruler |
92 | 106 |
107 " Make sure splitting windows is done in a way that makes sense. | |
108 set splitbelow | |
109 set splitright | |
110 | |
93 " Don't pollute the hard-drive with *~ files. Only | 111 " Don't pollute the hard-drive with *~ files. Only |
94 " create them in hidden backup/temp directories while | 112 " create them in hidden backup/temp directories while |
95 " we edit the file, and then get rid of it. | 113 " we edit the file, and then get rid of it. |
96 set nobackup | 114 set nobackup |
97 set writebackup | 115 set writebackup |
103 set wildmenu | 121 set wildmenu |
104 set wildignore+=.DS_Store,Thumbs.db | 122 set wildignore+=.DS_Store,Thumbs.db |
105 | 123 |
106 " Always display the tab-page line. | 124 " Always display the tab-page line. |
107 set showtabline=2 | 125 set showtabline=2 |
108 | |
109 " Show matching braces. | |
110 set showmatch | |
111 | 126 |
112 " Set the file-formats. | 127 " Set the file-formats. |
113 set ffs=unix,mac,dos | 128 set ffs=unix,mac,dos |
114 | 129 |
115 " Tabs and indenting are 4 characters, and tabs behave like | 130 " Tabs and indenting are 4 characters, and tabs behave like |
161 if has('gui_running') | 176 if has('gui_running') |
162 set background=light | 177 set background=light |
163 else | 178 else |
164 set background=dark | 179 set background=dark |
165 endif | 180 endif |
166 colorscheme solarized | 181 colorscheme badwolf |
167 | 182 |
168 " Enable file type detection. | 183 " Enable file type detection. |
169 filetype indent plugin on | 184 filetype indent plugin on |
170 | 185 |
171 " }}} | 186 " }}} |
172 | 187 |
188 " Auto-Commands {{{ | |
189 | |
190 " Only show the highlighted cursor line in the current window. | |
191 augroup CursorLine | |
192 au! | |
193 au WinLeave * set nocursorline | |
194 au WinEnter * set cursorline | |
195 augroup END | |
196 | |
197 " }}} | |
198 | |
173 " Plugin Settings {{{ | 199 " Plugin Settings {{{ |
174 | 200 |
175 " Navigate MiniBufExplorer with CTRL+Tab/CTRL+Shift+Tab. | 201 " Navigate MiniBufExplorer with CTRL+Tab/CTRL+Shift+Tab. |
176 let g:miniBufExplMapCTabSwitchBufs = 1 | 202 let g:miniBufExplMapCTabSwitchBufs = 1 |
177 | 203 |
185 " }}} | 211 " }}} |
186 | 212 |
187 " Mappings {{{ | 213 " Mappings {{{ |
188 | 214 |
189 let mapleader="," | 215 let mapleader="," |
216 | |
217 " Visual line navigation | |
218 noremap <up> g<up> | |
219 noremap <down> g<down> | |
220 noremap <home> g<home> | |
221 noremap <end> g<end> | |
190 | 222 |
191 " Edit & source the VIMRC. | 223 " Edit & source the VIMRC. |
192 nnoremap <leader>ev :vsplit $MYVIMRC<cr> | 224 nnoremap <leader>ev :vsplit $MYVIMRC<cr> |
193 nnoremap <leader>sv :source $MYVIMRC<cr> | 225 nnoremap <leader>sv :source $MYVIMRC<cr> |
194 | 226 |