如何在vim中使netrw像Visual Studio中的解决方案浏览器那样工作
发布时间:2020-12-15 19:06:18 所属栏目:安全 来源:网络整理
导读:好的,我会在这里做得更清楚 说我有一个垂直分割窗口中的目录列表,以及我正在编辑的文件。 我可以使用Ctrl w从一个分割到另一个分割 并使用netrw插件以四种方式打开文件列表中的文件。 使用返回键,v,o,t .. 使用返回键,它将在当前(netrw)拆分窗口中打开
好的,我会在这里做得更清楚
说我有一个垂直分割窗口中的目录列表,以及我正在编辑的文件。 我可以使用Ctrl w从一个分割到另一个分割 使用返回键,它将在当前(netrw)拆分窗口中打开。 但是我想要的文件在已经在那里的其他分裂打开,我做所有的编辑…打开一个新的分裂..我希望我的问题是明确的..通过键入一个命令,突出显示的文件将打开编辑分割而不是netrw分割..
答案在doc:h netrw。照常。
你在找P: To edit a file or directory in the previously used (last accessed) window (see :he CTRL-W_p),press a "P". If there's only one window,then the one window will be horizontally split (above/below splitting is controlled by g:netrw_alto,and its initial size is controlled by g:netrw_winsize). If there's more than one window,the previous window will be re-used on the selected file/directory. If the previous window's associated buffer has been modified,and there's only one window with that buffer,then the user will be asked if s/he wishes to save the buffer first (yes,no,or cancel). (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |