7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

適当な Python コードを Vim で開いた場合の mode line

Last updated at Posted at 2014-09-19

以下のように書くと 4スペースでインデントできるし、インデント毎に za で fold できるので便利。

#! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8 ff=unix ft=python ts=4 sw=4 sts=4 si et fdm=indent fdl=99:
# vim:cinw=if,elif,else,for,while,try,except,finally,def,class:

以下略した設定。

  • fenc: fileencoding
  • ff: fileformat
  • ft: filetype
  • ts: tabstop
  • sw: shiftwidth
  • sts: softtabstop
  • si: smartindent
  • et: expandtab
  • fdm: foldmethod
  • fdl: foldlevel
  • cinw: cinwords

僕が所属している会社社員募集中みたいです。なんか、 Python 書いてみてーなと思った人は応募してみてくださいな。 (すてま)

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?