# HG changeset patch # User Ludovic Chabant # Date 1491250070 25200 # Node ID af7646eceddced7cf3a76320e0e5126eb04ae0de # Parent 52ea57ca22e1f3d89a2df092e23e6ab5fef2ac9b Add projectroot plugin for Vim. diff -r 52ea57ca22e1 -r af7646eceddc .hgsub --- a/.hgsub Sat Feb 25 21:31:56 2017 -0800 +++ b/.hgsub Mon Apr 03 13:07:50 2017 -0700 @@ -19,6 +19,7 @@ vim/bundle/nerdtree = [git]https://github.com/scrooloose/nerdtree.git vim/bundle/pathogen = [git]https://github.com/tpope/vim-pathogen.git vim/bundle/powerline = [git]https://github.com/Lokaltog/vim-powerline.git +vim/bundle/projectroot = [git]https://github.com/dbakker/vim-projectroot.git vim/bundle/python-pep8-indent = [git]https://github.com/hynek/vim-python-pep8-indent.git vim/bundle/pythonmode = [git]https://github.com/klen/python-mode.git vim/bundle/ragtag = [git]https://github.com/tpope/vim-ragtag.git diff -r 52ea57ca22e1 -r af7646eceddc .hgsubstate --- a/.hgsubstate Sat Feb 25 21:31:56 2017 -0800 +++ b/.hgsubstate Mon Apr 03 13:07:50 2017 -0700 @@ -20,7 +20,7 @@ af9786ee5780bf0cbafbd7b341c2b5234d18c1c0 vim/bundle/easymotion f44845e4408aae03e018e98afb7fbf0c2ee87dd5 vim/bundle/fugitive 9dd2d48255fcc3ac5122f6028dc238fabcccd861 vim/bundle/gundo -02a94ff0db5771ac410577a7a6a6a761d6d23a60 vim/bundle/gutentags +0b4ccd0deceb58e1ae108ee5f6e181a5f740d04f vim/bundle/gutentags 1f2e47c78c2faf90ff419c2f4e1241094844678c vim/bundle/haml adebc6ceae0aed69bb1cde7fb89058fb1546129e vim/bundle/interestingwords 8a8f0ed97c1751d304cf5b7241f2fe27b0e61f81 vim/bundle/jinja @@ -33,6 +33,7 @@ 020ab25c38f62627c1dab6c7a851176c6ad309f9 vim/bundle/pathogen af8514b79c046a6bb447021b81351edb050ac69f vim/bundle/piecrust 114f8e5c204f1cac9b2443065910fa182de39fb8 vim/bundle/powerline +432ce307b11ce9913aaf2f7594c57ca262ed63a5 vim/bundle/projectroot 8b215aac0192f74b5aeb6ae5a2e1766db2ebecb8 vim/bundle/python-pep8-indent 2f850dcf506af85be22365aebda6ff737e5f004e vim/bundle/pythonmode 9378cddc1c264f777af59f04e5b8d64eca8ee5fd vim/bundle/ragtag diff -r 52ea57ca22e1 -r af7646eceddc vim/vimrc --- a/vim/vimrc Sat Feb 25 21:31:56 2017 -0800 +++ b/vim/vimrc Mon Apr 03 13:07:50 2017 -0700 @@ -670,6 +670,13 @@ normal zz endfunction +function! s:AutoProjectRootCD() abort + if &buftype == '' + ProjectRootCD + endif +endfunction +autocmd BufEnter * call AutoProjectRootCD() + " }}} " Local override {{{