skeletons
This commit is contained in:
parent
9b21ae50b1
commit
5a6e686ab3
2 changed files with 24 additions and 0 deletions
|
|
@ -48,6 +48,8 @@ au BufRead,BufNewFile *.go set filetype=go
|
|||
au FileType cpp let b:delimitMate_matchpairs = "(:),[:],{:}"
|
||||
|
||||
autocmd FileType vue syntax sync fromstart
|
||||
au Filetype vue let b:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '`':'`', '<':'>'}
|
||||
au Filetype html let b:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '`':'`', '<':'>'}
|
||||
|
||||
"Settings per filetype
|
||||
augroup python
|
||||
|
|
@ -106,3 +108,6 @@ autocmd FileType hy let b:auto_trim_whitespace=1
|
|||
autocmd FileType idris let b:auto_trim_whitespace=1
|
||||
autocmd FileType java let b:auto_trim_whitespace=1
|
||||
|
||||
augroup templates
|
||||
autocmd BufNewFile *.vue 0r ~/.vim/skeletons/skeleton.vue
|
||||
augroup END
|
||||
|
|
|
|||
19
.vim/skeletons/skeleton.vue
Normal file
19
.vim/skeletons/skeleton.vue
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
<template>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
//import header from './header.vue'
|
||||
|
||||
export default {
|
||||
name: 'components',
|
||||
data () {
|
||||
return {
|
||||
msg: 'Hello World'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue