小编Viv*_*han的帖子

在 Ubuntu 中获取字符键代码映射

我正在尝试在 Ubuntu 中使用一些键盘布局。现在有一个名为showkey的程序,它可以让我看到在终端中按下的任何键的键码。是否有任何命令可以获取特定键码的相应字符。例如,当我输入

sudo showkey
//I get the response in the form
keycode num press/release
Run Code Online (Sandbox Code Playgroud)

我只是想知道我是否有键码,我可以取回字符映射,以便我知道我实际按下了哪个字符?

xorg keyboard xserver

30
推荐指数
2
解决办法
4万
查看次数

如何在 VIM 中查看 UTF-8 Unicode 字符

我在 Ubuntu 14.04 64 位机器上使用 VIM 7.4。在我的 .vimrc 文件中,我有以下几行:

" Use UTF-8 without BOM
set encoding=utf-8 nobomb
Run Code Online (Sandbox Code Playgroud)

config文件基本上使用 Unicode 字符来显示空格,如制表符、换行符等。完整的 .vimrc 文件取自 Paul Irish 的dotfiles

在 14.04 的早期安装以及以前的发行版中,我能够毫无问题地看到 unicode 字符,但在这个版本中则不然。

我也试过:

 set fileencodngs=utf-8
Run Code Online (Sandbox Code Playgroud)

但是,上面的设置没有效果,我仍然在屏幕上看到乱码。有没有办法解决?

vim unicode

13
推荐指数
1
解决办法
4万
查看次数

在 Ubuntu 12.04 LTS 中使用 Gmail 配置 sSMTP

我正在尝试为 Ubuntu 使用一个好的命令行电子邮件工具,以便我可以发送简单的电子邮件,甚至可以通过终端或简单的 bash 脚本附加文件。我的ssmtp.conf文件现在看起来像这样:

#
# Config file for sSMTP sendmail
#
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=myusername@gmail.com

# The place where the mail goes. The actual machine name is required no 
# MX records are consulted. Commonly mailhosts are named mail.domain.com
mailhub=smtp.gmail.com:587

# Where will the mail seem to come from?
rewriteDomain=gmail.com

# The full hostname
hostname=myusername@gmail.com
AuthUser=myusername
AuthPass=mypassword
UseSTARTTLS=YES 
# Are users …
Run Code Online (Sandbox Code Playgroud)

gmail smtp proxy

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

gmail ×1

keyboard ×1

proxy ×1

smtp ×1

unicode ×1

vim ×1

xorg ×1

xserver ×1