vim config note

5 阅读1分钟

vim config for c

set nu " display line number

" Use filetype-specific indent settings

filetype plugin indent on

" Set the width of a TAB character to 4 spaces for display

set tabstop=4

" Set the width of an auto-indent to 4 spaces

set shiftwidth=4

" Use spaces instead of a hard tab character when Tab is pressed

set expandtab

" Makes <Tab> and <BS> in insert mode act like a tab stop of 4 spaces

set softtabstop=4