Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add peepopen and other macvim-specifc changes. Also add readme.

  • Loading branch information...
commit d988833f116771a7cc08e565af1babff2627638d 1 parent 0e6fcfa
@sentientmonkey authored
View
1  .VimballRecord
@@ -1 +0,0 @@
-twitvim-0.4.2.vba: call delete('/home/swindsor/.vim/plugin/twitvim.vim')|call delete('/home/swindsor/.vim/doc/twitvim.txt')
View
9 README.rdoc
@@ -0,0 +1,9 @@
+= Installation Instructions
+
+ $ git clone git://github.com/sentientmonkey/vimfiles.git ~/.vim
+ $ ln -s ~/.vim/vimrc ~/.vimrc
+ $ ln -s ~/.vim/gvimrc ~/.gvimrc
+ $ cd ~/.vim
+ $ git submodule init
+ $ git submodule update
+
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 -a PeepOpen " . shellescape(cwd)
+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
5 gvimrc
@@ -0,0 +1,5 @@
+" peepopen hotkey for command-T
+if has("gui_macvim")
+ macmenu &File.New\ Tab key=<nop>
+ map <D-t> <Plug>PeepOpen
+end
View
6 vimrc
@@ -12,6 +12,12 @@ colorscheme molokai
syntax on
" set smartindent
+" transparency effect for macvim
+if has("gui_macvim")
+ set transp=8
+end
+
+
" Load matchit (% to bounce from do to end, etc.)
" runtime! macros/matchit.vim
filetype on " Enable filetype detection
Please sign in to comment.
Something went wrong with that request. Please try again.