comparison vim/vimrc @ 18:cec2213f938c

Removed some MiniBufExplorer mappings. Disabled command-t (because you need Ruby installed). Some little settings changes.
author Ludovic Chabant <ludovic@chabant.com>
date Mon, 21 Nov 2011 17:12:03 -0800
parents 287b91d2898f
children 6b831735c092
comparison
equal deleted inserted replaced
17:3b6f884edf98 18:cec2213f938c
17 else 17 else
18 let $HOMEVIM = ".vim" 18 let $HOMEVIM = ".vim"
19 let $PLATFORM = "unix" 19 let $PLATFORM = "unix"
20 endif 20 endif
21 21
22 " Disable some plugins.
23 let g:pathogen_disabled = []
24 call add(g:pathogen_disabled, 'command-t')
25
22 " Load pathogen. 26 " Load pathogen.
23 call pathogen#infect() 27 call pathogen#infect()
24 28
25 " Hide the toolbar in MacVim/gVIM, and set a nice window size. 29 " Hide the toolbar in MacVim/gVIM, and set a nice window size.
26 if has("gui_running") 30 if has("gui_running")
27 set guioptions=-t 31 set guioptions=-t
28 set lines=50 32 set lines=50
29 set columns=135 33 set columns=135
30 endif 34 endif
31 35
36 " Disable modelines.
37 set modelines=0
38
32 " Don't unload abandoned buffers. 39 " Don't unload abandoned buffers.
33 set hidden 40 set hidden
34 41
35 " Show line numbers. 42 " Show line numbers.
36 set number 43 set number
44
45 " Show what mode we're in, and what command we're typing.
46 set showmode
47 set showcmd
48
49 " Keep the cursor off the top/bottom edges.
50 set scrolloff=3
37 51
38 " Smart auto-indenting. 52 " Smart auto-indenting.
39 set autoindent 53 set autoindent
40 set smartindent 54 set smartindent
41 55
93 set shiftwidth=4 107 set shiftwidth=4
94 set softtabstop=4 108 set softtabstop=4
95 set smarttab 109 set smarttab
96 set expandtab 110 set expandtab
97 111
112 " Default encoding
113 set encoding=utf-8
114
98 " Clipboard buffer. 115 " Clipboard buffer.
99 set clipboard=unnamed 116 set clipboard=unnamed
100 117
101 " Smoot terminal experience. 118 " Smoot terminal experience.
102 set ttyfast 119 set ttyfast
117 134
118 135
119 " Syntax highlighting 136 " Syntax highlighting
120 syntax on 137 syntax on
121 138
139 " Change the current directory to the home directory.
140 cd ~/
141
122 " Default color scheme 142 " Default color scheme
123 colorscheme peaksea 143 colorscheme peaksea
124 set background=dark 144 set background=dark
125 145
126 " Enable file type detection. 146 " Enable file type detection.
127 filetype indent plugin on 147 filetype indent plugin on
128 148
129 " MiniBufExplorer 149 " MiniBufExplorer
130 " Navigate with CTRL+Tab/CTRL+Shift+Tab 150 " Navigate with CTRL+Tab/CTRL+Shift+Tab
131 "let g:miniBufExplMapCTabSwitchBufs = 1 151 let g:miniBufExplMapCTabSwitchBufs = 1
132 152
133 " Custom mappings. 153 " Custom mappings.
134 let mapleader="\\" 154 let mapleader="\\"
135 " MiniBufExplorer mappings 155 " MiniBufExplorer mappings
136 map <leader>e :MiniBufExplorer<cr> 156 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>
142
143 " Open NERDtree 157 " Open NERDtree
144 map <leader>n :NERDTreeToggle<cr> 158 map <leader>n :NERDTreeToggle<cr>
145 159
146 " Temporary stuff 160 " Temporary stuff
147 "let mapleader="," " Use , as Leader 161 "let mapleader="," " Use , as Leader