Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

How to add a new line with the same indentation

Adding set autoindent to your ~/.vimrc can do that for you automagically.


I'd also suggest adding this to your .vimrc:

set smartindent

It will increase the indent in a new block.


Both will annoy you when pasting, as Vim will try and indent everything on the fly.

Prior to pasting enter:

:set paste

Tags:

Vim

Related

Run AppleScript on startup (background) What hardware combination should I consider for a 20TB file server? Laptop Battery Diagnostics Software? can a VirtualBox VM run on different hardware? Prevent display from turning off due to inactivity when watching full screen video (windows 7) Does the video card influence the speed at which a video is processed and exported from Adobe Premier Elements? Remote Desktop with multi-monitor support in XP? Locate bookmarks folder after finding bookmarks in Firefox Free way to clone HDD to SSD? Cygwin offline installer? What kind of information can my University gather regarding my internet use on the University’s network? Creating video with audio and still image for YouTube

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy