Created
January 15, 2019 09:42
-
-
Save NotFounds/eff69625c9e489020ca52041445f8d40 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
" | |
set nocompatible | |
" move by cursor | |
set whichwrap=b,s,h,l,<,>,[,],~ | |
" delete by backspace | |
set backspace=indent,eol,start | |
" file setting | |
set encoding=utf-8 | |
set fileencoding=utf-8 | |
set noswapfile | |
set nobackup | |
filetype plugin indent on | |
" clipboard | |
set clipboard+=unnamed | |
set clipboard+=unnamed | |
set paste | |
" line highlight | |
set cursorline | |
hi clear cursorline | |
" search | |
set incsearch | |
set hlsearch | |
set wildmenu | |
" syntax highlight | |
syntax on | |
"colorscheme desert | |
colorscheme hybrid | |
set background=dark | |
" indent | |
set tabstop=2 | |
set shiftwidth=2 | |
set softtabstop=2 | |
set expandtab | |
set autoindent | |
"set smartindent | |
set smarttab | |
" completion | |
inoremap {<Enter> {}}<Left><CR><ESC><S-o> | |
inoremap {<Enter> []}<Left><CR><ESC><S-o> | |
inoremap {<Enter> ()}<Left><CR><ESC><S-o> | |
" delete last space | |
autocmd BufWritePre * :%s/\s\+$//ge | |
" status line | |
set laststatus=2 | |
set statusline=%F%m%r%h%w%=[format=%{&ff}][%{&fileencoding}][hex=%02.2B][pos=%04l,%04v][%p%%][len=%L] | |
highlight StatusLine term=NONE cterm=NONE ctermfg=black ctermbg=white | |
" insert mode | |
inoremap jj <Esc> | |
inoremap Y y$ | |
" spellcheck | |
set spell | |
set spelllang=en,cjk | |
" other | |
set title | |
set mouse=a | |
set virtualedit=all | |
set history=5000 | |
set nolist | |
"set listchars=eol:↲ | |
set number | |
set ruler | |
set showcmd | |
set showmatch | |
set nowrap | |
set scrolloff=5 | |
set nostartofline | |
set matchtime=3 | |
set textwidth=0 | |
set laststatus=2 | |
set pumheight=10 | |
if !has('gui_running') | |
set timeout timeoutlen=1000 ttimeoutlen=50 | |
endif | |
set t_kD=^? | |
augroup MyXML | |
autocmd! | |
autocmd Filetype xml inoremap <buffer> </ </<C-x><C-o> | |
autocmd Filetype html inoremap <buffer> </ </<C-x><C-o> | |
autocmd Filetype xsl inoremap <buffer> </ </<C-x><C-o> | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment