Skip to content

Commit

Permalink
add javascript plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ma6174 committed Jun 10, 2013
1 parent 689df21 commit 59774b6
Show file tree
Hide file tree
Showing 19 changed files with 20,975 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .vimrc
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ set selection=inclusive
set wildmenu
set mousemodel=popup

au FileType php setlocal dict+=~/.vim/dict/php_funclist.dict
au FileType css setlocal dict+=~/.vim/dict/css.dict
au FileType c setlocal dict+=~/.vim/dict/c.dict
au FileType cpp setlocal dict+=~/.vim/dict/cpp.dict
au FileType scale setlocal dict+=~/.vim/dict/scale.dict
au FileType javascript setlocal dict+=~/.vim/dict/javascript.dict

"
"syntastic相关
execute pathogen#infect()
Expand Down Expand Up @@ -102,14 +109,8 @@ autocmd BufNewFile *.cpp,*.[ch],*.sh,*.java,*.py exec ":call SetTitle()"
func SetTitle()
"如果文件类型为.sh文件
if &filetype == 'sh'
call setline(1,"\#########################################################################")
call append(line("."), "\# File Name: ".expand("%"))
call append(line(".")+1, "\# Author: ma6174")
call append(line(".")+2, "\# mail: [email protected]")
call append(line(".")+3, "\# Created Time: ".strftime("%c"))
call append(line(".")+4, "\#########################################################################")
call append(line(".")+5, "\#!/bin/bash")
call append(line(".")+6, "")
call setline(1,"\#!/bin/bash")
call append(line("."), "")
elseif &filetype == 'python'
call setline(1,"#!/usr/bin/env python")
call append(line("."),"# coding=utf-8")
Expand Down Expand Up @@ -143,8 +144,6 @@ endfunc
autocmd BufNewFile * normal G




""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"键盘命令
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Expand Down Expand Up @@ -434,8 +433,13 @@ Bundle 'python-imports.vim'
Bundle 'CaptureClipboard'
Bundle 'ctrlp-modified.vim'
Bundle 'last_edit_marker.vim'
Bundle 'synmark.vim'
"Bundle 'Python-mode-klen'
Bundle 'SQLComplete.vim'
Bundle 'Javascript-OmniCompletion-with-YUI-and-j'
Bundle 'JavaScript-Indent'
Bundle 'Better-Javascript-Indentation'
Bundle 'jslint.vim'
"Bundle 'FredKSchott/CoVim'
"Bundle 'djangojump'
" ...
Expand Down
1 change: 1 addition & 0 deletions bundle/JavaScript-Indent
Submodule JavaScript-Indent added at 8e9aa0
1 change: 1 addition & 0 deletions bundle/Javascript-OmniCompletion-with-YUI-and-j
Submodule Javascript-OmniCompletion-with-YUI-and-j added at cdac70
1 change: 1 addition & 0 deletions bundle/OOP-javascript-indentation
Submodule OOP-javascript-indentation added at 9c21f4
1 change: 1 addition & 0 deletions bundle/jslint.vim
Submodule jslint.vim added at 46bb03
1 change: 1 addition & 0 deletions bundle/synmark.vim
Submodule synmark.vim added at b31847
Loading

0 comments on commit 59774b6

Please sign in to comment.