Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

took out the NERD and command-t

  • Loading branch information...
commit d1d08670ca81bddaa14ddc48f8909c2ec9b53ac3 1 parent 1c9d9c6
@ericallam authored
View
9 .gitmodules
@@ -13,12 +13,6 @@
[submodule "bundle/surround"]
path = bundle/surround
url = git://github.com/tpope/vim-surround.git
-[submodule "bundle/NERD_tree"]
- path = bundle/NERD_tree
- url = git://github.com/scrooloose/nerdtree.git
-[submodule "bundle/NERD_commenter"]
- path = bundle/NERD_commenter
- url = git://github.com/scrooloose/nerdcommenter.git
[submodule "bundle/ragtag"]
path = bundle/ragtag
url = git://github.com/tpope/vim-ragtag.git
@@ -46,9 +40,6 @@
[submodule "bundle/pastie"]
path = bundle/pastie
url = git://github.com/tpope/vim-pastie.git
-[submodule "bundle/Command-T"]
- path = bundle/Command-T
- url = git://github.com/akitaonrails/Command-T.git
[submodule "bundle/textile"]
path = bundle/textile
url = git://github.com/timcharper/textile.vim.git
1  bundle/Command-T
@@ -1 +0,0 @@
-Subproject commit c0b4fa2800026dfaf0c80a921ca424c98b3ab009
1  bundle/NERD_commenter
@@ -1 +0,0 @@
-Subproject commit 9c8343c9398afc70fd8810a9a5456b95899ae8e7
1  bundle/NERD_tree
@@ -1 +0,0 @@
-Subproject commit a997ab3341596640ac0632e1a9e4192dff4516e0
View
61 plugin/nerdtree_plugin/FindInNERDTree.vim
@@ -1,61 +0,0 @@
-" FindInNERDTree
-"
-" Description: Moves the cursor to the node in the NERDTree that
-" represents the current file. Will open directories
-" to find it.
-" Last Change: 11/9/09
-" Version: 1.0
-" Author: Doug McInnes <doug@dougmcinnes.com>
-" URL: http://github.com/dmcinnes/find_in_nerd_tree/tree
-"
-" A plugin for NERDTree
-" http://www.vim.org/scripts/script.php?script_id=1658
-
-function! FindInNERDTree(...)
- if a:0
- let l:path = a:1
- else
- let l:nerdbuf = 0
- for item in tabpagebuflist()
- if bufname(item) =~ "^NERD_tree_"
- let l:nerdbuf = item
- endif
- endfor
-
- if l:nerdbuf == bufnr('%')
- " already in the tree
- return 0
- endif
-
- let l:path = g:NERDTreePath.New(bufname('%'))
-
- if l:nerdbuf
- silent! exec bufwinnr(l:nerdbuf) . "wincmd w"
- else
- silent! exec "NERDTreeToggle"
- endif
-
- call cursor(g:NERDTreeFileNode.GetRootLineNum(), 1)
- endif
- let l:root = g:NERDTreeDirNode.GetSelected()
-
- if l:root.path.compareTo(l:path) == 0
- return l:root.findNode(l:path)
- elseif l:path.str() !~ '^' . l:root.path.str()
- echo "Not in the current NERD tree!"
- return 0
- else
- let l:node = FindInNERDTree(l:path.getParent())
- if !empty(l:node)
- call l:node.open()
- if a:0
- return l:node.findNode(l:path)
- else
- call NERDTreeRender()
- call g:NERDTreeFileNode.New(l:path).putCursorHere(1, 0)
- endif
- endif
- endif
-
- return {}
-endfunction
View
5 vimrc
@@ -292,8 +292,6 @@ else
let g:CSApprox_loaded = 1
endif
-nmap <silent> <Leader>p :NERDTreeToggle<CR>
-nnoremap <silent> <C-f> :call FindInNERDTree()<CR>
"make <c-l> clear the highlight as well as redraw
nnoremap <C-L> :nohls<CR><C-L>
@@ -302,9 +300,6 @@ inoremap <C-L> <C-O>:nohls<CR>
"map to bufexplorer
nnoremap <leader>b :BufExplorer<cr>
-"map to CommandT TextMate style finder
-nnoremap <leader>t :CommandT<CR>
-
"map Q to something useful
noremap Q gq
Please sign in to comment.
Something went wrong with that request. Please try again.