Skip to content

Commit

Permalink
v0.0.3 release
Browse files Browse the repository at this point in the history
1. fix the bug that use ag search we will search from the root folder.
2. add node_modules to the ignore search folder
3. improve the markdown editting feeling.
  • Loading branch information
D0n9X1n committed Apr 19, 2017
1 parent 48a0fc7 commit 4a5ec8d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 50 deletions.
7 changes: 4 additions & 3 deletions vimrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"==========================================
" Thanks: k-vim Project
" Author: mike
" Version: 0.0.2
" Version: 0.0.3
" Email: [email protected]
" ReadMe: README.md
" Sections:
Expand Down Expand Up @@ -478,8 +478,9 @@ nmap <silent> <leader>sv :so $MYVIMRC<CR>
"==========================================

" 具体编辑文件类型的一般设置,比如不要 tab 等
autocmd FileType python set tabstop=4 shiftwidth=4 expandtab ai
autocmd FileType ruby set tabstop=2 shiftwidth=2 softtabstop=2 expandtab ai
autocmd FileType *.* set tabstop=4 shiftwidth=4 expandtab ai
autocmd FileType .* set tabstop=4 shiftwidth=4 expandtab ai
autocmd FileType * set tabstop=4 shiftwidth=4 expandtab ai
autocmd BufRead,BufNewFile *.md,*.mkd,*.markdown set filetype=markdown.mkd
autocmd BufRead,BufNewFile *.part set filetype=html

Expand Down
61 changes: 14 additions & 47 deletions vimrc.bundles
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ Plug 'kana/vim-textobj-entire'
Plug 'kana/vim-textobj-indent'

" markdown 增强
Plug 'gabrielelana/vim-markdown'
Plug 'joker1007/vim-markdown-quote-syntax'
Plug 'godlygeek/tabular'
Plug 'plasticboy/vim-markdown'

" 1. vim a.go
" 2. :GoInstallBinaries
Expand Down Expand Up @@ -406,7 +406,7 @@ call plug#end()
let g:ctrlp_cmd = 'CtrlP'
map <leader>f :CtrlPMRU<CR>
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn|rvm)$',
\ 'dir': '\v[\/](\.(git|hg|svn|rvm|)|node_modules)$',
\ 'file': '\v\.(exe|so|dll|zip|tar|tar.gz|pyc)$',
\ }
let g:ctrlp_working_path_mode=0
Expand All @@ -416,12 +416,12 @@ call plug#end()
let g:ctrlp_mruf_max=500
let g:ctrlp_follow_symlinks=1
" 如果安装了ag, 使用ag
if executable('ag')
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
" ag is fast enough that CtrlP doesn't need to cache
let g:ctrlp_use_caching = 0
endif
" if executable('ag')
" " Use ag in CtrlP for listing files. Lightning fast and respects .gitignore
" let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
" " ag is fast enough that CtrlP doesn't need to cache
" let g:ctrlp_use_caching = 0
" endif

" ctrlpfunky
" ctrlp插件1 - 不用ctag进行函数快速跳转
Expand Down Expand Up @@ -519,8 +519,8 @@ call plug#end()
let g:nerdtree_tabs_synchronize_focus=1
" 是否自动开启nerdtree
" thank to @ListenerRi, see https://github.com/wklken/k-vim/issues/165
let g:nerdtree_tabs_open_on_console_startup=1
let g:nerdtree_tabs_open_on_gui_startup=1
let g:nerdtree_tabs_open_on_console_startup=0
let g:nerdtree_tabs_open_on_gui_startup=0
" }}}

" Vim Workspace Controller
Expand Down Expand Up @@ -605,6 +605,7 @@ call plug#end()
let g:vim_markdown_folding_disabled = 0
let g:vim_markdown_conceal = 0
let g:markdown_enable_spell_checking = 0
let g:vim_markdown_new_list_item_indent = 4
" }}}

" javascript {{{
Expand All @@ -615,8 +616,8 @@ call plug#end()
" }}}

" ag.vim {{{
let g:ag_working_path_mode="r"
map <leader>s :Ag
" let g:ag_working_path_mode="r"
map <leader>s :Ag
" }}}

" indentLine.vim {{{
Expand Down Expand Up @@ -652,38 +653,4 @@ call plug#end()
" markdown-preview.vim {{{
map <leader>m :MarkdownPreview github<CR>
" }}}

" markdown_quote_syntax {{{
" Add syntax rule
let g:markdown_quote_syntax_filetypes = {
\ "javascript" : {
\ "start" : "javascript",
\},
\ "css" : {
\ "start" : "\\%(css\\|scss\\)",
\},
\ "ruby" : {
\ "start" : "ruby",
\},
\ "cpp" : {
\ "start" : "cpp",
\},
\}

" 'start' and 'end' is vim regular expression.
" need to care backslash.

" Each codeblock is defined as:
"
" 'codeblock[0].filetype.codeblock[1]<code lines>codeblock[2]'
"
" Above example is for the liquid highlight tag. (It is already included by default.)
" {% highlight vim %}
" any codes
" ...
" {% endhighlight %}

" Add other file types in which quote syntax should be on.
let g:markdown_quote_syntax_on_filetypes = ['text']
" }}}
"------------------------------------------- end of configs --------------------------------------------

0 comments on commit 4a5ec8d

Please sign in to comment.