Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added peep open instead of command-t

  • Loading branch information...
commit 986a0982c868e620f19e126dca1978eb6177e6ce 1 parent fa0c604
@dpmcnevin authored
View
6 .gitmodules
@@ -1,9 +1,6 @@
[submodule "bundle/Color-Sampler-Pack.git"]
path = bundle/Color-Sampler-Pack.git
url = git://github.com/vim-scripts/Color-Sampler-Pack.git
-[submodule "bundle/Command-T"]
- path = bundle/Command-T
- url = https://github.com/wincent/Command-T.git
[submodule "bundle/ZoomWin"]
path = bundle/ZoomWin
url = git://github.com/vim-scripts/ZoomWin.git
@@ -115,3 +112,6 @@
[submodule "bundle/vim-snipmate-ruby-snippets"]
path = bundle/vim-snipmate-ruby-snippets
url = git://github.com/dpmcnevin/vim-snipmate-ruby-snippets.git
+[submodule "bundle/changesPlugin"]
+ path = bundle/changesPlugin
+ url = https://github.com/chrisbra/changesPlugin.git
View
2  ackrc
@@ -2,6 +2,8 @@
--ignore-dirs=mam/client
--ignore-dirs=mam/client_daemon
--ignore-dirs=mam/updater
+--ignore-dirs=mam/nuke-mac
--ignore-dirs=client
--ignore-dirs=client_daemon
--ignore-dirs=updater
+--ignore-dirs=nuke-mac
1  bundle/Command-T
@@ -1 +0,0 @@
-Subproject commit 65b26797f7075259eee88c31ad0d5814b44dcbcc
1  bundle/changesPlugin
@@ -0,0 +1 @@
+Subproject commit 618f9c289f9ffe113f1bb8070b0394b0fe0645df
View
33 bundle/vim-peepopen/README.md
@@ -0,0 +1,33 @@
+vim-peepopen
+=============
+
+A plugin for the Vim text editor. PeepOpen provides fuzzy search of filenames and paths in a programming project.
+
+Installation
+------------
+
+Get the PeepOpen.app and open it at least once to approve the Mac OS X security dialog.
+
+Standard:
+
+Copy `peepopen.vim` to your `~/.vim/plugin` directory.
+
+With Tim Pope's [Pathogen](http://github.com/tpope/vim-pathogen):
+
+Copy the entire `vim-peepopen` plugin directory to your `~/.vim/bundle` directory.
+
+Usage
+-----
+
+`<Leader>p` opens the current project directory with the PeepOpen application.
+
+Use the [vim-rooter](http://github.com/airblade/vim-rooter) plugin for automatic assignment of the current working directory for projects stored in Git.
+
+(Leader is mapped to '\' by default)
+
+Credits
+-------
+
+- Initial Vim Plugin by [Andrew Stewart](http://www.airbladesoftware.com/).
+- Some plugin boilerplate from [Rein Henrichs](http://reinh.com/).
+
View
44 bundle/vim-peepopen/plugin/peepopen.vim
@@ -0,0 +1,44 @@
+" plugin/peepopen.vim
+" Author: Geoffrey Grosenbach <boss@topfunky.com>
+" License: MIT License
+
+" Install this file as plugin/peepopen.vim.
+
+" If you prefer Command-T, use this snippet in your .gvimrc:
+
+" if has("gui_macvim")
+" macmenu &File.New\ Tab key=<nop>
+" map <D-t> <Plug>PeepOpen
+" end
+
+" ============================================================================
+
+" Exit quickly when:
+" - this plugin was already loaded (or disabled)
+" - when 'compatible' is set
+if &cp || exists("g:peepopen_loaded") && g:peepopen_loaded
+ finish
+endif
+let g:peepopen_loaded = 1
+
+let s:save_cpo = &cpo
+set cpo&vim
+
+function s:LaunchPeepOpenViaVim()
+ let cwd = getcwd()
+ silent exe "!open \"peepopen://" . shellescape(cwd) . "?editor=MacVim\""
+endfunction
+
+command! PeepOpen :call <SID>LaunchPeepOpenViaVim()
+
+noremap <unique> <script> <Plug>PeepOpen <SID>Launch
+noremap <SID>Launch :call <SID>LaunchPeepOpenViaVim()<CR>
+
+if !hasmapto('<Plug>PeepOpen')
+ map <unique> <silent> <Leader>p <Plug>PeepOpen
+endif
+
+let &cpo = s:save_cpo
+unlet s:save_cpo
+
+" vim:set sw=2 sts=2:
View
6 gvimrc
@@ -3,9 +3,9 @@ if has("gui_macvim")
set fuoptions=maxhorz,maxvert
" Command-T for CommandT
- macmenu &File.New\ Tab key=<D-T>
- map <D-t> :CommandT<CR>
- imap <D-t> <Esc>:CommandT<CR>
+ " macmenu &File.New\ Tab key=<D-T>
+ " map <D-t> :CommandT<CR>
+ " imap <D-t> <Esc>:CommandT<CR>
" Command-Return for fullscreen
macmenu Window.Toggle\ Full\ Screen\ Mode key=<D-CR>
View
7 gvimrc.local
@@ -10,7 +10,7 @@ macmenu &File.Close key=<D-W>
nmap <D-w> :bd<CR>
imap <D-w> <Esc>:bd<CR>
-set wildignore+=*.o,*.obj,.git,*.rbc,*.class,.svn,vendor/gems/*,mam/client/*,mam/client_daemon/*,mam/updater/*,mam/ios/*,mam/windows/*
+set wildignore+=*.o,*.obj,.git,*.rbc,*.class,.svn,vendor/gems/*,mam/client/*,mam/client_daemon/*,mam/updater/*,mam/ios/*,mam/windows/*,mam/nuke-mac/*
" let g:CommandTAcceptSelectionMap = '<C-t>'
" let g:CommandTAcceptSelectionTabMap = '<CR>'
@@ -22,3 +22,8 @@ let delimitMate_matchpairs = "(:),[:],{:},<:>"
" Map Leader-C to copy the current file to the clipboard
map <Leader>C :!cat % \| pbcopy<CR>
+
+" PeepOpen
+macmenu &File.New\ Tab key=<D-T>
+map <D-t> :PeepOpen<CR>
+imap <D-t> <Esc>:PeepOpen<CR>
View
2  vimrc.local
@@ -3,3 +3,5 @@ call pathogen#helptags()
color twilight
+map <Leader>d :EC<CR>
+map <Leader>D :DC<CR>
Please sign in to comment.
Something went wrong with that request. Please try again.