VIMRC

sed -i 's/ //g' vimrc


  1. " .vimrc - Vim configuration file.
  2. "
  3. " Copyright (c) 2010 Jeffy Du. All Rights Reserved.
  4. "
  5. " Maintainer: Jeffy Du
  6. " Created: 2010-01-01
  7. " LastChange: 2010-04-22

  8. " GENERAL SETTINGS: {{{1
  9. " To use VIM settings, out of VI compatible mode.
  10. set nocompatible
  11. " Enable file type detection.
  12. filetype plugin indent on
  13. " Syntax highlighting.
  14. syntax on
  15. " Setting colorscheme
  16. color desert
  17. " Other settings.
  18. set autoindent
  19. set autoread
  20. set autowrite
  21. set background=dark
  22. set backspace=indent,eol,start
  23. set nobackup
  24. set cindent
  25. set cinoptions=:0
  26. set cursorline
  27. set completeopt=longest,menuone
  28. set noexpandtab
  29. set fileencodings=cp936,utf-8,gb2312,gbk,gb18030
  30. set fileformat=unix
  31. set foldenable
  32. set foldmethod=marker
  33. set guioptions-=T
  34. set guioptions-=m
  35. set guioptions-=r
  36. set guioptions-=l
  37. set helpheight=10
  38. set helplang=cn
  39. set hidden
  40. set history=100
  41. set hlsearch
  42. set ignorecase
  43. set incsearch
  44. set laststatus=2
  45. "set mouse=a
  46. set number
  47. set pumheight=10
  48. set ruler
  49. set scrolloff=5
  50. set shiftwidth=4
  51. set showcmd
  52. set smartindent
  53. set smartcase
  54. set tabstop=4
  55. set termencoding=utf-8
  56. set textwidth=80
  57. set whichwrap=h,l
  58. set wildignore=*.bak,*.o,*.e,*~
  59. set wildmenu
  60. set wildmode=list:longest,full
  61. set wrap

  62. " AUTO COMMANDS: {{{1
  63. " auto expand tab to blanks
  64. "autocmd FileType c,cpp set expandtab
  65. " Restore the last quit position when open file.
  66. autocmd BufReadPost *
  67.     \ if line("'\'") > 0 && line("'\"") <= line("$") |
  68.     \ exe "normal g'\"" |
  69.     \ endif

  70. " SHORTCUT SETTINGS: {{{1
  71. " Set mapleader
  72. let mapleader=","
  73. " Space to command mode.
  74. nnoremap :
  75. vnoremap :
  76. " Switching between buffers.
  77. nnoremap <C-h> <C-W>h
  78. nnoremap <C-j> <C-W>j
  79. nnoremap <C-k> <C-W>k
  80. nnoremap <C-l> <C-W>l
  81. inoremap <C-h> <Esc><C-W>h
  82. inoremap <C-j> <Esc><C-W>j
  83. inoremap <C-k> <Esc><C-W>k
  84. inoremap <C-l> <Esc><C-W>l
  85. " "cd" to change to open directory.
  86. let OpenDir=system("pwd")
  87. nmap cd :exe 'cd ' . OpenDir :pwd

  88. function AddTitle()
  89.     call setline(1,"/**-----------------------------------------------------------------------------")
  90.     call append (1," * @file " . expand("%"))
  91.     call append (2," *" )
  92.     call append (3," * @author xiekunming@centerm.com.cn" )
  93.     call append (4," *" )
  94.     call append (5," * @date " . strftime("%Y-%m-%d"))
  95.     call append (6," *" )
  96.     call append (7," * @brief " )
  97.     call append (8," *" )
  98.     call append (9," * @version " )
  99.     call append (10," *" )
  100.     call append (11," *----------------------------------------------------------------------------*/")
  101. endf
  102. map title :call AddTitle()


function AddTitlePrivate()
    call setline(1,"/**-----------------------------------------------------------------------------")
    call append (1," * @file " . expand("%"))
    call append (2," *" )
    call append (3," * @author ckelsel@hotmail.com" )
    call append (4," *" )
    call append (5," * @date " . strftime("%Y-%m-%d"))
    call append (6," *" )
    call append (7," * @brief " )
    call append (8," *" )
    call append (9," * @version " )
    call append (10," *" )
    call append (11," *----------------------------------------------------------------------------*/")
