SORU
15 EYLÜL 2008, PAZARTESİ


Nasıl VİM autoindentation düzgün Python dosyaları *düzenleme Kur.py

Sıkıntılar VİM (7.1.ayar oldum xxx) düzenleme için dosyaları python. Girintileme bozulmak (en iyi 4 boşluk) gibi görünüyor. Google üzerinden buldum bazı dersler izledim. Hala etkisi :/ Yardım lütfen.

CEVAP
15 EYLÜL 2008, PAZARTESİ


Benim macbook kullanabilirsiniz:

" configure expanding of tabs for various file types
au BufRead,BufNewFile *.py set expandtab
au BufRead,BufNewFile *.c set noexpandtab
au BufRead,BufNewFile *.h set noexpandtab
au BufRead,BufNewFile Makefile* set noexpandtab

" --------------------------------------------------------------------------------
" configure editor with tabs and nice stuff...
" --------------------------------------------------------------------------------
set expandtab           " enter spaces when tab is pressed
set textwidth=120       " break lines when line length increases
set tabstop=4           " use 4 spaces to represent tab
set softtabstop=4
set shiftwidth=4        " number of spaces to use for auto indent
set autoindent          " copy indent from current line when starting a new line

" make backspaces more powerfull
set backspace=indent,eol,start

set ruler                           " show line and column number
syntax on   			" syntax highlighting
set showcmd 			" show (partial) command in status line

(sadece malzeme girinti / sekmeler ile ilgili göstermek için düzenlenmiş)

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Bokeh

    Bokeh

    9 HAZİRAN 2014
  • RD

    RD

    19 NİSAN 2006
  • WhtButterflyLiz

    WhtButterfly

    14 NİSAN 2008