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.0086 sec