Vim My own trick

type this :

Open files after in vim session :


to search the a file use / ( /.bashrc )

switch between 2 files (loaded in the buffer)


CRTL c : bn


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


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: