Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 59774b6

Browse files
author
ma6174
committed
add javascript plugin
1 parent 689df21 commit 59774b6

19 files changed

+20975
-10
lines changed

‎.vimrc‎

100755100644
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ set selection=inclusive
99
set wildmenu
1010
set mousemodel=popup
1111

12+
au FileType php setlocal dict+=~/.vim/dict/php_funclist.dict
13+
au FileType css setlocal dict+=~/.vim/dict/css.dict
14+
au FileType c setlocal dict+=~/.vim/dict/c.dict
15+
au FileType cpp setlocal dict+=~/.vim/dict/cpp.dict
16+
au FileType scale setlocal dict+=~/.vim/dict/scale.dict
17+
au FileType javascript setlocal dict+=~/.vim/dict/javascript.dict
18+
1219
"
1320
"syntastic相关
1421
execute pathogen#infect()
@@ -102,14 +109,8 @@ autocmd BufNewFile *.cpp,*.[ch],*.sh,*.java,*.py exec ":call SetTitle()"
102109
func SetTitle()
103110
"如果文件类型为.sh文件
104111
if &filetype == 'sh'
105-
call setline(1,"\#########################################################################")
106-
call append(line("."), "\# File Name: ".expand("%"))
107-
call append(line(".")+1, "\# Author: ma6174")
108-
call append(line(".")+2, "\# mail: ma6174@163.com")
109-
call append(line(".")+3, "\# Created Time: ".strftime("%c"))
110-
call append(line(".")+4, "\#########################################################################")
111-
call append(line(".")+5, "\#!/bin/bash")
112-
call append(line(".")+6, "")
112+
call setline(1,"\#!/bin/bash")
113+
call append(line("."), "")
113114
elseif &filetype == 'python'
114115
call setline(1,"#!/usr/bin/env python")
115116
call append(line("."),"# coding=utf-8")
@@ -143,8 +144,6 @@ endfunc
143144
autocmd BufNewFile * normal G
144145

145146

146-
147-
148147
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
149148
"键盘命令
150149
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -434,8 +433,13 @@ Bundle 'python-imports.vim'
434433
Bundle 'CaptureClipboard'
435434
Bundle 'ctrlp-modified.vim'
436435
Bundle 'last_edit_marker.vim'
436+
Bundle 'synmark.vim'
437437
"Bundle 'Python-mode-klen'
438438
Bundle 'SQLComplete.vim'
439+
Bundle 'Javascript-OmniCompletion-with-YUI-and-j'
440+
Bundle 'JavaScript-Indent'
441+
Bundle 'Better-Javascript-Indentation'
442+
Bundle 'jslint.vim'
439443
"Bundle 'FredKSchott/CoVim'
440444
"Bundle 'djangojump'
441445
" ...

‎bundle/JavaScript-Indent‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 8e9aa08189d420d9384f38a11ea89a0bff846e6d
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit cdac706b0c880c9236b1c4332c36a4d1c37d3b67

‎bundle/OOP-javascript-indentation‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 9c21f474da048044719f89d1853236f4c5d92773

‎bundle/jslint.vim‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 46bb03c36b217da69fd934fdde16054709092b08

‎bundle/synmark.vim‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit b31847ad608b50eaaf774854305dd0c37f892a2b

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /