Mercurial > dotfiles
comparison vim/vimrc @ 381:af7646eceddc
Add projectroot plugin for Vim.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 03 Apr 2017 13:07:50 -0700 |
parents | 58410650ce36 |
children | b570ad9917c0 |
comparison
equal
deleted
inserted
replaced
380:52ea57ca22e1 | 381:af7646eceddc |
---|---|
668 function! s:FindInNERDTree() abort | 668 function! s:FindInNERDTree() abort |
669 NERDTreeFind | 669 NERDTreeFind |
670 normal zz | 670 normal zz |
671 endfunction | 671 endfunction |
672 | 672 |
673 function! s:AutoProjectRootCD() abort | |
674 if &buftype == '' | |
675 ProjectRootCD | |
676 endif | |
677 endfunction | |
678 autocmd BufEnter * call <SID>AutoProjectRootCD() | |
679 | |
673 " }}} | 680 " }}} |
674 | 681 |
675 " Local override {{{ | 682 " Local override {{{ |
676 | 683 |
677 let s:local_vimrc = s:vim_home.'/vimrc-local' | 684 let s:local_vimrc = s:vim_home.'/vimrc-local' |