Remove CommandT and rebind ,t to CtrlP plugin
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -193,9 +193,6 @@
|
|||||||
[submodule "vim/bundle/claco-jasmine"]
|
[submodule "vim/bundle/claco-jasmine"]
|
||||||
path = vim/bundle/claco-jasmine
|
path = vim/bundle/claco-jasmine
|
||||||
url = https://github.com/claco/jasmine.vim
|
url = https://github.com/claco/jasmine.vim
|
||||||
[submodule "vim/bundle/skwp-Command-T"]
|
|
||||||
path = vim/bundle/skwp-Command-T
|
|
||||||
url = https://github.com/skwp/Command-T
|
|
||||||
[submodule "vim/bundle/kana-vim-textobj-function"]
|
[submodule "vim/bundle/kana-vim-textobj-function"]
|
||||||
path = vim/bundle/kana-vim-textobj-function
|
path = vim/bundle/kana-vim-textobj-function
|
||||||
url = https://github.com/kana/vim-textobj-function
|
url = https://github.com/kana/vim-textobj-function
|
||||||
|
|||||||
@@ -75,7 +75,6 @@ If you pull new changes, be sure to run this to init all the submodules:
|
|||||||
yadr init-plugins
|
yadr init-plugins
|
||||||
|
|
||||||
After you install yadr shell aliases, you can use the *yip* alias to do the same.
|
After you install yadr shell aliases, you can use the *yip* alias to do the same.
|
||||||
Please note that init-plugins will automatically compile the CommandT plugin for you.
|
|
||||||
|
|
||||||
Setup for ZSH
|
Setup for ZSH
|
||||||
---
|
---
|
||||||
@@ -203,8 +202,9 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
|
|||||||
|
|
||||||
**File Navigation**
|
**File Navigation**
|
||||||
|
|
||||||
* ,t - Command-T fuzzy file selector
|
* ,t - CtrlP fuzzy file selector
|
||||||
* ,b - Command-T buffer selector
|
* ,b - CtrlP buffer selector
|
||||||
|
* Cmd-Shift-P - Clear CtrlP cache
|
||||||
* ,jm jump (command-t) app/models
|
* ,jm jump (command-t) app/models
|
||||||
* ,jc app/controllers
|
* ,jc app/controllers
|
||||||
* ,jv app/views
|
* ,jv app/views
|
||||||
@@ -277,7 +277,7 @@ Included vim plugins
|
|||||||
* EasyMotion - hit ,,w (forward) or ,,b (back) and watch the magic happen. just type the letters and jump directly to your target - in the provided vimrc the keys are optimized for home and upper row, no pinkies
|
* EasyMotion - hit ,,w (forward) or ,,b (back) and watch the magic happen. just type the letters and jump directly to your target - in the provided vimrc the keys are optimized for home and upper row, no pinkies
|
||||||
* LustyJuggler/Explorer - hit B, type buf name to match a buffer, or type S and use the home row keys to select a buffer
|
* 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)
|
* TagList - hit ,T to see a list of methods in a class (uses ctags)
|
||||||
* CommandT - ,t to find a file
|
* CtrlP - Ctrl-p or ,t to find a file
|
||||||
* VimBookmarks - toggle an anonymous bookmark ,bb and go thru them ,bn ,bp and clear them ,bc
|
* VimBookmarks - toggle an anonymous bookmark ,bb and go thru them ,bn ,bp and clear them ,bc
|
||||||
* TabMan - hit ,mt to see all tabs and buffers in a tree. Easy to navigate and close.
|
* TabMan - hit ,mt to see all tabs and buffers in a tree. Easy to navigate and close.
|
||||||
|
|
||||||
|
|||||||
Submodule vim/bundle/skwp-Command-T deleted from f4bbb87444
@@ -1,24 +0,0 @@
|
|||||||
let g:CommandTMaxHeight = 5
|
|
||||||
let g:CommandTMatchWindowReverse = 1
|
|
||||||
|
|
||||||
" Command-T
|
|
||||||
" Mapped to ,t
|
|
||||||
nmap ,t :CommandT<CR>
|
|
||||||
nmap ,T :CommandTBuffer<CR>
|
|
||||||
|
|
||||||
" Idea from : http://www.charlietanksley.net/blog/blog/2011/10/18/vim-navigation-with-lustyexplorer-and-lustyjuggler/
|
|
||||||
" Open CommandT starting from a particular path, making it much
|
|
||||||
" more likely to find the correct thing first. mnemonic 'jump to [something]'
|
|
||||||
map ,jm :CommandT app/models<CR>
|
|
||||||
map ,jc :CommandT app/controllers<CR>
|
|
||||||
map ,jv :CommandT app/views<CR>
|
|
||||||
map ,jh :CommandT app/helpers<CR>
|
|
||||||
map ,jl :CommandT lib<CR>
|
|
||||||
map ,jp :CommandT public<CR>
|
|
||||||
map ,js :CommandT spec<CR>
|
|
||||||
map ,jf :CommandT fast_spec<CR>
|
|
||||||
map ,jt :CommandT test<CR>
|
|
||||||
map ,jd :CommandT db<CR>
|
|
||||||
map ,jC :CommandT config<CR>
|
|
||||||
map ,jV :CommandT vendor<CR>
|
|
||||||
map ,jF :CommandT factories<CR>
|
|
||||||
@@ -2,4 +2,30 @@
|
|||||||
" controller
|
" controller
|
||||||
let g:ctrlp_by_filename = 1
|
let g:ctrlp_by_filename = 1
|
||||||
|
|
||||||
|
" We don't want to use Ctrl-p as the mapping because
|
||||||
|
" it interferes with YankRing (paste, then hit ctrl-p)
|
||||||
|
let g:ctrlp_map = ',t'
|
||||||
|
|
||||||
|
" Additional mapping for buffer search
|
||||||
|
nnoremap ,b :CtrlPBuffer<cr>
|
||||||
|
nnoremap <C-b> :CtrlPBuffer<cr>
|
||||||
|
|
||||||
|
" Cmd-Shift-P to clear the cache
|
||||||
|
nnoremap <silent> <D-P> :ClearCtrlPCache<cr>
|
||||||
|
|
||||||
|
" Idea from : http://www.charlietanksley.net/blog/blog/2011/10/18/vim-navigation-with-lustyexplorer-and-lustyjuggler/
|
||||||
|
" Open CtrlP starting from a particular path, making it much
|
||||||
|
" more likely to find the correct thing first. mnemonic 'jump to [something]'
|
||||||
|
map ,jm :CtrlP app/models<CR>
|
||||||
|
map ,jc :CtrlP app/controllers<CR>
|
||||||
|
map ,jv :CtrlP app/views<CR>
|
||||||
|
map ,jh :CtrlP app/helpers<CR>
|
||||||
|
map ,jl :CtrlP lib<CR>
|
||||||
|
map ,jp :CtrlP public<CR>
|
||||||
|
map ,js :CtrlP spec<CR>
|
||||||
|
map ,jf :CtrlP fast_spec<CR>
|
||||||
|
map ,jt :CtrlP test<CR>
|
||||||
|
map ,jd :CtrlP db<CR>
|
||||||
|
map ,jC :CtrlP config<CR>
|
||||||
|
map ,jV :CtrlP vendor<CR>
|
||||||
|
map ,jF :CtrlP factories<CR>
|
||||||
|
|||||||
@@ -6,8 +6,7 @@ hi! link rubyDefine rubyControl
|
|||||||
" This is a better cursor
|
" This is a better cursor
|
||||||
hi! link Cursor VisualNOS
|
hi! link Cursor VisualNOS
|
||||||
|
|
||||||
" This is a bit nicer visual selection, and
|
" This is a bit nicer visual selection
|
||||||
" as a side bonus it makes CommandT look better
|
|
||||||
hi! link Visual DiffChange
|
hi! link Visual DiffChange
|
||||||
|
|
||||||
" Search is way too distracting in original Solarized
|
" Search is way too distracting in original Solarized
|
||||||
@@ -35,3 +34,6 @@ hi! link rubySymbol rubyBlockParameter
|
|||||||
hi! link Delimiter Identifier
|
hi! link Delimiter Identifier
|
||||||
hi! link rDollar Identifier
|
hi! link rDollar Identifier
|
||||||
|
|
||||||
|
" For vimscript, don' tlike red..
|
||||||
|
hi link vimMapModKey Operator
|
||||||
|
hi link vimNotation Label
|
||||||
|
|||||||
3
vimrc
3
vimrc
@@ -80,7 +80,8 @@ set nofoldenable "dont fold by default
|
|||||||
set wildmode=list:longest
|
set wildmode=list:longest
|
||||||
set wildmenu "enable ctrl-n and ctrl-p to scroll thru matches
|
set wildmenu "enable ctrl-n and ctrl-p to scroll thru matches
|
||||||
set wildignore=*.o,*.obj,*~ "stuff to ignore when tab completing
|
set wildignore=*.o,*.obj,*~ "stuff to ignore when tab completing
|
||||||
set wildignore+=*/.git/*,*/.hg/*,*/.svn/* " for Linux/MacOSX
|
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*
|
||||||
|
set wildignore+=*vim/backups*
|
||||||
|
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user