Showing posts with label workaround. Show all posts
Showing posts with label workaround. Show all posts
Sunday, October 16, 2016
Vim clipboard copy paste workaround
Vim clipboard copy paste workaround
I love Vim. But the somewhat difficult to handle system clipboard integration just doesnt seem to fit in with me. I made a recompile to get +xterm-clipbard option, but the whole Ctrl-C Ctrl-V thing was missig. And I didnt want to recompile everytime. Got a nice workaround using xclip :) here [ http://vim.wikia.com/wiki/In_line_copy_and_paste_to_system_clipboard ]
Just to make a note / backup, heres what you have to do. Just put that into your .vimrc
Just to make a note / backup, heres what you have to do. Just put that into your .vimrc
Youre good to go.
" Copy paste from clipboard
vmapy: call system("xclip -i -selection clipboard", getreg("""))
nmap:call setreg(""",system("xclip -o -selection clipboard")) p
Go to link download
Labels:
clipboard,
copy,
paste,
vim,
workaround
Wednesday, September 21, 2016
Lubuntu Workaround to compile BBCP in Lubuntu
Lubuntu Workaround to compile BBCP in Lubuntu
BBCP is a useful program to speed things up when sending files between network machines. It can used multiple streams to make the magic happen. But recently, while trying to compile it (you cant find a prebuilt DEB) in Lubuntu, I faced with the error
Then again followed the compilation instructions [like here] and VOILA!!! :D
It meant there was to defined rule in the Makefile for my architecture (that I was using in Lubuntu). So, dirty the hands. Open the Makefile in a text editor and look for the line
*** No rule to make target `makeLinuxi686. Stop.
Right after it youll see a line similar to this.
Linux
So, I just crossed my fingers (taking my chances) and cloned that part like this
makeLinuxx86_64:
@make $(MKPARMS)
CC=$(LNXCC)
BB=$(LNXcc)
CFLAGS="$(ENVCFLAGS) $(LNXOPT)"
BFLAGS="$(ENVCFLAGS) $(LNXOPT_B)"
INCLUDE="$(ENVINCLUDE)"
LIBS="$(LNXLIBS64)"
Saved the file
makeLinuxi686:
@make $(MKPARMS)
CC=$(LNXCC)
BB=$(LNXcc)
CFLAGS="$(ENVCFLAGS) $(LNXOPT)"
BFLAGS="$(ENVCFLAGS) $(LNXOPT_B)"
INCLUDE="$(ENVINCLUDE)"
LIBS="$(LNXLIBS64)"
Then again followed the compilation instructions [like here] and VOILA!!! :D
Go to link download
Subscribe to:
Posts (Atom)