0%

  1. Your current setting(tab == 6-spaces-width && expand tab)

    1
    2
    3
    4
    5
    :set ts=6 et

    #!/usr/bin/env python
    def fun():
    ······print "hello, world"
  2. convet 6-spaces to tab

    1
    2
    3
    4
    5
    6
    7
    :set noet
    :ret!


    #!/usr/bin/env python
    def fun():
    »·····print "hello, world"
  3. reset tab to 4-space-width

    1
    2
    3
    4
    5
    :set ts=4

    #!/usr/bin/env python
    def fun():
    »···print "hello, world"
  4. convet tab to 4 spaces

    1
    2
    3
    4
    5
    6
    :set et
    :ret!

    #!/usr/bin/env python
    def fun():
    ····print "hello, world"

1
2
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

1
2
:bd buffer delete
:bw buffer write

1
2
3
4
5
6
import matplotlib
matplotlib.use('Agg') # <-- add this
import matplotlib.pyplot as plt

plt.plot([1,2,3])
plt.savefig('myfig')