-
Notifications
You must be signed in to change notification settings - Fork 0
/
normal.vim
70 lines (60 loc) · 1.63 KB
/
normal.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
set nowritebackup
set nobackup
set noswapfile
set noerrorbells
set backspace=indent,eol,start
set ambiwidth=single
set wildmenu
set encoding=utf-8
set ignorecase
set smartcase
set wrapscan
set incsearch
set hlsearch
set showmatch matchtime=1
set laststatus=2
set showcmd
set list
set listchars=tab:^\ ,trail:~,extends:›
set history=10000
set expandtab
set shiftwidth=2
set softtabstop=2
set tabstop=2
set showmatch
set smartindent
set title
set number
set virtualedit=onemore
set clipboard+=unnamed,unnamedplus
set nrformats=
set whichwrap=b,s,h,l,<,>,[,],~
set cursorline
set foldmethod=marker
set tags=vim.tags
set wildignore=*/.git/*,*/node_modules/*,vim.tags
set fillchars+=vert:\
"" scss保存時にコンパイル
"function! SassCompile()
" if expand("%:r")[0] != '_'
" :!sass %:`echo %|sed 's/scss/css/g'`
" endif
"endfunction
"autocmd! BufWritePost *.scss :call SassCompile()
"
""補完 有効化
"autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
"autocmd FileType css set omnifunc=csscomplete#CompleteCSS
"autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
"autocmd FileType php set omnifunc=xmlcomplete#CompleteTags, dictionary=~/.config/nvim/plug/dict/php.dict
"
"" HTML/XML閉じタグ自動補完
"augroup MyXML
" autocmd!
" autocmd Filetype xml inoremap <buffer> </ </<C-x><C-o>
" autocmd Filetype html inoremap <buffer> </ </<C-x><C-o>
" autocmd Filetype php inoremap <buffer> </ </<C-x><C-o>
"augroup END
" 拡張子が省略されたモジュールでgfを利用可能に
autocmd FileType javascript,javascriptreact,typescript,typescriptreact set suffixesadd+=js,ts,jsx,tsx
filetype indent on