如果我的关于这个话题的最新帖子没 有提醒到你的话,那我明确地说,我是一个 Vim 的粉丝。所以在你们中的某些人向我扔石头之前,我先向你们展示一系列“鲜为人知的 Vim 命令”。我的意思是,一些你可能以前没有碰到过的命令,但可能对你来说很有用。作为第二免责声明,我不知道哪些命令是你可能知道的,以及哪些是对你来说有 用的。因此这些命令实际上是一些相对少见,但很可能很有用的 Vim 命令。
保存文件并退出
说起来有些惭愧,我也是最近才学到这个命令
:x
和下面的命令是等价的:
:wq
都是保存当前文件并退出。
(译者注:这两个命令实际上并不完全等价,当文件被修改时两个命令时相同的。但如果未被修改,使用 😡 不会更改文件的修改时间,而… Read More
Write in a terminal:
sudo apt-get update && sudo apt-get upgrade
or edit Update Manager settings (try this first if you have already configured Update Manager).
Launch Update Manager and try again.
Running update through a terminal gives option whether to allow or disallow untrusted packages.
WARNING: The following packages cann… Read More
Was installing Java today, this is an easy install thanks to “ppa:webupd8team/java”, but when I tried it was not working, but has worked for me all this while. Little goggling around found me a solution. Here is full conversation if you wanted to have a look http://ubuntuforums.org/showthread.php?t=2048793
Installing JAVA on Ubuntu is si… Read More
我们上传东西的时候,由于文件过大而不能上传,或者不给上传,最明显的就是发邮件了,附件最大5M,有的10M。如果超过了就郁闷了。这个时候,如 果能把压缩的东西,分割开来就比较爽了,windows下面我想大家知道怎么分割,利用winrar,winzip图型化设置压缩出来的块的大小。但是在 linux下面有没有这样的方法了,linux下面有rar命令,有zip命令,windows下面这二种方式可以分割压缩,我想linux下面绝对也是 可以的。下面是我尝试过程的记录:
一,rar分卷压缩和合并解压
rar -h
我们会发现以下参数,要创建多大的卷。
v Create volumes with size… Read More
1. PlayOnLinux
Installing from the Ubuntu repository:
PlayOnLinux is available in the Software Center on Ubuntu versions from 12.04 and up.
However, if you want the latest version, you will need to add the PlayOnLinux repository.
Installing from the PlayOnLinux repository:
The following example is for Ubuntu 12.04 LTS
wget -q "http://deb… Read More