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 fe0e188

Browse files
author
ma6174
committed
增加快速注释插件
1 parent b179571 commit fe0e188

File tree

10 files changed

+77
-16
lines changed

10 files changed

+77
-16
lines changed

‎.vimrc‎

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ au FileType c setlocal dict+=~/.vim/dict/c.dict
1616
au FileType cpp setlocal dict+=~/.vim/dict/cpp.dict
1717
au FileType scale setlocal dict+=~/.vim/dict/scale.dict
1818
au FileType javascript setlocal dict+=~/.vim/dict/javascript.dict
19+
au FileType html setlocal dict+=~/.vim/dict/javascript.dict
20+
au FileType html setlocal dict+=~/.vim/dict/css.dict
1921

2022
"
2123
"syntastic相关
@@ -62,7 +64,7 @@ set tabstop=4
6264
set softtabstop=4
6365
set shiftwidth=4
6466
" 不要用空格代替制表符
65-
set noexpandtab
67+
set expandtab
6668
" 在行和段开始处使用制表符
6769
set smarttab
6870
" 显示行号
@@ -96,6 +98,8 @@ au BufRead,BufNewFile *.{js} set filetype=javascript
9698
"rkdown to HTML
9799
nmap md :!~/.vim/markdown.pl % > %.html <CR><CR>
98100
nmap fi :!firefox %.html & <CR><CR>
101+
nmap \ \cc
102+
vmap \ \cc
99103
100104
"将tab替换为空格
101105
nmap tt :%s/\t/ /g<CR>
@@ -169,6 +173,8 @@ set mouse=v
169173
nnoremap <F2> :g/^\s*$/d<CR>
170174
"比较文件
171175
nnoremap <C-F2> :vert diffsplit
176+
"nnoremap <Leader>fu :CtrlPFunky<Cr>
177+
"nnoremap <C-n> :CtrlPFunky<Cr>
172178
"列出当前目录文件
173179
map <F3> :NERDTree<CR>
174180
"打开树状文件目录
@@ -264,13 +270,13 @@ autocmd FileType c,cpp map <buffer> <leader><space> :w<cr>:make<cr>
264270
"代码补全
265271
set completeopt=preview,menu
266272
"允许插件
267-
filetype plugin on
273+
"filetype plugin on
268274
"共享剪贴板
269275
"set clipboard+=unnamed
270276
"自动保存
271277
set autowrite
272-
set ruler " 打开状态栏标尺
273-
set cursorline " 突出显示当前行
278+
"set ruler " 打开状态栏标尺
279+
"set cursorline " 突出显示当前行
274280
set magic " 设置魔术
275281
set guioptions-=T " 隐藏工具栏
276282
set guioptions-=m " 隐藏菜单栏
@@ -398,12 +404,9 @@ let g:miniBufExplModSelTarget = 1
398404

399405

400406
set iskeyword+=.
401-
set fileencodings=utf-8
402407
set termencoding=utf-8
403408
set encoding=utf8
404-
set fileencoding=utf8
405409
set fileencodings=utf8,ucs-bom,gbk,cp936,gb2312,gb18030
406-
let &termencoding=&encoding
407410

408411
autocmd FileType python set omnifunc=pythoncomplete#Complete
409412

@@ -439,12 +442,19 @@ Bundle 'synmark.vim'
439442
"Bundle 'Python-mode-klen'
440443
Bundle 'SQLComplete.vim'
441444
Bundle 'Javascript-OmniCompletion-with-YUI-and-j'
442-
Bundle 'JavaScript-Indent'
443-
Bundle 'Better-Javascript-Indentation'
445+
"Bundle 'JavaScript-Indent'
446+
"Bundle 'Better-Javascript-Indentation'
444447
Bundle 'jslint.vim'
445448
Bundle "pangloss/vim-javascript"
446449
Bundle 'Vim-Script-Updater'
450+
Bundle 'ctrlp.vim'
451+
Bundle 'tacahiroy/ctrlp-funky'
447452
Bundle 'jsbeautify'
453+
Bundle 'The-NERD-Commenter'
454+
"django
455+
Bundle 'django_templates.vim'
456+
Bundle 'Django-Projects'
457+
448458
"Bundle 'FredKSchott/CoVim'
449459
"Bundle 'djangojump'
450460
" ...
@@ -462,3 +472,15 @@ filetype plugin indent on " required!
462472
"
463473
" see :h vundle for more details or wiki for FAQ
464474
" NOTE: comments after Bundle command are not allowed..
475+
"
476+
"
477+
"ctrlp设置
478+
"
479+
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.pyc,*.png,*.jpg,*.gif " MacOSX/Linux
480+
set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe,*.pyc,*.png,*.jpg,*.gif " Windows
481+
482+
let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$'
483+
let g:ctrlp_custom_ignore = '\v\.(exe|so|dll)$'
484+
let g:ctrlp_extensions = ['funky']
485+
486+
let NERDTreeIgnore=['\.pyc']

‎bundle/Django-Projects‎

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

‎bundle/The-NERD-Commenter‎

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

‎bundle/ctrlp-funky‎

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

‎bundle/ctrlp.vim‎

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

‎bundle/django_templates.vim‎

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

‎dict/cpp.dict‎

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,46 @@
1-
2-
<!-- saved from url=(0071)https://raw.github.com/tyru/dotfiles/master/dotfiles/.vim/dict/cpp.dict -->
3-
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style>@-moz-keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}@-webkit-keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}@-o-keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}@keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}embed,object{animation-duration:.001s;-ms-animation-duration:.001s;-moz-animation-duration:.001s;-webkit-animation-duration:.001s;-o-animation-duration:.001s;animation-name:nodeInserted;-ms-animation-name:nodeInserted;-moz-animation-name:nodeInserted;-webkit-animation-name:nodeInserted;-o-animation-name:nodeInserted;}</style><style type="text/css"></style><script></script><script id="hp_same_"></script><script id="hp_done_"></script></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">input_iterator_tag
1+
auto
2+
bool
3+
break
4+
case
5+
char
6+
const
7+
continue
8+
default
9+
do
10+
double
11+
else
12+
enum
13+
extern
14+
float
15+
for
16+
if
17+
inline
18+
int
19+
long
20+
register
21+
restrict
22+
return
23+
short
24+
signed
25+
size_t
26+
sizeof
27+
static
28+
struct
29+
switch
30+
typedef
31+
union
32+
unsigned
33+
void
34+
volatile
35+
wchar_t
36+
while
37+
main
38+
input_iterator_tag
439
output_iterator_tag
540
forward_iterator_tag
641
bidirectional_iterator_tag
742
random_access_iterator_tag
8-
943
iterator_traits
10-
1144
advance
1245
algorithm
1346
allocator
@@ -215,4 +248,3 @@ width
215248
write
216249
xor
217250
xor_eq
218-
</pre></body></html>

‎dict/javascript.dict‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ DOMMouseScroll
66
Date
77
Error
88
EvalError
9-
Function
109
Image
1110
Infinity
1211
LN10

‎plugin/libvimim.dll‎

-55.7 KB
Binary file not shown.

‎tips.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@
2424
- 当然也可以使用万能的`F5`键来一键转换并打开预览
2525
- 如果打开过程中屏幕出现一些混乱信息,可以按`Ctrl + l`来恢复
2626

27+
### 快速注释
28+
29+
-` \ ` 可以根据文件类型自动注释

0 commit comments

Comments
(0)

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