tag: vim ubuntu make multi-byte encoding xterm clipboard
Reference:
http://vim.wikia.com/wiki/Building_Vim
http://vim.wikia.com/wiki/Clipboard
http://www.linuxforums.org/forum/newbie/144575-problems-copying-pasting-vim.html
Preface:
I'm a Linux starter who like pure command line interface. So I just installed Ubuntu 10.04 without GUI. And later I installed fluxbox environment under the instructions
here. This article describes how to compile a multi-byte and xterm_clipboard (system clipboard) supported vim.
Why multi-byte?
I need to work with Chinese files
Why xterm_clipboard?
It will be easy for you copy and paste around in X system. And it is faster than build-in registers when the content is bigger.
Get latest Vim source code:
Pls follow the instructions on Vim's main page
To quickly build a vim:
cd /usr/local/src/vim/src
./configure
# you'd better remove original vim package on you machine before this step
sudo make install
Add multi-byte support:
#replace ./configure with following
./configure --with-features=big
Add xterm_clipboard Support:
Check if your vim supports xterm_clipboard:
- ":version" vim command
- "vim --version"
There will be a string "-xterm_clipboard or +xterm_clipboard"
Install build dependencies:
"sudo apt-get install" or "sudo aptitude install":
- libncurses5-dev
- libgtk2.0-dev
- libatk1.0-dev
- libx11-dev
- libxt-dev
.configure --with-features=big --enable-gui=gtk2
.make
sudo make install
Clipboard Operation:
When you have a
+xterm_clipboard version of vim, you can use following commands to operate system clipboard.
- "+yy or "*yy to copy to clipboard
- "+p or "*p to paste from clipboard
Notes:
- With a multi-byte supported Vim, you also need a correctly configed x-term emulator (encoding). Or the Chinese characters will still be a mess.
- I did not get a gvim through this process. And I don't know how to do that. But I'm happy because what I need is just s light weight, fast vim in terminal.
- If you need a vim-gnome, please refer to the first reference link
- System clipboard will be associated with different vim register on different platforms. It will always be "*" in windows version. And "+" in the build discussed here.
分享到:
相关推荐
标签“Jetson cross-compile”和“交叉编译器”进一步强调了这个工具的主要用途。交叉编译器是在一个平台上生成另一个平台可执行代码的编译器。在这种情况下,用户可能在x86架构的个人电脑上使用这个编译器来构建...
This is the OpenWrt SDK. It contains a stripped-down version of the buildroot. You can use it to test/develop packages without ...in the subdir 'package/' and run 'make' from this directory.
LLVM是构架编译器(compiler)的框架系统,以C++编写而成,用于优化以任意程序语言编写的程序的编译时间(compile-time)、链接时间(link-time)、运行时间(run-time)以及空闲时间(idle-time),对开发者保持开放,并兼容...
fdtput版本更新至1.4.5,下载device-tree-compiler_1.4.5-3_amd64.deb,dpkg -i安装
So after years of pain, I jumped on oDesk and contracted Ilya Kitaev, to both compile with Microsoft Visual Studio, and also prepare automated tools for easy compiling in the future. Update: MSVC isn...
--with-pcre=/root/ngx_tcp_compile/softwares/pcre-8.36 \ --with-pcre-jit \ --without-http_gzip_module \ --with-http_stub_status_module \ --with-http_ssl_module \ --with-tcp \ --...
Wget: retrieve files from the ... If you are behind a firewall that requires the use of a socks style gateway, you can get the socks library and compile wget with support for socks.
l_fortran-compiler_p_2021.4.0.3224_offline.sh linux编译器下载
No need to compile anything or jump through any hoops, just click a few times and it is installed, leaving you to doing real work. Download it today! Note that these are default builds of OpenSSL and...
mtd_tools针对arm-xilinx-linux-gnueabi(Sourcery_CodeBench_Lite_for_Xilinx_GNU_Linux),tar包形式 已经全部编译好,tar包直接解压就可以使用。使用前请确保编译器一致。
JAVAEmployee Management System In Java With Source CodeEmployee Management System is a Java application designed to perform and handle employee management functions. Using this Object-oriented ...
这个“MPEG-4.rar_MoMuSys compile lin_mpeg-4”压缩包文件包含了MPEG-4编解码器的源代码,特别指出该代码已经过移植,适用于ARM(Advanced RISC Machines)和DSP(Digital Signal Processor)这两种处理器架构。...
使用`pip_compile_multi`时,你可以创建多个`.in`文件,如`requirements.dev.in`、`requirements.test.in`等,这些文件包含了各个环境所需的包和版本。然后,通过运行`pip Compile multi`命令,库会解析这些输入文件...
标题中的"hadoop-2.6.0-cdh5.14.2.tar_after_compile -src"揭示了这是一个关于Hadoop的源代码版本,经过编译后的结果。Hadoop是大数据处理领域的重要工具,其核心是分布式文件系统(HDFS)和MapReduce计算框架。这个...
标题中的"PyPI 官网下载 | pip_compile_multi-1.0.6-py2.py3-none-any.whl"指的是Python的包管理器PyPI(Python Package Index)上发布的名为`pip_compile_multi`的软件包的1.0.6版本。这个版本是针对Python 2和...
hadoop-2.6.0-cdh5.14.2_after_compile.tar
7. 执行编译脚本:使用`./compile.sh`命令开始编译过程。这是一个shell脚本,负责设置环境变量、执行编译操作,并最终生成ARM Rom Image。 8. 构建过程的配置选项:在开始编译后,会提示用户进行一些配置选择,包括...
标题中的"synergy-core-2.0.13_osxMojave&ubuntu18.04"指的是一款名为Synergy的核心组件,版本号为2.0.13,适用于苹果的macOS Mojave操作系统和Ubuntu 18.04 Linux发行版。Synergy是一款跨平台的软件,允许用户通过...
标题中的"PyPI 官网下载 | pip_compile_multi-2.3.2-py2.py3-none-any.whl"指的是Python的包管理器PyPI(Python Package Index)上发布的名为`pip_compile_multi`的软件包的特定版本,版本号为2.3.2。这个包是针对...
Ubuntu下libxml2的交叉编译 2014-12-26 13:10 本站整理 浏览(587) Ubuntu下libxml2的交叉编译,有需要的朋友可以参考下。 环境为Ubuntu 14.04 LTS 64位 英文版本。 使用的交叉编译工具是arm-linux-gcc-4.3.2.tgz。...