Created
March 8, 2021 02:45
-
-
Save hogelog/0cf5ad7d12244276e8a80f2475f03c4e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Use this group for any autocmd defined in this file. | |
augroup MyAutoCmd | |
autocmd! | |
augroup END | |
filetype plugin indent on | |
syntax enable | |
"colorscheme default | |
set noswapfile | |
set nobackup | |
set number | |
set smartindent | |
" completion | |
set wildmode=list:longest | |
" no bell | |
set visualbell | |
set t_vb= | |
" for UTF-8 | |
set ambiwidth=double | |
" show statusline always | |
set laststatus=2 | |
" show fenc, ff on statusline | |
set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P | |
set showmatch | |
set modeline | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=0 | |
set expandtab | |
set textwidth=0 | |
autocmd FileType text setlocal textwidth=0 | |
set encoding=utf-8 | |
set termencoding=utf-8 | |
set fileencodings=utf-8,iso-2022-jp,euc-jp,cp932 | |
set fileformats=unix,dos,mac | |
" search | |
set ignorecase | |
set smartcase | |
set hlsearch | |
set history=500 | |
command Q qa | |
" auto save | |
set updatetime=50 | |
autocmd MyAutoCmd CursorHold * call AutoUp() | |
function! AutoUp() | |
if expand('<afile>') != '' && !&readonly && &buftype == '' && &filetype != 'tex' | |
silent update | |
endif | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment