免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3292 | 回复: 3
打印 上一主题 下一主题

vim-base-configuration && git-sendemail configuration [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-06 12:55 |只看该作者 |倒序浏览
本帖最后由 hjlfd 于 2011-12-06 12:58 编辑

vim-base-configuration
  1. vim-base-configuration for C-programming
  2. ________________________

  3. These scripts tested in:
  4. os:
  5.         ubuntu 11.04

  6. vim version:
  7.         vim 7.3.35  
  8. ________________________


  9. Please go to http://www.vim.org/scripts/index.php to get more imformations about the following scripts.:)

  10. Install details:

  11.         Step1. Download script from http://www.vim.org/scripts/script.php.

  12.         Step2. Install script.
  13.                 if (FileName == ScriptName.zip)
  14.                         unzip /path/of/script.zip -d ~/.vim
  15.                 elseif (FileName == ScriptName.vim)
  16.                         cp -v ScriptName.vim  ~/.vim/plugin/
  17.                 elseif (FileName == ScriptName.vba)
  18.                         vi ScriptName.vba
  19.                         :so %<cr>

  20.         Step3. add the configration into your .vimrc file.
  21. ___________________________________________________________________________________________

  22.         Final. start vim and run  ':helptags ~/.vim/doc' (when all installation complete)
  23. ___________________________________________________________________________________________
  24. scripts:

  25.         1. taglist (<unzip>) / tagbar (<:so %>)
  26.                 "tagbar
  27.                 configuration:
  28.                         nmap <silent> <F4> :TagbarToggle<CR>
  29.                         let g:tagbar_ctags_bin='/usr/bin/ctags'
  30.                         let g:tagbar_width=30

  31.                 "ctags
  32.                 configuration:
  33.                         let Tlist_Ctags_Cmd='/usr/bin/ctags'
  34.                         let Tlist_Show_One_File=1
  35.                         let Tlist_Use_Left_Window=1

  36.         2. ctrl-p (<unzip>)
  37.                 configuration:
  38.                         let g:ctrlp_user_command = 'find %s -type f'

  39.         3. snipMate (<unzip>)

  40.         4. vim-fuzzyfinder && vim-l9(<unzip>)
  41.                 configuration:
  42.                         nmap <silent> <F7> :FufTag<CR>

  43.         5. supertab (<unzip>)

  44.         6. a.vim (<cp>)

  45.         7. autopreview.vim (<cp>)
  46.                 configuration:
  47.                         nnoremap <F9> :AutoPreviewToggle<CR>

  48.         8. minibufexpl.vim (cp>)
  49.                 configuration:
  50.                         let g:miniBufExplMapWindowNavVim = 1
  51.                         let g:miniBufExplMapWindowNavArrows = 1
  52.                         let g:miniBufExplMapCTabSwitchBufs = 1
  53.                         let g:miniBufExplModSelTarget = 1

  54.         9. winmanager && taglist
  55.                 configuration:
  56.                         let g:winManagerWindowLayout='FileExplorer|TagList'
  57.                         nmap wm :WMToggle<cr>

  58.         10. lookupfile-1.8 && genutils-2.5 (<unzip>)
  59.                 configuration:
  60.                         let g:LookupFile_MinPatLength = 2
  61.                         let g:LookupFile_PreserveLastPattern = 0
  62.                         let g:LookupFile_PreservePatternHistory = 1
  63.                         let g:LookupFile_AlwaysAcceptFirst = 1
  64.                         let g:LookupFile_AllowNewFiles = 0
  65.                         if filereadable("./filenametags")
  66.                         let g:LookupFile_TagExpr = '"./filenametags"'
  67.                         endif
复制代码
git-sendemail configuration
  1. //.msmtprc
  2. #default
  3. defaults
  4. tls on
  5. auth on
  6. tls_certcheck off
  7. logfile ~/.msmtp.log

  8. # account
  9. account MaxWit
  10. host smtp.live.com
  11. user yourname@maxwit.com
  12. from yourname@maxwit.com
  13. password your password
  14. port 587

  15. # default account
  16. account default: MaxWit
复制代码
  1. //git config
  2. git config --global sendemail.smtpserver "/usr/bin/msmtp"
  3. git config --global sendemail.confirm "auto"
复制代码

论坛徽章:
0
2 [报告]
发表于 2011-12-06 13:01 |只看该作者

build-filenametags.sh

  1. #!/bin/sh
  2. # generate tag file for lookupfile plugin
  3. echo -e "!_TAG_FILE_SORTED\t2\t/2=foldcase/" > filenametags
  4. find . -path ./.git -prune -o -not -regex '.*\.\(png\|gif\)' -type f -printf "%f\t%p\t1\n" | \
  5.     sort -f >> filenametags
复制代码

论坛徽章:
0
3 [报告]
发表于 2011-12-06 13:23 |只看该作者
..................

forgot something important...i'm guilty...

AutoPreview


Ctrl-P


LookUpFile


MiniBuff


TagBar


TagList


Vim-Fuzzy-Finder


WinManager

autopreview.png (280.34 KB, 下载次数: 26)

autopreview.png

Ctrl-P.png (238.49 KB, 下载次数: 25)

Ctrl-P.png

lookupfile.png (220.28 KB, 下载次数: 22)

lookupfile.png

minibuff.png (220.64 KB, 下载次数: 24)

minibuff.png

Tagbar.png (315.07 KB, 下载次数: 27)

Tagbar.png

Taglist.png (291.52 KB, 下载次数: 24)

Taglist.png

vim-fuzzy-finder.png (261.45 KB, 下载次数: 25)

vim-fuzzy-finder.png

winmanager.png (268.68 KB, 下载次数: 29)

winmanager.png

论坛徽章:
0
4 [报告]
发表于 2011-12-10 15:28 |只看该作者


embed vim into eclipse:work with vim && java editor at the same time.

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP