Narzędzia użytkownika

Narzędzia witryny


wiki:vimrc

To jest stara wersja strony!


Prosty i działający vimrc:

language messages C
syntax on
set showmatch
set number
set showcmd
set ruler
set confirm
set expandtab
set shiftwidth=2
set softtabstop=2
set autoindent
map <F2> :write % <CR>
map <F3> :set t_Co=0 <CR>
map <F5> :tabp <CR>
map <F6> :tabn <CR>
map <F7> :%s///g
au BufEnter,BufRead *sh setlocal smartindent cinwords=case,do,if,elif,else,for,function,select,then,until,while
au BufEnter,BufRead *py setlocal smartindent cinwords=class,def,if,elif,else,except,for,try,while
autocmd FileType python set tabstop=2|set shiftwidth=2

autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
map <C-n> :NERDTreeToggle<CR>
wiki/vimrc.1697199398.txt.gz · ostatnio zmienione: 2023/10/13 14:16 przez lukasz

Wszystkie treści w tym wiki, którym nie przyporządkowano licencji, podlegają licencji: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki