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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
runtime! debian.vim
if has("syntax") syntax on endif
set background=dark
"au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
set showcmd set showmatch set ignorecase set smartcase set incsearch "set autowrite " Automatically save before commands like :next and :make set hidden "set mouse=a " Enable mouse usage (all modes)
if filereadable("/etc/vim/vimrc.local") source /etc/vim/vimrc.local endif
setlocal noswapfile set bufhidden=hide "colorscheme evening " 设定配色方案 set number set cursorline set ruler "set shiftwidth=2 " 设定 << 和 >> 命令移动时的宽度为 2 "set softtabstop=2 " 使得按退格键时可以一次删掉 2 个空格 set tabstop=2 set nobackup set autochdir set backupcopy=yes set hlsearch set noerrorbells set novisualbell set t_vb= set matchtime=2 set magic set smartindent set backspace=indent,eol,start set cmdheight=1 set laststatus=2 set statusline=\ %<%F[%1*%M%*%n%R%H]%=\ %y\ %0(%{&fileformat}\ %{&encoding}\ Ln\ %l,\ Col\ %c/%L%) set foldenable set foldmethod=syntax set foldcolumn=0 setlocal foldlevel=1 nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
|