Traversing text in Insert mode

While it may make sense that you should be able to use the h j k l keys to traverse the editor in insert mode, but that is actually not the way Vim is intended to be used! There are many commands that Vim provides to make editing faster and easier. The right way is … Read more

Replace tabs with spaces in vim

Once you’ve got expandtab on as per the other answers, the extremely convenient way to convert existing files according to your new settings is: :retab It will work on the current buffer.

Renaming the current file in Vim

The command is called :saveas, but unfortunately it will not delete your old file, you’ll have to do that manually. see :help saveas for more info. EDIT: Most vim installations have an integrated file explorer, which you can use for such operations. Try :Explore in command mode (I would actually map that to a function … Read more

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