When I copy and paste text from the clipboard, the code looks like
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "heroku"]
instead of
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "heroku"]
Here is my .nanorc file
set tabsize 4
set autoindent
According to Why does Vim indent pasted code incorrectly? the set autoindent is inserting the leading tabs into the code when I am pasting from the clipboard.
Is there a way I can configure .nanorc to turn-off autoindenting while pasting from the clipboard and turn it back on otherwise?
nano -I
? If not, it's likely an issue with your nanorc file(s). – Brōtsyorfuzthrāx Sep 30 '22 at 05:30