Permalink
Browse files

Removed Peepopen plugin and fixed mapping definition

  • Loading branch information...
1 parent 0bdc859 commit a84a7f38ff8469a885395fad87673289611f34aa James Martin committed Apr 18, 2012
Showing with 16 additions and 60 deletions.
  1. +0 −44 vim/plugin/peepopen.vim
  2. +16 −16 vimrc
View
@@ -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 -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
32 vimrc
@@ -76,6 +76,22 @@ set wildchar=<Tab> wildmenu wildmode=full
:noremap ,v :vsp^M^W^W<cr>
:noremap ,h :split^M^W^W<cr>
+" Professor VIM says '87% of users prefer jj over esc', jj abrams disagrees
+let mapleader = ","
+imap jj <Esc>
+imap uu _
+imap hh =>
+imap aa @
+" JM - useful to be able to toggle wrapping when writing prose
+nnoremap <leader>w :set wrap<CR>
+nnoremap <leader>W :set nowrap<CR>
+" Open file under cursor in quicklist
+nnoremap ,o :.cc<CR>
+" Toggle spell checking with <leader>s
+nmap <silent> <leader>s :set spell!<CR>
+" Set region to British English
+set spelllang=en_gb
+
"Moving around windows more easily
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
@@ -259,22 +275,6 @@ set foldnestmax=10
set nofoldenable
set foldlevel=1
-" Professor VIM says '87% of users prefer jj over esc', jj abrams disagrees
-let mapleader = ","
-imap jj <Esc>
-imap uu _
-imap hh =>
-imap aa @
-" JM - useful to be able to toggle wrapping when writing prose
-nnoremap <leader>w :set wrap<CR>
-nnoremap <leader>W :set nowrap<CR>
-" Open file under cursor in quicklist
-nnoremap ,o :.cc<CR>
-" Toggle spell checking with <leader>s
-nmap <silent> <leader>s :set spell!<CR>
-" Set region to British English
-set spelllang=en_gb
-
" File Stuff ******************************************************************
filetype plugin indent on
autocmd FileType html :set filetype=xhtml

0 comments on commit a84a7f3

Please sign in to comment.