diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-07-16 16:49:47 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-07-17 10:53:32 -0500 |
commit | 87c7832fe87d96e2d5f5ab08a9ed63162c19ea57 (patch) | |
tree | 03204223c13cafac9b3989329df48db87dc8b195 | |
parent | 2cff657b1d35919a8b14656e1f600bf02b787825 (diff) | |
download | conf-87c7832fe87d96e2d5f5ab08a9ed63162c19ea57.tar.gz conf-87c7832fe87d96e2d5f5ab08a9ed63162c19ea57.zip |
Revert "try using CtrlP instead of FuzzyFinder"
This reverts commit f134f7a36ad50247e2b9beab749a7b7a69fe9e0b.
Conflicts:
.gitmodules
vimrc
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .gitmodules | 9 | ||||
m--------- | vim/bundle/ctrlp | 0 | ||||
m--------- | vim/bundle/fuzzyfinder | 0 | ||||
m--------- | vim/bundle/l9 | 0 | ||||
-rw-r--r-- | vim/ftplugin/perl.vim | 2 | ||||
-rw-r--r-- | vimrc | 53 |
7 files changed, 40 insertions, 25 deletions
@@ -3,7 +3,6 @@ bin/nethack/ttrtail procmail/log vim/.netrwhist vim/.VimballRecord -vim/ctrlp/ vim/fuf-data/ vim/undo/ newsbeuter/cache.db diff --git a/.gitmodules b/.gitmodules index d726c46..8bddb91 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,6 +16,12 @@ [submodule "vim/bundle/git"] path = vim/bundle/git url = git://github.com/tpope/vim-git.git +[submodule "vim/bundle/fuzzyfinder"] + path = vim/bundle/fuzzyfinder + url = git://github.com/vim-scripts/FuzzyFinder.git +[submodule "vim/bundle/l9"] + path = vim/bundle/l9 + url = git://github.com/vim-scripts/L9.git [submodule "vim/bundle/perl"] path = vim/bundle/perl url = git://github.com/petdance/vim-perl.git @@ -31,6 +37,3 @@ [submodule "zsh/zsh-syntax-highlighting"] path = zsh/zsh-syntax-highlighting url = git://github.com/zsh-users/zsh-syntax-highlighting -[submodule "vim/bundle/ctrlp"] - path = vim/bundle/ctrlp - url = git://github.com/kien/ctrlp.vim.git diff --git a/vim/bundle/ctrlp b/vim/bundle/ctrlp deleted file mode 160000 -Subproject 4d5b39c0cf005bc48e6d5916e631c0b444ebc41 diff --git a/vim/bundle/fuzzyfinder b/vim/bundle/fuzzyfinder new file mode 160000 +Subproject b9f165970346df55862853dd83c8a4f2b2b7026 diff --git a/vim/bundle/l9 b/vim/bundle/l9 new file mode 160000 +Subproject c822b05ee0886f9a9703227dc85a6d47612c4bf diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim index bd93eee..b556a35 100644 --- a/vim/ftplugin/perl.vim +++ b/vim/ftplugin/perl.vim @@ -20,7 +20,7 @@ vmap <buffer> <silent>K :call Help(1, [':'], '<SID>perldoc')<CR> nmap <buffer> <silent>gf :exe v:count . 'find ' . substitute(expand('<cfile>'), '::', '/', 'g') . '.pm'<CR> " XXX: <cfile> is wrong here, need to do something like i do for Help "vmap <buffer> <silent>gf :exe v:count . 'find ' . substitute(expand('<cfile>'), '::', '/', 'g') . '.pm'<CR> -let g:ctrlp_default_input = 'lib/' +nnoremap <buffer> t :FufCoverageFile lib/<CR> function! s:unpostfix() let postop_pattern = '\<\(if\|unless\|while\|until\|for\)\>' @@ -585,6 +585,39 @@ let g:Foldtext_tex_enable = 1 let g:Foldtext_cpp_enable = 1 let g:Foldtext_perl_enable = 1 " }}} +" FuzzyFinder {{{ +nmap t :FufCoverageFile<CR> +nmap b :FufBuffer<CR> +nmap f :FufLine!<CR> +let g:fuf_modesDisable = [ + \'mrufile', 'mrucmd', 'bookmarkfile', 'bookmarkdir', + \'tag', 'buffertag', 'taggedfile', 'jumplist', 'changelist', + \'quickfix', +\] +let g:fuf_keyPrevPattern = '<Up>' +let g:fuf_keyNextPattern = '<Down>' +let g:fuf_dataDir = '~/.vim/fuf-data' +let g:fuf_enumeratingLimit = 10 +" exclusions {{{ +function! s:set_excludes() + let fuf_coveragefile_exclude_base = '\(' + \. '\(^\|/\)\.\|' + \. '\~$\|' + \. '^\(blib\|nytprof\)\|' + \. '\.\(' + \. 'o\|exe\|dll\|bak\|orig\|swp\|bs\|' + \. 'png\|jpg\|gif\|pdf\|doc\|d\|vsprops\|pbxproj\|sln' + \. '\)$' + \. '\)' + let g:fuf_coveragefile_exclude = fuf_coveragefile_exclude_base + if filereadable("dist.ini") + let g:fuf_coveragefile_exclude .= '\|^' . fnamemodify('.', ':p:h:t') . '-' + endif +endfunction +autocmd BufReadPost * call <SID>set_excludes() +" call <SID>set_excludes() +" }}} +" }}} " zencoding {{{ let g:user_zen_settings = { \ 'indentation' : ' ', @@ -618,24 +651,4 @@ else let g:gundo_disable = 1 endif " }}} -" ctrlp {{{ -let g:ctrlp_map = 't' -let g:ctrlp_match_window_bottom = 0 -let g:ctrlp_match_window_reversed = 0 -let g:ctrlp_cache_dir = $HOME.'/.vim/ctrlp/cache' -let g:ctrlp_dotfiles = 0 -let g:ctrlp_open_new_file = 'r' -let g:ctrlp_open_multiple_files = '1r' -let g:ctrlp_arg_map = 0 -let g:ctrlp_lazy_update = 100 -let g:ctrlp_prompt_mappings = { - \ 'PrtSelectMove("j")': ['<c-j>', '<tab>'], - \ 'PrtSelectMove("k")': ['<c-k>', '<s-tab>'], - \ 'PrtHistory(-1)': ['<c-n>', '<down>'], - \ 'PrtHistory(1)': ['<c-p>', '<up>'], - \ 'PrtExpandDir()': [], - \ 'ToggleFocus()': [], - \ 'MarkToOpen()': ['<c-z>', '<space>'], -\ } -" }}} " }}} |