My life... and...

  • 지역로그
  • 태그로그
  • 미디어로그
  • 방명록

vim 2

Python을 위한 vimrc

(1) 파이썬 코드를 vim 안에서 실행하기 (F5를 누르면 실행됨) autocmd BufRead *.py set makeprg=python\ -c\ \"import\ py_compile,sys;\ sys.stderr=sys.stdout;\ py_compile.compile(r'%')\" autocmd BufRead *.py set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m autocmd BufRead *.py nmap :!python %

카테고리 없음 2012.02.16

Python을 위한 Vimrc script

vimrc script를 만들었다. 웹사이트에 검색하니 바로 표준인 것 같은 파일이 하나 올라와서 이걸 베이스로 수정했다. 사이트를 보니 python.org 에서 나온 것 같음 ㅎ 그대로 복사하고 나서 tabstop 이나 expandtab 같은 몇가지 부분 수정 or 추가하고 나서 사용중 1) tabstop 수정 au BufRead,BufNewFile *py,*pyw,*.c,*.h set tabstop=2 au BufRead,BufNewFile *.py,*pyw set shiftwidth=2 2) 3 line 추가함 let python_highlight_all=1 set autoindent syntax on 아래는 원본 http://svn.python.org/projects/python/trunk/Mis..

Python 2012.02.04
1
더보기
프로필사진

  • 분류 전체보기 (45)
    • Python (14)
    • Ubuntu (2)
    • Subversion (3)
    • PyQt (1)
    • Idea (3)
    • LaTeX (1)
    • SystemVerilog (1)
    • UVM (0)
    • Thinking (2)
    • Simulator (1)
    • ASIC (2)
    • Project Euler (1)
    • FTDI (1)
    • git (2)

Tag

logging, submodule, Multi, Subversion, Doxygen, git, TeX, doxverilog, Process, svn, Python, vim, Freeze, github, meld, Personal, latex, qt4, ubuntu, PyQt,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바