> Hold your hats now, but Emacs users can do this. From Emacs they do
> the equivalent of running :shell, then navigate to another directory
> which becomes Emacs working directory. Now they can do the equivalent
> of :e <some file in that directory>.
>
> Thanks!
> -Per Thulin

hi Per,

i had the same need as you, and indeed emacs users with shell mode and
dired have everything! but (because i don't like the editing-part of
emacs) i used the
vtreeexplorer plugin plus autochdir... so now i fire up vtreeexplore
and use 't' to open files in new tabs or 'o' to open them in the same
window....

Another mechanism i use to navigate file hierarchies is ctags and
lookupfile plugin....

Yet another mechanism: for the times i needed to edit files that
contained certain words, i had the following script:

echo "Searching folder $PWD:"
#find $PWD -type f \( -path '*/lib/*' \) \
files_temp=$( find $PWD -type f \( \! -path '*/.svn/*' -a \! -path
'*/Logs/*' \) \
-exec grep --color=always --ignore-case --files-with-matches "$@" {}  + )

echo ""

oldPS3=$PS3
PS3='edit file: '

files="$files_temp Cancel"

select selection in $files; do
if [ "$selection" == "Cancel" ]; then
        echo "user canceled"
        break
elif [ $selection ]; then
        gvim "$selection"
        break
else
        echo 'invalid selection.'
fi
done

PS3=$oldPS3

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to