How to copy and paste between different tmux panes running vim instances

Sorry, I’m trying to convince you to use vim built-in features. To make the copy/paste easy, you can open files in another Tabpages: :tabe /path/to/another/file Use gt or gT to switch Tabpages. Or split the window to edit another file: :sp /path/to/another/file Use Ctrl-ww to switch Windows. To split the window vertically, please use :vsp … Read more

vim backspace leaves ^?

^? is the delete character; the backspace character is ^H. Only one of these is recognized by your terminal as “erase”, and this is determined by the terminal settings, stty. (bash and other shells understand this as a problem and do special things to recognize both) If your terminal emulator (ssh, putty, xterm, whatever) disagrees … Read more

Tabs and spaces in vim

It is perhaps a good idea not to use tabs at all. :set expandtab If you want to replace all the tabs in your file to 3 spaces (which will look pretty similar to tabstop=3): :%s/^I/ / (where ^I is the TAB character) From the VIM online help: ‘tabstop’ ‘ts’ number (default 8) local to … Read more

How to do column editing in vim?

To edit a column, follow these steps: Stand on the beginning of the column Press Ctrl+v, then mark across the column you want to edit. Press Shift+i to insert text at the beginning of the column, Shift+a to append text, r to replace highlighted text, d to delete, c to change… etc. Hit ESC when … Read more

Using normal-mode motions in command-line mode in Vim

By default you can press Control + f (or otherwise see set cedit) when on the Vim command-line, which opens the command-line window where you can edit the command using normal-mode Vim editing keys. Enter will run the command or Control + c will return you to the standard command-line. So in your specific example, … Read more

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