2049
Kommentar:
|
2365
|
Gelöschter Text ist auf diese Art markiert. | Hinzugefügter Text ist auf diese Art markiert. |
Zeile 35: | Zeile 35: |
C Einrückung ````````````` |
|
Zeile 41: | Zeile 44: |
Statuszeile ```````````` :: " http://stackoverflow.com/questions/5375240/a-more-useful-statusline-in-vim set laststatus=2 set statusline=%<%f\ %h%m%r\ %y%=%{v:register}\ %-14.(%l,%c%V%)\ %P |
Vim
Einige Einstellungen
set nocompatible set textwidth=79 set t_Co=256 set hlsearch set encoding=utf-8 set mouse=a set visualbell set autoindent set smartindent set expandtab set colorcolumn=80 set ruler set exrc set backspace=indent,eol,start set incsearch set ignorecase set smartcase set hidden set noswapfile behave xterm syntax on filetype on
C Einrückung
Siehe :help c-indenting und :help autocommand
autocmd FileType c,cpp set ts=4 sw=4 et tw=80 fo=tcroq comments=sl:/*,mb:\ *,elx:\ */,:// cindent cino={2,>4,n-2 nu autocmd FileType python set tabstop=4 shiftwidth=4 expandtab
Statuszeile
" http://stackoverflow.com/questions/5375240/a-more-useful-statusline-in-vim set laststatus=2 set statusline=%<%f\ %h%m%r\ %y%=%{v:register}\ %-14.(%l,%c%V%)\ %P