Turning off auto indent when pasting text into vim

Update: Better answer here: https://stackoverflow.com/a/38258720/62202 To turn off autoindent when you paste code, there’s a special “paste” mode. Type :set paste Then paste your code. Note that the text in the tooltip now says — INSERT (paste) –. After you pasted your code, turn off the paste-mode, so that auto-indenting when you type works correctly … Read more

How do I make git use the editor of my choice for editing commit messages?

Setting the default editor for Git Pick one: Set core.editor in your Git config: git config –global core.editor “vim” Set the GIT_EDITOR environment variable: export GIT_EDITOR=vim Setting the default editor for all programs Set the standardized VISUAL and EDITOR environment variables*: export VISUAL=vim export EDITOR=”$VISUAL” NOTE: Setting both is not necessarily needed, but some programs … Read more

techhipbettruvabetnorabahisbahis forumuedusedusedusedueduseduseduseduseduedu