DDCODE

Share programming skills from Magic Oriental

upArrow

When Vim pastes the code, it displays the level indentation, how to solve it

 May 11, 2019   question, vim

图片描述

Before pasting:
:set paste
Finished pasting:
:set nopaste


Another great method:
:r! cat
Then use
shift+insert
Or otherwise paste the code, and then
ctrl+d
Complete the input.

Source

Related Posts:

  • Vim indentation is aligned in vim mode, but it is…
  • How to provide different indentation widths for…
  • When vim edits an html file, the indentation of the…
  • Vim profile indentation problem
  • How does vim set the indentation of gg=G to 4 characters
  • On the Indentation of Brackets in vim
  • Look for cloud notes that support code indentation…
  • [Doubt] Java Multithreading and "User-level…
  • How is the three-level schema structure and…
<< What kind of editor window layout has the most love? Text editor writer >>

Related Posts:

  • Vim indentation is aligned in vim mode, but it is…
  • How to provide different indentation widths for…
  • When vim edits an html file, the indentation of the…
  • Vim profile indentation problem
  • How does vim set the indentation of gg=G to 4 characters
  • On the Indentation of Brackets in vim
  • Look for cloud notes that support code indentation…
  • [Doubt] Java Multithreading and "User-level…
  • How is the three-level schema structure and…

Tags

Android android-studio apache c c++ centos Css css3 Database Docker Eclipse Express Front end git GitHub golang Html html5 Ios java javascript Jquery Laravel linux macos mongodb mysql Nginx node.js npm objective-c php Programmer python redis ruby shell Spring Sql Swift ubuntu vim vue.js Web xcode

Powered by MyWiki WordPress Theme