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

enabling flake8 kills my tabstops #43

Open
bladernr opened this issue Aug 31, 2015 · 3 comments
Open

enabling flake8 kills my tabstops #43

bladernr opened this issue Aug 31, 2015 · 3 comments

Comments

@bladernr
Copy link

Ok, I had this in vimrc:
set tabstop=4
set shiftwidth=4
set expandtab
set softtabstop=4
set autoindent
set smarttab

and I added the following to enable Flake8:
execute pathogen#infect()
filetype plugin indent on

The second line "filetype plugin indent on" is required to make Flake8 work. Without that line, I get this when trying to run Flake8:

E117: Unknown function: Flake8

So I have to add that filetype line in order to use Flake8 on python code.

However, when I turn that on, my tabstops no longer work and I get THIS whenever I try using the Tab key during an edit:

Error detected while processing function 34_SetVals:
line 12:
E121: Undefined variable: g:pydiction_location

So I am either doing something wrong, or there's a bug somewhere... I followed the instructions in the README file...

@sanscore
Copy link

I'm seeing this as well. My default softtabstop=2 and shiftwidth=2, but before instally vim-flake8, python files the default python ftplugin to change both settings to =4. After flake8, it seems that the default ftplugin isn't loaded.

Actually, I'm hitting: vim/vim#326

@shihewhu
Copy link

same issue

@usernamenumber
Copy link

Same problem. Has anyone found a solution?

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

4 participants