Last active
December 26, 2015 15:59
-
-
Save andru255/7176142 to your computer and use it in GitHub Desktop.
Soporte de clipboard del sistema con vim en zsh en debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Solucion 1: | |
1. verificas si tienes habilitado el clipboard de vim con esto en consola: | |
vim --version | grep clipboard | |
2. si muestra así: | |
7:+clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments | |
21:+xsmp_interact -xterm_clipboard -xterm_save | |
3. entonces no está soportado, por tanto es necesario instalar el vim-gtk: | |
sudo apt-get install vim-gtk | |
y problema resuelto. | |
#pendiente solucion 2 de hacer un rebuild al source del vim como indica en: | |
http://linuxg.net/how-to-install-vim-7-4-on-debian-based-systems-from-source/ | |
http://stackoverflow.com/questions/11416069/compile-vim-with-clipboard-and-xterm | |
https://groups.google.com/forum/#!msg/vim_dev/rIFYgTrsys4/DCMKih3wEywJ | |
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm | |
http://superuser.com/questions/235505/compiling-vim-with-xterm-clipboard-support | |
solución 2 (compilando el vim) | |
1. se instala las dependencias | |
$ sudo apt-get install ncurses-dev build-essential mercurial | |
2. para que soporte el clipboard se instala los paquetes | |
$ sudo apt-get install libx11-dev libxtst-dev xorg-dev | |
3. hacemos un clone del repo de vim de preferencia en la carpeta home (~) | |
$ hg clone https://vim.googlecode.com/hg/ vim | |
4.Tiempo de buildear! | |
===================== | |
4.1 nos vamos a la carpeta src | |
$ cd vim/src | |
4.2 hacemos la limpieza del dist | |
$ make distclean | |
4.3 configuramos el vim para que cuando se compile estea supercompuesto | |
$ ./configure --with-features=huge --enable-pythoninterp --enable-rubyinterp --with-x --enable-gui | |
4.4 realizamos el make correspondiente | |
$ make | |
4.5 hacemos la instalación como superusuario | |
$ sudo make install | |
5. ajustamos el path | |
$ export PATH=/usr/local/bin:$PATH | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment