Vim My own trick
April 25, 2013 Leave a comment
type this :
Open files after in vim session :
CTRL C : E
to search the a file use / ( /.bashrc )
switch between 2 files (loaded in the buffer)
next
CRTL c : bn
previous
CRTL c : bp
copy from the cursor to end file
CRTL c : “+yG
this should copy to system clipboard , but only if your vim is compiled with this flag +xterm_clipboard if you get -xterm_clipboard you will not able to copy in your system clipboard.
so on ubuntu this is annoying but the fastest way to get this stuff enabled by default it’s install vim-gnome … wtf
if you want copy just for vim you don’t need of “+ or “* you can use only
yG