reorder (fix nocompatible), remove noexpandtab for java/python
This commit is contained in:
parent
e0dcc03d78
commit
28dc82e92a
1 changed files with 11 additions and 13 deletions
24
vimrc
24
vimrc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue