VIM TIP3


VimTip 3: use vim to quickly compile java files
#快速编译java

For a number of years I used vim on an SGI box.
#老外的电脑品种那叫个多啊,这里的SGI box也是其中的一种
When I left my job at SGI I went to a company that developed on PCs.
#PC基本上是大白菜级别的玩意
For 2 years I used IDEs. I was unhappy. I was frustrated. #失落,挫败,怎么还没记住这词啊?
I couldn't figure out why. (Beyond my machine crashing twice a day.)
#大白菜老是要坏,整的特郁闷
Finally I upgraded to windows 2000 (kind of stable!) and started using vim as an IDE. All was good.
#还好,用了稳定的win2000。译者注:m$里算是稳定的win2000,艾,帮他加个
is how you use vim to compile your java:
#配置开发java的环境
1.While I'm sure this works with javac, javac is slow slow slow. So download the Jikes complier first. (Jikes is from ibm, search on google for jikes and you will find it..available on most platforms.)
#javac太烂了,用ibm的jikes吧~
2.Add the following to your vimrc:
set makeprg=jikes -nowarn -Xstdout +E
set errorformat=%f:%l:%c:%\d:%\d:%*\s%m
#加上边两行进vimrc
3. When you are editing a java file type :make and it will compile the current file and jump you to the first error in the file (if any). Read ":help quickfix" for how to move between errors.
#当你编辑一个java文件时,:make 会编译当前文件,并且跳转到第一个错误的地方。想知道怎#么在错误中跳来跳去嘛?看:help quicktext
To setup your classpath environment either launch gvim from a shell that has your classpath/path setup or use the "let" command to configure it in your vimrc.
#设定classpath环境……

其实java俺不懂,有空汇报一下我的python在vim中的设定


VIM TIP4

VimTip 4: Any word completion
#自动拼写补齐 ;谁能想想中文的输入补齐?×_×

Either when programming or writing, I tend to have some identifiers or words that I use all the time.
#在写字或编程的时候,总想弄点我总用的标识符来省事;懒惰是灵感的源泉!

By sheer accident, I noticed the 'ctrl-n' command, that will attempt to complete the word under the cursor.
#撞大运后发现 ctrl-n 是在自动补齐
Hit it once, and it will try to complete it with the first match in the current file.
#一次一个
If there is no match, it will (at least in the case of C code) search through all files included from the current one.
#若没有的话,在C 语言的环境下,它将会补齐库的名字
Repeated invocations#符咒。哇,魔法耶 will cycle through all found matches.
#重复ctrl-n 会循环来补齐

VIM TIP2

" Edit another file in the same directory as the current file " uses expression to extract path from current file's path " (thanks Douglas Potts) if has("unix") map ,e :e . "/" />else map ,e :e . "\" />endif #在配置文件里加这么一段

Then when you type ,e in normal mode you can use tab to complete to the file. You can also expand this to allow for spitting, etc. Very very nice. #当你敲“,e”的时候,就可以用Tab来选你想编辑的文章咯

p.s. 为什么不用类似filetree或者winmanager这样的plugin呢?方便的很啊!另外vim官方网站本条tip下的评论还是有点意思的~感兴趣自己刨哈!

VIM TIP1

When a discussion started about learning vim on the vim list Juergen Salk mentioned the "" key as something that he wished he had know earlier. When I read the mail I had to go help on what the heck the "" did. I also wish I had known earlier... “菊花”键是很有用的,老外说话好费劲啊~中国四个字足以:相见恨晚 Using the "*" key while in normal mode searches for the word under the cursor. “菊花”是查找光标下相同单词用的~ If that doesn't save you a lot of typing, I don't know what will. 如果这样都不能减少你的录入的话,我真不知道什么会了~哈哈,似乎用虚拟语态的话更有感情一些哦

每日一踢 VIM TIP0

If you are reading this in a help window, then you have probably already installed the "Tip of the Day" script, totd.vim . Congratulations! You can now replace this skeleton#学单词啊学单词:骨架,框架 file with a real vimtips.txt file downloaded from #废话半天的意思就是 鼓励一下! http://vim.sourceforge.net/tip_download.php

If you have not yet installed the totd.vim plugin #可能嘛? check that it is in the plugin/ directory. (This file should be in plugin/vimtips/ .) #继续做广告 Then either wait until the next time you start up vim, or source the plugin and get a tip: :runtime plugin/totd.vim :TipOfTheDay (The usual abbreviation rules apply: you can probably just use :Tip .) This file should then show up in a help window #找踢有很多中办法,:Tip,:TipOfTheDay,:runtime plugin/totd.vim

他们是这么讲笑话的~

  1. 石油电信电力等行业中几乎没有垄断,它是国家的,它是人民的。所以,它所获得的盈利都是为人民谋利益的。”                                   --12月22日国资委主任李荣融在国新办记者会上表示
  2. “中国教育改革是成功的!一个承担着教育规模为世界之最的教育,实现了“两个跨越”:使85%以上的人接受了义务教育,使20%的人接受高等 教育”                                                                                                                                                                     &nbsp ;                                     --12月22日教育部新闻发言人王旭明与网民交流
  3. “药品不能当馒头卖!药价不贵,不同意降价”                                                                                                                                                           --东盛制药集团总裁陶朝辉在“中国医药风云榜”颁奖典礼上抛出“馒头论” 
  4. “房产就该暴利!将暴利进行到底”                                                                                                                                                                     &nbsp ;         --11月中旬,北京华远地产董事长任志强在“2005首届中国地产品牌价值评估与品牌评选活动”论坛上发言 
  5. “矿难与矿工素质不高有关”                                                                                                                                                                     &nbsp ;                 --11月30日黑龙江七台河矿难矿方领导接受采访表示 
  6. “出现‘警匪勾结’这种情况的重要原因是警察待遇过低”                                                                                                                                   --成都火车站派出所副所长付小华接受采访时表示 
  7. “起征点太高就剥夺了低收入者作为纳税人的荣誉”                                                                                                                                               --全国人大农业与农村委员会委员任正隆 
  8. “8亿多农民和下岗工人是中国巨大的财富,没有他们的辛苦哪有少数人的享乐,他们的存在和维持现在的状态是很有必要的。”        -- 经济学家厉以宁如是说 
  9. “反恐新方法---地铁家属免票制 ,碰到任何紧急情况下,能及时帮助疏散与救援,这是一个安全上的举措,并不是专门把免费作为福利.”                                                                                                                                                                     &nbsp ;                                                            -- 卢光霖广州市地下铁道总公司总经理。 
  10. "爆炸产生水和二氧化碳,不会污染水源 "                                                                                                                                                                    -- 吉林石化的人所说
冷笑ing

老罗语录

101.每天都在掏刀子杀人和忍住不杀之间徘徊,总有一天我要失控的!