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.
分享到:
相关推荐
ni-labview-2019-fpga-module-x86-zh-cn_19.0.0_offline 离线安装包
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.
用于交叉编译linux内核 请自行解压 7z格式 适用于jetson板子gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu.tar.xz
gcc-linaro-7.4.1-2019.02-x86_64_arm-eabi_01(共2个压缩分卷)是由 Linaro 公司基于GCC推出的的ARM交叉编译工具。可用于交叉编译32-bit Armv7 Cortex-A, soft-float, little-endian目标中的裸机程序、u-boot、Linux ...
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.
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...
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 ...
python库,解压后可用。 资源全名:pip_compile_multi-1.5.0-py2.py3-none-any.whl
Ubuntu下libxml2的交叉编译 2014-12-26 13:10 本站整理 浏览(587) Ubuntu下libxml2的交叉编译,有需要的朋友可以参考下。 环境为Ubuntu 14.04 LTS 64位 英文版本。 使用的交叉编译工具是arm-linux-gcc-4.3.2.tgz。...
hadoop-2.6.0-cdh5.14.2_after_compile.tar
Play java compile di example
Linux下的常用shell命令,文本编辑器vi和C语言编译、调试工具gcc、gdb的使用心得。
资源来自pypi官网。 资源全名:pip_compile_multi-1.5.0-py2.py3-none-any.whl
通过整理和实践,详细说明如何编译QT动态库和静态库
资源来自pypi官网。 资源全名:pip_compile_multi-2.3.2-py2.py3-none-any.whl
资源来自pypi官网。 资源全名:pip_compile_multi-1.0.6-py2.py3-none-any.whl