Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Small cleanups

  • Loading branch information...
commit efdea260b551472ff94d59919d065f892923c8a3 1 parent 3a2de70
Phil Crosby authored November 22, 2012

Showing 2 changed files with 19 additions and 8 deletions. Show diff stats Hide diff stats

  1. 5  README.markdown
  2. 22  vimrc
5  README.markdown
Source Rendered
... ...
@@ -1,2 +1,7 @@
1 1
 This is my Vim setup. Much of it is based off of Caleb Spare's. He has some
2 2
 [helpful links](https://github.com/cespare/vim-config) on how to structure one's Vim setup.
  3
+
  4
+Notes about plugins
  5
+------------------
  6
+
  7
+vim-nerdtree-tabs: adds the ability to keep nerdtree synced across tabs, and hide/show for all tabs.
22  vimrc
... ...
@@ -1,4 +1,4 @@
1  
-" Pathogen for plugins.
  1
+"lua Pathogen for plugins.
2 2
 filetype off
3 3
 call pathogen#infect()
4 4
 
@@ -141,6 +141,9 @@ imap <D-6> <esc><D-6>
141 141
 imap <D-7> <esc><D-7>
142 142
 noremap J gT
143 143
 noremap K gt
  144
+" I'm using Spark to remap option tab to CMD+OPT+Tab, for tab switching.
  145
+noremap <A-D-Left> gT
  146
+noremap <A-D-Right> gt
144 147
 
145 148
 " Window splits
146 149
 noremap <D-d> <C-w>s
@@ -162,6 +165,10 @@ noremap <leader>- 6<C-W>-
162 165
 
163 166
 " Treat .txt files as markdown. All of my .txt notes are in markdown.
164 167
 au BufRead,BufNewFile *.txt set filetype=markdown
  168
+" By default Vim treats .md as modula2.
  169
+au BufRead,BufNewFile *.md set filetype=markdown
  170
+" Treat .erb as html
  171
+au BufRead,BufNewFile *.erb set filetype=html
165 172
 
166 173
 " commenting (provided by NERDCommenter
167 174
 let NERDSpaceDelims=1 " Insert one space after comment characters.
@@ -178,10 +185,14 @@ nnoremap <leader>r :CommandTFlush<CR>
178 185
 set wildignore+=*.class
179 186
 
180 187
 " Nerd Tree
181  
-nmap <leader>n :NERDTreeToggle<CR>
  188
+nmap <leader>n :NERDTreeTabsToggle<CR>
  189
+" Focuses the current file in nerd tree.
  190
+nmap <leader>f :NERDTreeFind<CR>
182 191
 " These two are mapped to J and K by default. Unbind them so we can use J and K to switch tabs.
183 192
 let NERDTreeMapJumpFirstChild='_'
184 193
 let NERDTreeMapJumpLastChild='_'
  194
+let g:nerdtree_tabs_open_on_new_tab=0
  195
+let g:nerdtree_tabs_open_on_gui_startup=0
185 196
 
186 197
 " Show extra whitespace
187 198
 hi ExtraWhitespace guibg=#666666
@@ -206,11 +217,6 @@ let g:paredit_mode = 0 " turn this off for now.
206 217
 
207 218
 " Powerline
208 219
 let g:Powerline_symbols = 'unicode'
209  
-" call Pl#Theme#RemoveSegment('charcode')
210  
-" call Pl#Theme#RemoveSegment('filetype')
211  
-" call Pl#Theme#RemoveSegment('pwd')
212  
-" call Pl#Theme#RemoveSegment('scrollpercent')
213  
-"
214  
-" Using a customized powerline theme to remove segments, as suggested by 
  220
+" Using a customized powerline theme to remove segments, as suggested by
215 221
 " http://stackoverflow.com/questions/11404863/how-to-remove-a-segment-in-vim-powerline
216 222
 let g:Powerline_theme='my_powerline_theme'

0 notes on commit efdea26

Please sign in to comment.
Something went wrong with that request. Please try again.