Skip to content

Commit

Permalink
更新版本8.0, 重大更新, 再次优化细节, 操作更符合直觉
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken committed Oct 2, 2014
1 parent c0b1c58 commit 186dec1
Show file tree
Hide file tree
Showing 10 changed files with 503 additions and 356 deletions.
444 changes: 222 additions & 222 deletions README.md

Large diffs are not rendered by default.

71 changes: 71 additions & 0 deletions UPDATE_LOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
更新日志
================================

注: 8.0后面将开始使用小版本号

## 2014-10-02

version: 8.0

1. 修复YCM不能自动提示Ultisnips代码片段的问题
重大问题, 生产力得到再次提升:)
注意: 自定义snippets, 写错一个, 就会导致YCM不提示所有的snippets

2. tab增强
2.1 新增tab操作快捷键, 详见文档
2.2 增加插件 `jistr/vim-nerdtree-tabs`, 所有tab使用同一个nerdtree
2.3 增加插件 `szw/vim-ctrlspace`, 更强大的buffer/tab操作-切换
由于tab增强带来的影响:
- 去掉了t/T新增一行的快捷键(低频操作, 后续可以考虑配置到其他键位)

3. 去除`minibuffer`插件
配置还留着, 需要的自己解开, 但是ctrlspace其实可以完爆这个功能

4. 优化`scrooloose/nerdcommenter`配置
注解加空格, 以及新增键位

5. 增加插件 `kshenoy/vim-signature`
mark-跳转更加方便, 修复与保存自动去行尾空白功能的冲突

6. 对齐插件变更, 使用`junegunn/vim-easy-align` 替换掉 `godlygeek/tabular`

7. 增加插件 `jelera/vim-javascript-syntax`
更丰富的javascript语法高亮

8. 去除插件 `gorodinskiy/vim-coloresque`
这货有坑, 使用频率低 see issue https://github.com/wklken/k-vim/issues/49

9. 新增自定义snippets
位置 ~/.vim/UltiSnips/

10. 重写README


## 2014-05-07/08

version: 7.0

1.增加文本对象扩展
2.去除 taglist
3.增加 ctrlp 插件 ctrlp-funky用于快速函数搜索跳转
4.切换 powerline为airline


## 2014-03-15

version: 6.0

1.更全的注释
2.更合理文件结构和配置布局
3.分离插件配置到vimrc.bundles
4.更强大的代码补全
5.去掉一些无用信息

## 2013-06-11

version: 5.0

1. 梳理vim配置, 维护到git
2. 书写文档, 截图演示


17 changes: 11 additions & 6 deletions additional_snippets/all.snippets → UltiSnips/all.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,10 @@ snippet ddate
`!v strftime("%B %d, %Y")`
endsnippet



snippet sdate
`!v strftime("%Y.%m.%d")`
endsnippet

snippet trīsVīri
Trīs vīri kādreiz bija hei, hei, hei, hei, hei, Kas mierā dzīvoja ... Bet sveši kungi nāca Un zemi postīja, jā Trīs trīs trīs vīri cēlās kaujai Un droši cīnījās No Daugavas līdz Gaujai Par viņiem brīnījās
endsnippet

snippet blog
Title: ${1}
Slug: ${2}
Expand All @@ -47,3 +41,14 @@ Category: ${4}
Tags: ${5}

endsnippet


snippet /td
/* TODO: ${1}
*/
endsnippet

snippet /mk
/* MARK: ${1}
*/
endsnippet
File renamed without changes.
File renamed without changes.
75 changes: 38 additions & 37 deletions additional_snippets/python.snippets → UltiSnips/python.snippets
Original file line number Diff line number Diff line change
@@ -1,126 +1,118 @@
########### header and bottom
snippet code
snippet code "coding:utf-8"
# coding: utf-8
endsnippet

snippet main
snippet main "if main"
if __name__ == '__main__':
${1}
endsnippet

########### import
snippet im
snippet im "import"
import ${1}
endsnippet

snippet imp "imp"
snippet imp "import"
import ${1:module}
${2}
endsnippet

snippet fim
snippet fim "from . import ."
from ${1} import ${2}
endsnippet

snippet fro "fro"
from ${1:package} import ${2:module}
${3}
endsnippet

snippet from
snippet from "from . import ."
from ${1} import ${2}
endsnippet

########### single char
snippet t
snippet t "True"
True${1}
endsnippet

snippet f
snippet f "False"
False${1}
endsnippet

snippet n
snippet n "None"
None${1}
endsnippet

snippet r
snippet r "return"
return ${1}
endsnippet

snippet s
snippet s "self."
self.${1}
endsnippet

snippet p
snippet p "print"
print ${1}
endsnippet

snippet pr
snippet pr "print "
print "${1}"
endsnippet

snippet pri
snippet pri "print ''"
print '${1}'
endsnippet

snippet prt
snippet prt "print trace"
print "TRACK ================= ${1}", ${2}
endsnippet

snippet rep
snippet rep "repr"
repr(${1})
endsnippet

snippet repr
snippet repr "repr"
repr(${1})
endsnippet

snippet _
snippet _ "__func__"
__${1:init}__${2}
endsnippet

snippet #
snippet # "# xxxx"
# ${1}
endsnippet

snippet a
snippet a "assert"
assert ${1}
endsnippet

snippet isi
snippet isi "isinstance"
isinstance(${1}, ${2})
endsnippet

############# 逻辑控制
snippet el
snippet el "else"
else:
${0:# TODO}
endsnippet

snippet ei
snippet ei "elif"
elif ${1}:
${2}
endsnippet

snippet while
snippet while "while"
while ${1:expression}:
${0:# TODO}
endsnippet

#############
#snippet def "def"
#def ${1:fname}(${2:`!v indent('.') ? 'self' : ''`}):
# """${3:docstring for $1}"""
# ${4:pass}
#endsnippet

snippet defs "defs"
def ${1:fname}(self, ${2:**kwargs}):
"""${3:docstring for $1}"""
${3:pass}
endsnippet
snippet pro

snippet pro "property"
def ${1}():
doc = "${2: The $1 property.}"
def fget(self):
Expand All @@ -138,7 +130,7 @@ def __init__(self, ${1:args}):
${2}
endsnippet

snippet doc
snippet doc "docstring"
"""
@Author: ${1:`wklken`}
@Email: ${2:`wklken@yeah.net`}
Expand All @@ -147,11 +139,20 @@ snippet doc
"""
endsnippet

snippet rai
snippet rai "raise"
raise ${1}
endsnippet

snippet tr
snippet tr "traceback"
import traceback; traceback.print_exc()
endsnippet
#############

snippet fin "[i for i in l]"
[${1:item} for ${2:$1} in ${3}]
endsnippet

snippet finif "[i for i in l if i]"
[${1:item} for ${2:$1} in ${3} if ${4:$1}]
endsnippet

File renamed without changes.
19 changes: 0 additions & 19 deletions enable_others.sh

This file was deleted.

Loading

0 comments on commit 186dec1

Please sign in to comment.