Kang Yan

Vim setting for python

[OS]: Ubuntu

[Path]: ~/.vimrc (create one if don't have)

here is how to config vim for python:

filetype plugin indent on
syntax on
au BufNewFile,BufRead *.py set ts=4 softtabstop=4 shiftwidth=4 expandtab=4 smarttab autoindent

and why you can't use source ~/.vimrc in your terminal after you finished configuration.

wrote on 1/15/2025

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Search This Blog

Blog Archive

  • ►  2026 (1)
    • ►  Jan (1)
  • ▼  2025 (25)
    • ►  Dec (3)
    • ►  Aug (2)
    • ►  Jul (2)
    • ►  May (2)
    • ►  Apr (4)
    • ►  Feb (3)
    • ▼  Jan (9)
      • Run deepseek-r1 on WSL
      • How to get big idea
      • How to create effective academic slides
      • Preview *.html files and *.md files with vim
      • Bloomberg explained why deflation is harmful for e...
      • How to success even though you don't have high IQ
      • Vim setting for python
      • RedNote hits the #1 free app downloaded on the App...
      • Image Creating on MALTAB for Publications

Labels

  • Academics
  • HowTo
  • IT
  • Education
  • HelloWorld
  • MRI
  • On China
  • Python
  • Vim
  • Economy
  • English
  • LLM

Reading List

  • What you'll wish you'd known
  • The cult of genius
  • Advice for the young scientist
  • Why You Procrastinate (It Has Nothing to Do With Self-Control)

Website

  • Hacker News
  • Wired
  • The New Yorker
  • Telehack
  • Solidot
  • XKCD
  • Leeao
  • WiKiSource
  • Chinese Text Project

Blogroll

  • Paul Graham
  • Terence Tao
  • Simon Willison
  • Changhai Lu
  • Naked Capitalism
  • Greg mankiw
© wrr6ps. Simple theme. Powered by Blogger.