Vim 当I';我在维姆?

Vim 当I';我在维姆?,vim,command-line,Vim,Command Line,我有一个要去的路径列表 我想检查那里发生了什么,然后使用rsync或其他工具和这些文件夹 有什么切实可行的方法吗 function! GotoPathUnderCursor() execute 'lcd ' . expand('<cfile>') shell endfunction command! GotoPathUnderCursor call GotoPathUnderCursor() 该函数将当前目录更改为光标下的路径(),并在那里执行shell。为了使事情变

我有一个要去的路径列表

我想检查那里发生了什么,然后使用rsync或其他工具和这些文件夹

有什么切实可行的方法吗

function! GotoPathUnderCursor()
   execute 'lcd ' . expand('<cfile>')
   shell
endfunction

command! GotoPathUnderCursor call GotoPathUnderCursor()
该函数将当前目录更改为光标下的路径(
),并在那里执行shell。为了使事情变得更简单,请定义一个调用函数的映射:

:nnoremap _some_key_ :call GotoPathUnderCursor()
该函数将当前目录更改为光标下的路径(
),并在那里执行shell。为了使事情变得更简单,请定义一个调用函数的映射:

:nnoremap _some_key_ :call GotoPathUnderCursor()