Best way to insert timestamp in Vim?

To make it work cross-platform, just put the following in your vimrc: nmap <F3> i<C-R>=strftime(“%Y-%m-%d %a %I:%M %p”)<CR><Esc> imap <F3> <C-R>=strftime(“%Y-%m-%d %a %I:%M %p”)<CR> Now you can just press F3 any time inside Vi/Vim and you’ll get a timestamp like 2016-01-25 Mo 12:44 inserted at the cursor. For a complete description of the available parameters … Read more

Linux vi arrow keys broken in insert mode

I presume you’re using vim as this is tagged as Linux. Try: :set nocompatible (You may want to configure your .vimrc with this by adding this command to it. Create a new .vimrc file if not already present in your home directory, run echo $HOME to check home directory path.)

How do I use vi keys in ipython under *nix?

In case someone’s wandering in here recently, IPython 5.0 switched from readline to prompt_toolkit, so an updated answer to this question is to pass an option: $ ipython –TerminalInteractiveShell.editing_mode=vi … or to set it globally in the profile configuration (~/.ipython/profile_default/ipython_config.py; create it with ipython profile create if you don’t have it) with: c.TerminalInteractiveShell.editing_mode=”vi”

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