简体   繁体   English

打开现有文件时,gVim不显示任何内容

[英]gVim display nothing when I open an existing file

When I type vim hello.py in the command prompt to open my file the command prompt the gVim editor opens up however it does not display the one line of text contained in the hello.py file. 当我在命令提示符下键入vim hello.py打开文件时,命令提示符将打开gVim编辑器,但是它不显示hello.py文件中包含的一行文本。 Why is this? 为什么是这样? I just want to edit the file. 我只想编辑文件。

Are you sure you are in the same directory as hello.py? 您确定与hello.py位于同一目录吗?

Otherwise, gVim will open a new buffer called "hello.py", which on save will be written to whatever directory you are currently in. 否则,gVim将打开一个名为“ hello.py”的新缓冲区,保存时该缓冲区将被写入当前所在目录中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我打开一个文件以从中获取字符串并将它们转换为 int 时,它不会给出任何结果> - When i open a file to get strings from it and transform them in int's it will give out nothing> 什么也没发生时显示fps为0 - display fps is 0 when nothing is happening 我只是想打开一个 window 什么都不做,只是一个简单的显示,但它立即通过 python 代码关闭 - I just wanted to open a window doing nothing just a simple display but it immediately closes through python code 如何在 gvim 的新命令行 window 中运行 python 文件 - How do I run python file in new commandline window in gvim 当我执行 Python dot py 文件时,它什么也没显示 - When i Execute Python dot py file Its shows nothing 当我覆盖`SimpleHTTPRequestHandler`中的`log_message()`时,没有任何内容写入文件 - Nothing is written to file when I override `log_message()` in `SimpleHTTPRequestHandler` 如何打开文件并将项目附加到Python中的现有列表 - How can I open a file and append an item to an existing list in Python 当我尝试加载python文件时没有任何显示 - Nothing shows up when I try to load a python file 我想在我的提示中使用 python 打开现有的 dwg 或 dxf 文件 - I want to open existing dwg or dxf file with python in my prompt Python:在MacVim或gvim中打开标签 - Python: open tab in MacVim or gvim
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM