-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfiletype.vim
More file actions
executable file
·30 lines (27 loc) · 856 Bytes
/
filetype.vim
File metadata and controls
executable file
·30 lines (27 loc) · 856 Bytes
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
let g:dotvim=".vim"
augroup javaCmds
au!
au BufNewFile *.java execute "normal i/**\<CR>\<CR>@author Luke Senseney\<CR>@version 1.0"
\strftime("%b %d, %y")."\<CR>\<BS>*/\<CR>public class" expand("%:t:r") "{\r\r}\<Esc>2ggA"
augroup END
augroup programming
au!
exe "au FileType verilog, go, arduino,scad,java,c,cpp,python,javascript so $HOME/" . g:dotvim . "/program.vim"
augroup END
augroup text
au!
exe "au FileType rst setlocal spell"
augroup END
augroup templates
au!
au BufNewFile *.vue 0r ~/.vim/templates/skeleton.vue
au BufNewFile *.vue %s/\${fileName}/\=expand('%:t:r')/
augroup END
"augroup programming
" au!
" exe "au FileType java,c,cpp,python so $HOME/" . g:dotvim . "/program.vim"
"augroup END
"augroup general
" au!
" au FileType tex so $HOME/.vim/filetype/latex.vim
"augroup END