John Guidry avatar John Guidry committed 56f8109

1. Remove minibufexpl customizations from vimrc and disable plugin
2. Set netrw to keep the current directory the same as the browsing directory
3. Organize file and buffer key mappings for CtrlP

Comments (0)

Files changed (1)

 set nocompatible  " Don't emulate vi. For vim-align
 
-" Don't clobber open utility buffers like NerdTree when opening tab from miniBufExplr
-let g:miniBufExplModSelTarget = 1 
-
 " Hmtl vim indent settings
 let g:html_indent_inctags = "html,body,head,tbody"
 let g:html_indent_script1 = "inc"
 let g:html_indent_style1 = "inc"
 
 " CtrlP file finder settings
-" Remap to avoid clobbering autocompletion
-let g:ctrlp_map = '<Leader>f'
-
 " Sane ignore settings
 let g:ctrlp_custom_ignore = '\.git$\|\.hg$\|\.svn$\|node_modules$' 
 
+" Remember last browsed directory 
+let g:netrw_keepdir = 0
+
 " To disable a plugin, add it's bundle name to the following list
 let g:pathogen_disabled = []
 call add(g:pathogen_disabled, 'nerdtree')
+call add(g:pathogen_disabled, 'minibufexpl.vim')
 
 runtime bundle/vim-pathogen/autoload/pathogen.vim
 call pathogen#infect() 
 
 set hidden          " Background buffer without writing to disk
 set autoread        " Re-read on file change
-set guioptions=aemc " Autoselect, menu and prefer console questions over popups
+set guioptions=aec " Autoselect, menu and prefer console questions over popups
 
 " Tab complete up to the point of ambiguity and cycle 
 set wildmode=list:longest
 nnoremap j gj
 nnoremap k gk
 
-"" map <Leader>f :NERDTreeToggle<CR>
 nmap <Leader>t :TagbarToggle<CR>
 
+" Remap to avoid clobbering autocompletion
+let g:ctrlp_map = '<Leader>f'
+map <Leader>b :CtrlPBuffer<CR>
+
 " Open vimrc for fast editing
 map <Leader>e :e! ~/.vimrc<CR> 
 
     autocmd BufEnter *.ctp set syn=php
   augroup END
 
-  autocmd BufEnter * if bufname("") !~ "^\[A-Za-z0-9\]*://" | lcd %:p:h | endif
 endif
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.