vim system clipboard setup

How vim interact with the system clipboard is something always tricky and debatable as vim carries its own register. Current Setting My previous way is using the vim register for operations like y, d, x etc and use a mapping of ctrl+c to copy the content to system clipboard like vmap <C-c> “+y to copy…

putty ssh vi ctrl s

Every once in awhile, I’ll press CTRL+S by accident while I’m inside a terminal window. For the longest time, this simple accidental keystroke meant I had reconnect to my Linux server, kill whatever program I was running, and then start it again. Eventually I got sick of this happening and decided to do what I…

My Basic VI commands

vi filename  edit filename starting at line 1 :q  quit (or exit) vi :q!  quit vi even though latest changes have not been saved for this vi call :0 or 1G or gg move cursor to first line in file :n or nG move cursor to line n :$ or G move cursor to last line in file i insert text before cursor, until  hit /string search forward for occurrence of string in…