tk's blog

XP 下 GVim 工作目录问题

tk posted @ Jan 09, 2013 05:04:41 PM in 业余 with tags vim , 3321 阅读


点击桌面上快捷方式打开GVim,工作目录是桌面,用 :pwd 命令检测。

把快捷方式加到桌面任务栏的快速启动栏中,“一般”情况下,快速启动的GVim工作目录是 ~ 下,也就是用户目录下。

但是如果你打开过 Windows字体目录(C:\WINDOWS\Fonts),之后再用快速启动打开GVim,工作目录会变成 C:\WINDOWS\Fonts ,多少次都是如此。重启后会恢复正常。


我的猜测:在快捷方式属性起始位置为空的情况下,在未打开 Windows字体目录前,Windows 会将快速启动栏中程序默认工作目录设置为用户目录,但是在打开 Windows字体目录后,快速启动栏中程序默认的工作目录就变成了 Windows字体目录。不知道算不算一个 bug。


  • 无匹配
亚弥 说:
Jan 10, 2013 06:23:36 AM




tisyang 说:
Jan 10, 2013 10:42:58 AM

@亚弥: 从快速启动栏中启动的程序继承的工作目录(如果起始位置留空)只是特定的几个目录,而非 explorer 打开的目录,如果打开过 C:\Windows\Fonts,而且这就像一种感染,持续性的。我测试过, win7 快速启动栏也有这种情况。

tisyang 说:
Jan 10, 2013 10:45:52 AM

@亚弥: 打开过 C:\Windows\Fonts ,之后关闭,再打开其他目录并没有效果,默认打开的gvim 工作目录还是字体目录

CBSE Class 6 English 说:
Sep 25, 2022 02:34:51 PM

To gain a thorough understanding of the topic, every student in sixth grade must study their first language, English. Self-practice and frequent review will have a significant influence on students' test performance at both the board and school levels. CBSE Class 6 English Question Paper For Class 6th Standard Term 1 & Term 2 and Regular Exams, the CBSE Board has developed a Sample Paper to help students understand the new or updated test structure.

SEO 说:
Jun 12, 2023 03:24:49 PM

I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. 토토사이트

sophia 说:
Jun 19, 2023 01:44:09 PM

I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up. 인천출장마사지

sophia 说:
Aug 21, 2023 02:20:36 AM

I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks. BLACKHORN 209 POWDER

sophia 说:
Aug 29, 2023 04:55:30 PM

I admit, I have not been on this web page in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. I thank you to help making people more aware of possible issues. เว็บแทงบอลดีที่สุดUFABET

Dave 说:
Sep 07, 2023 02:06:42 AM

I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. bubbles game

Dave 说:
Sep 17, 2023 01:05:41 AM

I wish more authors of this type of content would take the time you did to research and write so well. I am very impressed with your vision and insight. Double carport nz

seo akc 说:
Oct 07, 2023 06:38:12 PM

I invite you to the page where you can read with interesting information on similar topics. <a href="">Buy CBD Gummy Bears</a>

Dave 说:
Oct 09, 2023 01:43:38 PM

thanks this is good blog. LIFT DETOX CAPS

Dave 说:
Oct 26, 2023 01:00:18 AM

Attractive, post. I just stumbled upon your weblog and wanted to say that I have liked browsing your blog posts. After all, I will surely subscribe to your feed, and I hope you will write again soon! Private key recovery

wallpaper singapore 说:
Nov 02, 2023 05:26:34 PM

A very excellent blog post. I am thankful for your blog post. I have found a lot of approaches after visiting your post. Sajta de Pollo

wallpaper singapore 说:
Nov 03, 2023 02:23:59 PM

This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. wallpaper singapore

Dave 说:
Nov 14, 2023 01:28:18 PM

The pencils are stars, and the packaging is the grand stage – enhancing the overall experience. pencil packing work from home

Dave 说:
Nov 17, 2023 12:00:25 AM

Hi there! Nice post! Please tell us when I will see a follow up! temazepam te koop

Dave 说:
Nov 25, 2023 02:22:48 PM

Thank you again for all the knowledge you distribute,Good post. I was very interested in the article, it's quite inspiring I should admit. I like visiting you site since I always come across interesting articles like this one.Great Job, I greatly appreciate that.Do Keep sharing! Regards, crimsafe logan

登录 *

loading captcha image...
or Ctrl+Enter