Permalink
Browse files

Replace PeepOpen with Ctrl-P

  • Loading branch information...
RStankov committed Apr 8, 2012
1 parent 8df4357 commit a894167369c058d9372a2f54e0fbf11879bec896
Showing with 8 additions and 83 deletions.
  1. +3 −0 .gitmodules
  2. +0 −5 dot/gvimrc
  3. +1 −0 dot/vim/bundle/ctrlp
  4. +0 −33 dot/vim/bundle/vim-peepopen/README.md
  5. +0 −44 dot/vim/bundle/vim-peepopen/plugin/peepopen.vim
  6. +4 −1 dot/vimrc
View
@@ -112,3 +112,6 @@
[submodule "dot/vim/bundle/indent-object"]
path = dot/vim/bundle/indent-object
url = git://github.com/michaeljsmith/vim-indent-object.git
+[submodule "dot/vim/bundle/ctrlp"]
+ path = dot/vim/bundle/ctrlp
+ url = git://github.com/kien/ctrlp.vim.git
View
@@ -1,8 +1,3 @@
-if has("gui_macvim")
- macmenu &File.New\ Tab key=<nop>
- map <c-t> <Plug>PeepOpen
-end
-
" Hide toolbar and menubar.
set guioptions-=T
set guioptions-=m
Submodule ctrlp added at 194987
@@ -1,33 +0,0 @@
-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/).
-
@@ -1,44 +0,0 @@
-" 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
@@ -41,7 +41,7 @@ set incsearch
" Fix backspace in insert mode
set backspace=indent,eol,start
-"<D-"> Set clipboard
+" Set clipboard
set clipboard=unnamedplus
" Autoindent options
@@ -104,5 +104,8 @@ nnoremap gj <C-w>j
nnoremap gk <C-w>k
nnoremap gl <C-w>l
+" CtrlP clear cache
+nnoremap <D-5> :CtrlPClearCache<CR>
+
" Clear search results when hitting space
nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>

0 comments on commit a894167

Please sign in to comment.