How to replace text between quotes in vi

Use ci”, which means: change what inside the double quotes. You can also manipulate other text objects in a similar way, e.g.: ci’ – change inside the single quotes ciw – change inside a word ci( – change inside parentheses dit – delete inside an HTML tag, etc. More about different vim text objects here.

Setting the Vim background colors

As vim’s own help on set background says, “Setting this option does not change the background color, it tells Vim what the background color looks like. For changing the background color, see |:hi-normal|.” For example :highlight Normal ctermfg=grey ctermbg=darkblue will write in white on blue on your color terminal.

How to paste over without overwriting register

Use the following: xnoremap p pgvy this will reselect and re-yank any text that is pasted in visual mode. Edit: in order this to work with “xp you can do: xnoremap p pgv”@=v:register.’y'<cr> v:register expands to the last register name used in a normal mode command.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)