Mercurial > dotfiles
changeset 381:af7646eceddc
Add projectroot plugin for Vim.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 03 Apr 2017 13:07:50 -0700 |
parents | 52ea57ca22e1 |
children | c3a863440b1a |
files | .hgsub .hgsubstate vim/vimrc |
diffstat | 3 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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
--- 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 <SID>AutoProjectRootCD() + " }}} " Local override {{{