comparison vim/vimrc @ 185:0ed6642b8db8

Fixed a bug in `vimrc`.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 20 Jul 2014 19:40:15 -0700
parents 8b37877d309f
children 01304e9b4c19
comparison
equal deleted inserted replaced
184:4504d9bf9861 185:0ed6642b8db8
492 let l:cur_file_dir = expand('%:p:h', 1) 492 let l:cur_file_dir = expand('%:p:h', 1)
493 if l:cur_file_dir =~ '\v^.+://' 493 if l:cur_file_dir =~ '\v^.+://'
494 return 494 return
495 endif 495 endif
496 let l:root = l:cur_file_dir 496 let l:root = l:cur_file_dir
497 let l:markers = g:ctrlp_root_markers[:] 497 let l:markers = []
498 if exists('g:ctrlp_root_markers')
499 let l:markers += g:ctrlp_root_markers
500 endif
498 let l:markers += ['.git', '.hg', '.svn', '.bzr', '_darcs'] 501 let l:markers += ['.git', '.hg', '.svn', '.bzr', '_darcs']
499 for marker in l:markers 502 for marker in l:markers
500 let l:proj_root = s:FindProjectRoot(l:cur_file_dir, marker) 503 let l:proj_root = s:FindProjectRoot(l:cur_file_dir, marker)
501 if l:proj_root != '' 504 if l:proj_root != ''
502 let l:root = l:proj_root 505 let l:root = l:proj_root