Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot delete the very beginning line (the first line) of the file #1064

Open
huahandsome opened this issue Nov 12, 2017 · 1 comment
Open

Comments

@huahandsome
Copy link

Hello,

I had a problem to delete the first line with command "dd". I cannot delete the first line with dd, and the CPU usage of VIM will become 100% after running dd in first line.

This is a python source code with .py as suffix.

1
2 def get_db():
3 from pymongo import MongoClient
4 client = MongoClient('localhost:27017')
5 db = client.myFirstMB
6 return db
7
8 def add_country(db):
9 db.countries.insert({"name" : "Canada"})
10
11 def get_country(db):
12 return db.countries.find_one()
13
14 if name == "main":
15 db = get_db()
16 add_country(db)
17 print get_country(db)

But it looks like this problem only happened in this special file. If I create a new one and it works.

I used Linux Mint as the following information:

Distributor ID: LinuxMint
Description: Linux Mint 18.2 Sonya
Release: 18.2
Codename: sonya

Can you see if you can reproduce it and help fix it?

Thanks,

Shuai Hua

@huahandsome
Copy link
Author

I found a work around to this issue:

  1. find these two files: ".spf13-vim-3/.vimrc.bundles" and ".spf13-vim-3/.vimrc"
  2. search keyword "python", and commented out all the lines with keyword "python"

It looks like there is a bug in python plugin such as "pythoncomplete", "python_match.vim", "python-mode" and "python.vim"

Thanks,

Shuai Hua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant