Skip to content

Vim:Plugin:python-mode

Python을 지원하는 Vim플러그인.

아래와 같이 설치한다.

NeoBundle 'klen/python-mode'

Disable folding

자동 폴딩이 걸려있으니 아래와 같이 풀어주면 된다.

let g:pymode_folding=0 

Disable ignore

pyflakes관련 경고를 제거하고 싶다면 아래와 같이 설정할 수 있다.

let g:pymode_lint_ignore = 'E203,E221,E272,E301'

또는 아래와 같이 코드 안에 # NOQA주석을 삽입할 수 있다.

def isDebug():
    if int(ARGUMENTS.get(DEBUG_PARAM_NAME, 0)): # NOQA
        return True
    else:
        return False

Favorite site