Anonymous bookmarking with ,bb ,bn ,bp ,bc

This commit is contained in:
yan 2011-12-16 00:30:43 -08:00 committed by Yan Pritzker
parent affd42eee3
commit ceaf82503f
5 changed files with 24 additions and 1 deletions

3
.gitmodules vendored
View File

@ -148,3 +148,6 @@
[submodule "vim/bundle/vim-scripts-ZoomWin"]
path = vim/bundle/vim-scripts-ZoomWin
url = https://github.com/vim-scripts/ZoomWin.git
[submodule "vim/bundle/dterei-VimBookmarking"]
path = vim/bundle/dterei-VimBookmarking
url = https://github.com/dterei/VimBookmarking

View File

@ -191,6 +191,12 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
* gcp (comment a paragraph) added
* ,t - Command-T fuzzy file selector (alternative to PeepOpen / LustyJuggler)
Local Anonymous Bookmarking
* ,bb - toggle local anonymous bookmark at current location
* ,bn ,bp - next and previous anonymous bookmark
* ,bc - clear anonymous bookmarks
Included vim plugins
---
@ -203,6 +209,7 @@ Included vim plugins
* LustyJuggler/Explorer - hit B, type buf name to match a buffer, or type S and use the home row keys to select a buffer
* TagList - hit ,T to see a list of methods in a class (uses ctags)
* CommandT - although I personally use PeepOpen, this is available as it's pretty standard
* VimBookmarks - toggle an anonymous bookmark ,bb and go thru them ,bn ,bp and clear them ,bc
Git

@ -0,0 +1 @@
Subproject commit 95a809c05aebe0404b1619a5a21124133b435976

View File

@ -6,6 +6,6 @@ let g:ConqueTerm_Color = 2
" Open up a variety of commands in the ConqueTerm
nmap <silent> <Leader>cc :execute 'ConqueTermSplit script/console --irb=pry'<CR>
nmap <silent> <Leader>pp :execute 'ConqueTermSplit pry'<CR>
nmap <silent> <Leader>bb :execute 'ConqueTermSplit /bin/bash --login'<CR>
nmap <silent> <Leader>zz :execute 'ConqueTermSplit zsh'<CR>
let g:ConqueTerm_SendVisKey = '<Leader>e'

View File

@ -151,8 +151,20 @@ nnoremap <D-*> :let @/='\<<C-R>=expand("<cword>")<CR>\>'<CR>:set hls<CR>
nnoremap ' `
nnoremap ` '
" ============================
" VimBookmarking
" ============================
"
" Set anonymous bookmarks
nmap ,bb :ToggleBookmark<cr>
nmap ,bn :NextBookmark<cr>
nmap ,bp :PreviousBookmark<cr>
nmap ,bc :ClearBookmarks<cr>
"
" ============================
" Abbreviations to use...
" ============================
" snippets that are expanded with space
abbr pry! require 'pry'; binding.pry