Vim My own trick


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

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: