diff --git a/vimrc b/vimrc index 108cbfc..f0986f9 100644 --- a/vimrc +++ b/vimrc @@ -1,4 +1,12 @@ -let sfile = expand('') +" basic +set nocompatible +filetype on +syntax on +set encoding=utf-8 +set backspace=indent,eol,start +set nofoldenable +set background=dark +set nostartofline " map-leader if !exists('mapleader') @@ -20,7 +28,7 @@ inoremap JK nnoremap C :%y* " tab edit nnoremap e :tabe - execute 'nnoremap vv :tabe '.sfile.'' + execute 'nnoremap vv :tabe '.expand('').'' nnoremap V :tabe $MYVIMRC " search nnoremap / /\v @@ -43,19 +51,9 @@ augroup sup39_auto autocmd Filetype javascript,typescript,vue setlocal iskeyword+=$ autocmd Filetype html,vue setlocal iskeyword+=- " tab - autocmd FileType make,java,python setlocal noexpandtab + autocmd FileType make setlocal noexpandtab augroup END -" basic -filetype on -syntax on -set encoding=utf-8 -set backspace=indent,eol,start -set nocompatible -set nofoldenable -set background=dark -set nostartofline - " indent set list listchars=tab:▸-,trail:・ set tabstop=2 shiftwidth=2 softtabstop=2 expandtab smarttab