leeiio avatar leeiio committed e8bae7a

增加空格fold以及num+<leader>+<space>切换buffer

Comments (0)

Files changed (3)

 v_a%	matchit.txt	/*v_a%*
 v_g%	matchit.txt	/*v_g%*
 vim_complete	neocomplcache.txt	/*vim_complete*
+vimtips.txt	../plugin/vimtips/vimtips.txt	/*vimtips.txt*
 vimwiki	vimwiki.txt	/*vimwiki*
 vimwiki-calendar	vimwiki.txt	/*vimwiki-calendar*
 vimwiki-changelog	vimwiki.txt	/*vimwiki-changelog*
   silent execute 's/=.*/=' a:value
 endfun
 
-let s:prevDate = 20101014
-let s:prevLine = 3
+let s:prevDate = 20101015
+let s:prevLine = 22
 let s:vimtipsDate = 20101013
 
 let &l:cpo = s:save_cpo
 nmap <C-k>   :tabclose<cr>
 nmap <C-Tab> :tabnext<cr>
 
+"切换buffer
+nmap bn :bn<cr>
+nmap bp :bp<cr>
+
 " 插件快捷键
 nmap <C-d> :NERDTree<cr>
 nmap <C-e> :BufExplorer<cr>
 " 打开日历快捷键
 map ca :Calendar<cr>
 
+"Use spacebar toggle fold
+nnoremap <space> @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo')<CR>
+
 "关闭自动检测编码用F6控制(fencview.vim)
 let g:fencview_autodetect=0
 map <F6> :FencView<cr>
 
 map <leader>jt  <Esc>:%!json_xs -f json -t json-pretty<CR>
 
+" 搭配minibuffer切换buffer
+noremap <leader><space> <C-^>
+
 " =====================
 " 插件配置
 " =====================
     let g:calendar_wruler = '日 一 二 三 四 五 六'
     let g:calendar_navi_label = '上月,本月,下月'
     let g:calendar_list = [
+        \ {'name': 'Works[Doit.im]', 'path': '~/diary/works/Doit.im', 'ext': 'wiki'},
         \ {'name': 'Works', 'path': '~/diary/works', 'ext': 'task'},
         \ {'name': 'Tasks', 'path': '~/diary/tasks', 'ext': 'task'},
         \ {'name': 'Diary', 'path': '~/diary/diary', 'ext': 'diary'},
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.