$ grep -H -n if /etc/profile>/tmp/grep_output.txt $ cat /tmp/grep_output.txt /etc/profile:4:if [ -d /etc/profile.d ]; then /etc/profile:6: if [ -r $i ]; then /etc/profile:13:if [ "$PS1" ]; then /etc/profile:14: if [ "$BASH" ]; then /etc/profile:16: if [ -f /etc/bash.bashrc ]; then /etc/profile:20: if [ "`id -u`" -eq 0 ]; then $ gvim /tmp/grep_output.txt
Now, I want to double click a line in 'grep_output.txt' so that gvim will automatically bring me the corresponding file and line. I'm wondering how to do so. P.S. Similar things can be done when I use ':make', in which cases gvim can bring me to the error line. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---