E D R , A S I H C RSS

Vim Setting For Python

Python Programming 을 μœ„ν•œ VIM Setting.

κΈ°λ³Έ μ…‹νŒ…

Python extension

Seminar:VimEditorμ°Έμ‘°.

BicycleRepairMan

Python extension 이 μ„€μΉ˜λœ μƒνƒœμ—μ„œ μ‚¬μš© κ°€λŠ₯ν•˜λ‹€.

Python extension 을 μ„€μΉ˜ν•˜κ³  λ‚œλ’€, BicycleRepairMan 을 install ν•œλ‹€. 그리고 BRM 의 압좕화일에 ide-integration/bike.vim 을 VIM μ„€μΉ˜ 디렉토리에 적절히 볡사해μ€λ‹€.

_vimrc 화일에 λ‹€μŒμ„ μΆ”κ°€ν•œλ‹€.
~cpp 
let g:bike_exceptions = 1 
let g:bike_progress = 1 
source $VIMRUNTIME/bike.vim 

BRM 의 λ¦¬νŒ©ν† λ§ κΈ°λŠ₯을 μ΄μš©ν• λ•ŒλŠ” λ¦¬νŒ©ν† λ§μ „ ν•΄λ‹Ή 화일을 BRM에 Import ν•΄μ£Όμ–΄μ•Ό ν•œλ‹€.

1002's Setting

아직 단좕킀듀은 μ™„λ²½ν•˜κ²Œ μ…‹νŒ…ν•˜μ§€ μ•Šμ€ μƒνƒœμ΄κΈ΄ ν•˜λ‹€. λŒ€λž΅ λ‹€μŒμ˜ μ…‹νŒ…μ„ λ³΄λ©΄μ„œ μ‘°κΈˆμ”© κ³ μ³λ‚˜κ°€λ©΄ 쒋을 λ“― ν•˜λ‹€.
~cpp 
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
"source $VIMRUNTIME/mswin.vim
"behave mswin

set diffexpr=MyDiff()
function MyDiff()
  let opt = ''
  if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
  if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
  silent execute '!C:Vimvim62diff -a ' . opt . v:fname_in . ' ' . v:fname_new . ' > ' . v:fname_out
endfunction

syn on
set nonu title 
set ai showmatch hidden incsearch ignorecase smartcase smartindent hlsearch
set et ts=4 sw=4 softtabstop=4 smarttab expandtab
set autowrite
set fileencoding=korea
set foldminlines=3
set nofen
set lines=40
set co=80
set ru
set smd

filetype on
filetype plugin on
filetype indent on

source $VIMRUNTIME/1002/python.vim
source $VIMRUNTIME/1002/python_box.vim
source $VIMRUNTIME/1002/EnhancedCommentify.vim

let g:EnhCommentifyUseAltKeys = "no"
let g:EnhCommentifyPretty = "yes"
let g:bike_exceptions = 1
let g:bike_progress = 1
source $VIMRUNTIME/1002/bike.vim

hi Normal guibg=#FFFFEE

map <F5> :wa <CR> :!python % <CR>
map <F6> :!pythonw.exe "C:Python23Toolsidleidle.pyw"<CR>
map <F11> <C-W>_
map <F3> :call PythonCommentSelection()<CR>
map <F4> :call PythonUncommentSelection()<CR>
map <C-F5> :wa <CR> :!python test_all.py <CR> 

let python_highlight_all = 1
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:28:22
Processing time 0.0093 sec