Browse files

Use Ctrlp for buffer-grep and buffer-navigation

  • Loading branch information...
1 parent 5891301 commit 7644dbc6e283743339dbe2a8779f31f49770d4cf @grota committed May 7, 2012
Showing with 13 additions and 13 deletions.
  1. +7 −5 vim/dotvim/doc/grota_documentation.txt
  2. +6 −8 vim/vimrc
View
12 vim/dotvim/doc/grota_documentation.txt
@@ -22,22 +22,24 @@ i_<C-r><Tab> to see SnipMate completions
<C-e> create new buffer with the given name and path
<C-u> clear prompt
-<C-f> :CtrlPMRU
+<C-f> :CtrlPLastMode
+ <C-y> create with path
+ <C-z>, <C-o> Mark, Open multi files
<C-a>, <C-e> start,end
<C-u>, <C-w> clear all, clear word
<C-t>, <C-v>, <C-s> open in tab, vert, horz
<C-n>, <C-p> next/prev in ctrlp history
- <C-y> create with path
<c-\> Open dialog to paste one of the below:
<M-w> insert word under cursor, <M-s> insert last search pattern
- <M-v> insert last selected piece, <M-+> insert content of + reg
+ <M-v> insert last selected piece, <M-c> insert content of + reg
+<M-g> :CtrlPLine
+<M-b> :CtrlPBuffer
+<leader>ab :CtrlPBookmarkDirAdd %:p:h
<leader>gl :<C-U>Gitv --all<CR>
<leader>qf Quickfix toggle
<leader>ww :pwd
<leader>gg :Ggrep
-<M-g> :LustyBufferGrep
-<M-b> :LustyBufferExplorer
|surround| ysiw' add '' around the word
|surround| cs)( change only the spacing, since the opening braces {[( do have spacing
View
14 vim/vimrc
@@ -429,8 +429,7 @@ let g:ctrlp_cmd = 'CtrlPLastMode'
let g:ctrlp_working_path_mode = 0
let g:ctrlp_clear_cache_on_exit = 0
let g:ctrlp_highlight_match = [1, 'Pmenu']
-"let g:ctrlp_arg_map = 1
-"let g:ctrlp_open_multi = 'vr'
+let g:ctrlp_open_multiple_files = '1vr'
set <M-w>=w
set <M-s>=s
set <M-v>=v
@@ -439,10 +438,14 @@ let g:ctrlp_prompt_mappings = {
\ 'PrtInsert("w")': ['<F2>', '<M-w>'],
\ 'PrtInsert("s")': ['<F3>', '<M-s>'],
\ 'PrtInsert("v")': ['<F4>', '<M-v>'],
- \ 'PrtInsert("+")': ['<F6>', '<M-+>'],
+ \ 'PrtInsert("c")': ['<F6>', '<M-+>'],
\}
let g:ctrlp_extensions = ['line', 'bookmarkdir']
nnoremap <leader>ab :<C-u>CtrlPBookmarkDirAdd %:p:h<CR>
+set <M-b>=b
+nnoremap <silent> <M-b> :CtrlPBuffer<CR>
+set <M-g>=g
+nnoremap <silent> <M-g> :CtrlPLine<CR>
"}}}
" Lusty-Juggler/Explorer {{{
" Lusty-Juggler
@@ -451,12 +454,7 @@ let g:LustyJugglerAltTabMode = 1 "enables the mapping below
nnoremap <silent> <C-\> :LustyJuggler<CR>
" Lusty-Explorer
let g:LustyExplorerDefaultMappings = 0
-"nnoremap <silent> <C-f> :LustyFilesystemExplorer<CR>
nnoremap <silent> <C-b> :LustyFilesystemExplorerFromHere<CR>
-set <M-g>=g
-nnoremap <silent> <M-g> :LustyBufferGrep<CR>
-set <M-b>=b
-nnoremap <silent> <M-b> :LustyBufferExplorer<CR>
"}}}
" Syntastic {{{
let g:syntastic_enable_signs=1

0 comments on commit 7644dbc

Please sign in to comment.