On 12/12/06, Aaron Griffin <[EMAIL PROTECTED]> wrote:
On 12/11/06, Rodolfo Borges <[EMAIL PROTECTED]> wrote:
> (1)
> When tab-completing on Vim :cmdline, start with the dir of the current
> file being edited, instead of the $PWD (use ./ for that).
:h autochdir
And if you don't like how 'autochdir' works, here's a set of mappings
you may want to consider:
nnoremap <Leader>c :cd %:p:h<CR>:pwd<CR>
nnoremap <Leader>C :lcd %:p:h<CR>:pwd<CR>
nnoremap <Leader>e :e <C-R>=expand('%:p:h')<CR>/<C-Z>
nnoremap <Leader>E :e <C-Z>
nikolai