如何将windows版的vim界面语言(默认为中文)设置成英文(转)

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/WangPegasus/article/details/9131737

转自http://blog.csdn.net/njnu_mjn/article/details/7935103

使用安装包安装windows版本的vim(下载地址:http://www.vim.org/download.php),vim会自动根据windows的语言设置vim的界面语言。如何将其改为英文呢?

在vim的安装根目录下(我的路径为D:\Program Files\Vim)找到名为“_vimrc”的文件,在第一行:

 

[plain] view plaincopy
  1. set nocompatible  

与第二行:

 

[plain] view plaincopy
  1. source $VIMRUNTIME/vimrc_example.vim  

 

之间添加如下代码("后面的是注释):

 

[plain] view plaincopy
  1. let $LANG = 'en'  "set message language  
  2. set langmenu=en   "set menu's language of gvim. no spaces beside '='  

 

这样,vim及gvim的界面均为英文的了。

 

关于语言的设置,可以参考vim的命令":help lan"

注:

本文中的vim版本为vim7.3,windows版本:win7 professional

References:

http://stackoverflow.com/questions/126853/how-do-i-set-the-ui-language-in-vim

或者直接点上面的编辑然后启动设定加入以下代码:

" set the menu & the message to English
set langmenu=en_US
let $LANG= 'en_US'
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim

展开阅读全文

文本编辑器默认为黄色 求解

03-27

新手学习c#,为什么我的文本编辑器默认会是黄色呢?要怎么解决让它刚开始运行的时候不选定上面的radiobutton呢?rn[img=http://img.my.csdn.net/uploads/201303/27/1364362742_2598.png][/img]rn[img=http://img.my.csdn.net/uploads/201303/27/1364363135_4070.png][/img]rn还有就是这个复制剪切感觉不怎么好,鼠标选择文字后必须点击radiobutton或者checkbox 复制剪切才能点击,怎么解决呢rnnamespace 文本编辑器rnrn public partial class Form1 : Formrn rn public Form1()rn rn InitializeComponent();rn rnrn private void label1_Click(object sender, EventArgs e)rn rnrn rnrn private void button5_Click(object sender, EventArgs e)rn rn Application.Exit();rn rnrn private void button4_Click(object sender, EventArgs e)rn rn richTextBox1.Text = "";rn rnrn private void Form1_Load(object sender, EventArgs e)rn rn richTextBox1.Text = "这里是超级编辑器\n\r欢迎使用本程序";rn richTextBox1.Font = new Font("宋体", 14, FontStyle.Bold);rn button1.Enabled = false;rn button2.Enabled = false;rn button3.Enabled = false;rn numericUpDown1.Value = 14;rnrn rnrn private void checkBox1_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(richTextBox1.Font.Name, richTextBox1.Font.Size, FontStyle.Bold);rn rnrn private void checkBox3_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(richTextBox1.Font.Name, richTextBox1.Font.Size, FontStyle.Italic);rn rnrn private void checkBox2_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(richTextBox1.Font.Name, richTextBox1.Font.Size, FontStyle.Underline);rn rnrn private void checkBox4_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(richTextBox1.Font.Name, richTextBox1.Font.Size, FontStyle.Strikeout);rn rnrn private void radioButton1_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(radioButton1.Text, richTextBox1.Font.Size, richTextBox1.Font.Style);rn rnrn private void radioButton2_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(radioButton2.Text, richTextBox1.Font.Size, richTextBox1.Font.Style);rn rnrn private void radioButton3_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(radioButton3.Text, richTextBox1.Font.Size, richTextBox1.Font.Style);rn rnrn private void radioButton4_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(radioButton4.Text, richTextBox1.Font.Size, richTextBox1.Font.Style);rn rnrn private void radioButton5_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.ForeColor = Color.Red;rn rnrn private void radioButton7_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.ForeColor = Color.Green;rn rnrn private void radioButton6_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.ForeColor = Color.Blue;rn rnrn private void radioButton8_CheckedChanged(object sender, EventArgs e)rn rn richTextBox1.ForeColor = Color.Yellow;rn rnrn private void numericUpDown1_ValueChanged(object sender, EventArgs e)rn rn richTextBox1.Font = new Font(richTextBox1.Font.Name, (int)numericUpDown1.Value, richTextBox1.Font.Style);rn rn private void richTextBox1_TextChanged(object sender, EventArgs e)rn rn if (richTextBox1.SelectedText!= "")rn rn button1.Enabled = true;rn button2.Enabled = true;rn rn rnrnrn private void button2_Click(object sender, EventArgs e)rn rn richTextBox1.Cut();rn button2.Enabled = false;rn button1.Enabled = false;rn button3.Enabled = true;rn rnrn rn private void button1_Click(object sender, EventArgs e)rn rn richTextBox1.Copy();rn button2.Enabled = false;rn button1.Enabled = false;rn button3.Enabled = true;rn rnrn private void button3_Click(object sender, EventArgs e)rn rn richTextBox1.Paste();rn button3.Enabled = false;rn rn rn 论坛

没有更多推荐了,返回首页