Vim config
- your can modify the vim global config for all user or modify the local config for single user.
- the global config path is
/etc/vim
, you can touch a new file namedvimrc.local
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
" Sets how many lines of history VIM has to remember set history=1000 " Ignore case when searching set ignorecase " When searching try to be smart about cases set smartcase " Highlight search results set hlsearch " Makes search act like search in modern browsers set incsearch " show line number set number " show command in status line set showcmd " show matching brackets set showmatch " show cusor line set cursorline " Always show current position set ruler " Enable syntax highlighting syntax enable " Set utf8 as standard encoding and en_US as the standard language set encoding=utf8 " auto set autoindent " " set noexpandtab " Use spaces instead of tabs set expandtab " Be smart when using tabs ;) set smarttab " tab use 4 set tabstop=4 " use 4 space replace tab set softtabstop=4 " set shiftwidth=4 " Always show the status line " set laststatus=2 " use mouse " set mouse=a
Author Linfeng
LastMod 2023-08-31