forked from ma6174/vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ma6174
committed
Jun 10, 2013
1 parent
689df21
commit 59774b6
Showing
19 changed files
with
20,975 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() | ||
|
@@ -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") | ||
|
@@ -143,8 +144,6 @@ endfunc | |
autocmd BufNewFile * normal G | ||
|
||
|
||
|
||
|
||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
"键盘命令 | ||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | ||
|
@@ -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' | ||
" ... | ||
|
Submodule JavaScript-Indent
added at
8e9aa0
Submodule Javascript-OmniCompletion-with-YUI-and-j
added at
cdac70
Submodule OOP-javascript-indentation
added at
9c21f4
Submodule jslint.vim
added at
46bb03
Submodule synmark.vim
added at
b31847
Oops, something went wrong.