vim-flake8 icon indicating copy to clipboard operation
vim-flake8 copied to clipboard

enabling flake8 kills my tabstops

Open bladernr opened this issue 9 years ago • 3 comments

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 <SNR>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...

bladernr avatar Aug 31 '15 18:08 bladernr

~~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: https://github.com/vim/vim/issues/326

sanscore avatar Sep 27 '15 03:09 sanscore

same issue

shihewhu avatar Jan 12 '16 02:01 shihewhu

Same problem. Has anyone found a solution?

usernamenumber avatar Aug 11 '16 17:08 usernamenumber