Desk Shell

Technology Makes Life Better!

Menu
  • Home
  • About

stop vim from adding a newline at the end of a file

2021-08-16
 |  No Comments

The below option can be set to prevent vim from add a newline at the end of a file

:set nofixendofline

This option is useful when you edit a file under version control system or the extra new line may cause problems.

Reference:

https://stackoverflow.com/questions/1050640/how-to-stop-vim-from-adding-a-newline-at-end-of-file

Tags: linux, vim

Post navigation

← add a desktop entry for intellij idea
a good book about iptables →

Leave a Reply Cancel reply

Your email address will not be published.

Recent Posts

  • introduce curl command
  • two useful clients about ssh and vnc in ubuntu
  • variable indirect expansion in bash
  • use ip command to show statistics about transferred and received packages
  • 2022 is a new start point

Recent Comments

  • John on raw.githubusercontent.com的DNS记录被污染了
  • Anonymous on disk block size vs filesystem block size
  • Leon Xie on hello world

Archives

  • March 2023
  • February 2023
  • January 2023
  • March 2022
  • February 2022
  • September 2021
  • August 2021
  • July 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • February 2020
  • October 2019
  • September 2019
  • August 2019
  • February 2019
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018

Categories

  • ansible
  • apt
  • bash
  • certificate
  • curl
  • data-struct
  • database
  • debian
  • docker
  • etcd
  • git
  • gradle
  • helm
  • iptables
  • java
  • jenkins
  • junit
  • jvm
  • kubernetes
  • linux
  • mariadb
  • maven
  • nginx
  • nodejs
  • npm
  • openssl
  • oracle
  • prometheus
  • python
  • rhel
  • robot
  • route
  • rsa
  • springboot
  • sql
  • ssh
  • tls
  • tree
  • ubuntu
  • uncategorized
  • zookeeper

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
© Copyright 2019 Banquet Hall All Rights Reserved.