我使用此命令传输文件
scp <localfile> user@host:<destination>
Run Code Online (Sandbox Code Playgroud)
上面的命令仅在我没有通过 ssh 连接到服务器时才有效。
当我已经进入 ssh 时,如何将本地文件传输到主机?
我在使用 ssh ssh user@hostname
我将我的 ubuntu 升级到 11.04,我的 gvim 一团糟。我基本上是从头开始,需要一些帮助。 根据推荐,我开始将与 vim(插件和 vimrc)相关的所有内容移到/usr/share/vim/vimfiles
after
autoload
colors
doc
ftpplugin
gvimrc (file)
nerdtree
plugin
snippets
syntax
vimrc (file)
vimrc.dpkg-old (file)
vimrc.tiny (file)
Run Code Online (Sandbox Code Playgroud)
我在/home/laptop/.vimrc这个文件中也有一个 .vimrc 文件实际上包含我添加的设置/映射
:set runtimepath 获取:
runtimepath=~/.vim, /usr/share/vim/vimfiles/vimfiles,
/usr/share/vim/vimfiles, /usr/share/vim/vimfiles/vimfiles/after,
~/.vim/after
Run Code Online (Sandbox Code Playgroud)
我没有像上面提到的那个文件夹 /usr/share/vim/vimfiles/vimfiles
问题:
为什么有两个vimrc?我应该交换/usr/share/vim/vimfiles/vimrc与的内容/home/laptop/.vimrc吗?
错误
Error detected while processing /home/laptop/.vimrc
line 6
E484: Can't open file /usr/share/vim/syntax/syntax.vim
Run Code Online (Sandbox Code Playgroud)
第 6 行是:
syntax on
Run Code Online (Sandbox Code Playgroud)
我/usr/share/vim/vimfiles/syntax最初只包含snippet.vim,但是,该/usr/share/vim/vim73/syntax文件夹包含许多其他文件。喜欢gdb.vim, jsp.vim, groovy.vim, libao.vim...etc (more than …