reorder (fix nocompatible), remove noexpandtab for java/python

This commit is contained in:
sup39 2022-07-04 04:15:59 +09:00
parent e0dcc03d78
commit 28dc82e92a

24
vimrc
View file

@ -1,4 +1,12 @@
let sfile = expand('<sfile>')
" 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 <ESC>
nnoremap <leader>C :%y*<CR>
" tab edit
nnoremap <leader>e :tabe
execute 'nnoremap <leader>vv :tabe '.sfile.'<CR>'
execute 'nnoremap <leader>vv :tabe '.expand('<sfile>').'<CR>'
nnoremap <leader>V :tabe $MYVIMRC<CR>
" 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