endf
map mytitle :call AddTitlePrivate()



  1. function AddCdemo()
  2.     call setline(1,"#include <stdio.h>")
  3.     call append (1,"#include <stdlib.h>")
  4.     call append (2,"#include <string.h>")
  5.     call append (3,"")
  6.     call append (4,"int main(int argc, char **argv)")
  7.     call append (5,"{")
  8.     call append (6," return 0;")
  9.     call append (7,"}")
  10. endf
  11. map cdemo :call AddCdemo()

  12. function AddCxxdemo()
  13.     call setline(2,"#include <iostream>")
  14.     call append (2,"using namespace std;")
  15.     call append (3,"")
  16.     call append (4,"int main(int argc, char **argv)")
  17.     call append (5,"{")
  18.     call append (6," return 0;")
  19.     call append (7,"}")
  20. endf
  21. map cxxdemo :call AddCxxdemo()

  22. function AddDebugNotice()
  23. endf

  24. function AddSvnLog()
  25.     call setline(1,"Author: xiekm")
  26.     call append (1,"Description: ")
  27.     call append (2,"1. ")
  28. endf
  29. map svnlog :call AddSvnLog()


  30. " PLUGIN SETTINGS: {{{1
  31. " taglist.vim
  32. let g:Tlist_Auto_Update=1
  33. let g:Tlist_Process_File_Always=1
  34. let g:Tlist_Exit_OnlyWindow=1
  35. let g:Tlist_Show_One_File=1
  36. let g:Tlist_WinWidth=25
  37. let g:Tlist_Enable_Fold_Column=0
  38. let g:Tlist_Auto_Highlight_Tag=1
  39. " NERDTree.vim
  40. let g:NERDTreeWinPos="right"
  41. let g:NERDTreeWinSize=25
  42. let g:NERDTreeShowLineNumbers=1
  43. let g:NERDTreeQuitOnOpen=1
  44. " cscope.vim
  45. if has("cscope")
  46.     set csto=1
  47.     set cst
  48.     set nocsverb
  49.     if filereadable("cscope.out")
  50.         cs add cscope.out
  51.     endif
  52.     set csverb
  53. endif
  54. " OmniCppComplete.vim
  55. let g:OmniCpp_DefaultNamespaces=["std"]
  56. let g:OmniCpp_MayCompleteScope=1
  57. let g:OmniCpp_SelectFirstItem=2
  58. " VimGDB.vim
  59. if has("gdb")
  60.     set asm=0
  61.     let g:vimgdb_debug_file=""
  62.     run macros/gdb_mappings.vim
  63. endif
  64. " LookupFile setting
  65. let g:LookupFile_TagExpr='"./tags.filename"'
  66. let g:LookupFile_MinPatLength=2
  67. let g:LookupFile_PreserveLastPattern=0
  68. let g:LookupFile_PreservePatternHistory=1
  69. let g:LookupFile_AlwaysAcceptFirst=1
  70. let g:LookupFile_AllowNewFiles=0
  71. " Man.vim
  72. source $VIMRUNTIME/ftplugin/man.vim
  73. " snipMate
  74. let g:snips_author="Du Jianfeng"
  75. let g:snips_email="cmdxiaoha@163.com"
  76. let g:snips_copyright="SicMicro, Inc"
  77. " plugin shortcuts
  78. function! RunShell(Msg, Shell)
  79.     echo a:Msg . '...'
  80.     call system(a:Shell)
  81.     echon 'done'
  82. endfunction
  83. nmap :TlistToggle
  84. nmap :NERDTreeToggle
  85. nmap :MRU
  86. nmap LookupFile
  87. nmap :vimgrep / =expand(" <cword > ") / **/*.c **/*.h :cw
  88. "nmap <F9> :call RunShell("Generate tags", "ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .")<cr>
  89. "nmap :call HLUDSync()
  90. nmap :call RunShell("Generate filename tags ", " ~ / .vim/shell/genfiletags .sh ")
  91. nmap :call RunShell("Generate cscope ", "cscope -Rb ") :cs add cscope.out
  92. nmap sa :cs add cscope.out
  93. nmap ss :cs find s =expand(" <cword > ")
  94. nmap sg :cs find g =expand(" <cword > ")
  95. nmap sc :cs find c =expand(" <cword > ")
  96. nmap st :cs find t =expand(" <cword > ")
  97. nmap se :cs find e =expand(" <cword > ")
  98. nmap sf :cs find f =expand(" <cfile > ")
  99. nmap si :cs find i =expand(" <cfile > ")
  100. nmap sd :cs find d =expand(" <cword > ")
  101. nmap zz o
  102. nmap gs :GetScripts

  103. nmap :tabnext
  104. nmap :tabp
  105. nmap :cn
  106. nmap :cp
  107. nmap :
  108. set ts=4
  109. set sw=4
  110. set expandtab


  111. set tags=~/tags

  112. "vundle
  113. "git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
  114. set nocompatible " be iMproved
  115. filetype off "

  116. set rtp+=~/.vim/bundle/vundle/
  117. call vundle#rc()

  118. " let Vundle manage Vundle
  119. "
  120. Bundle 'gmarik/vundle'

  121. " My Bundles here:
  122. "
  123. " original repos on github https://github.com/vim-scripts/matrix.vim--Yang
  124. " Bundle 'tpope/vim-fugitive'
  125. Bundle 'matrix.vim--Yang'
  126. Bundle 'a.vim'
  127. Bundle 'taglist.vim'
  128. "Bundle 'Lokaltog/vim-easymotion'
  129. "Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
  130. "Bundle 'tpope/vim-rails.git'
  131. " vim-scripts repos
  132. "Bundle 'L9'
  133. "Bundle 'FuzzyFinder'
  134. " non github repos
  135. "Bundle 'git://git.wincent.com/command-t.git'
  136. " ...

  137. filetype plugin indent on "
  138. "
  139. " Brief help
  140. " :BundleList - list configured bundles
  141. " :BundleInstall(!) - install(update) bundles
  142. " :BundleSearch(!) foo - search(or refresh cache first) for foo
  143. " :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
  144. "
  145. " see :h vundle for more details or wiki for FAQ


<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
阅读(430) | 评论(0) | 转发(0) |
0

上一篇:FTP TOOL SETUP

下一篇:FTP PLATFORM TARGET SETUP

给主人留下些什么吧!~~
评论热议
1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 、4下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合;、下载 4使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合;、 4下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.m或d论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 、1资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。、资源 5来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。、资 5源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

kelsel

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值