VIMRC
来源:互联网 发布:新农村频道网络直播 编辑:程序博客网 时间:2024/06/07 09:15
sed -i 's///g' vimrc
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()
- " .vimrc - Vim configuration file.
- "
- " Copyright (c) 2010 Jeffy Du. All Rights Reserved.
- "
- " Maintainer: Jeffy Du
- " Created: 2010-01-01
- " LastChange: 2010-04-22
- " GENERAL SETTINGS: {{{1
- " To use VIM settings, out of VI compatible mode.
- set nocompatible
- " Enable file type detection.
- filetype plugin indent on
- " Syntax highlighting.
- syntax on
- " Setting colorscheme
- color desert
- " Other settings.
- set autoindent
- set autoread
- set autowrite
- set background=dark
- set backspace=indent,eol,start
- set nobackup
- set cindent
- set cinoptions=:0
- set cursorline
- set completeopt=longest,menuone
- set noexpandtab
- set fileencodings=cp936,utf-8,gb2312,gbk,gb18030
- set fileformat=unix
- set foldenable
- set foldmethod=marker
- set guioptions-=T
- set guioptions-=m
- set guioptions-=r
- set guioptions-=l
- set helpheight=10
- set helplang=cn
- set hidden
- set history=100
- set hlsearch
- set ignorecase
- set incsearch
- set laststatus=2
- "set mouse=a
- set number
- set pumheight=10
- set ruler
- set scrolloff=5
- set shiftwidth=4
- set showcmd
- set smartindent
- set smartcase
- set tabstop=4
- set termencoding=utf-8
- set textwidth=80
- set whichwrap=h,l
- set wildignore=*.bak,*.o,*.e,*~
- set wildmenu
- set wildmode=list:longest,full
- set wrap
- " AUTO COMMANDS: {{{1
- " auto expand tab to blanks
- "autocmd FileType c,cpp set expandtab
- " Restore the last quit position when open file.
- autocmd BufReadPost *
- \ if line("'\'") > 0 && line("'\"") <= line("$") |
- \ exe "normal g'\"" |
- \ endif
- " SHORTCUT SETTINGS: {{{1
- " Set mapleader
- let mapleader=","
- " Space to command mode.
- nnoremap
: - vnoremap
: - " Switching between buffers.
- nnoremap <C-h> <C-W>h
- nnoremap <C-j> <C-W>j
- nnoremap <C-k> <C-W>k
- nnoremap <C-l> <C-W>l
- inoremap <C-h> <Esc><C-W>h
- inoremap <C-j> <Esc><C-W>j
- inoremap <C-k> <Esc><C-W>k
- inoremap <C-l> <Esc><C-W>l
- " "cd" to change to open directory.
- let OpenDir=system("pwd")
- nmap
cd :exe 'cd ' . OpenDir :pwd - function AddTitle()
- call setline(1,"/**-----------------------------------------------------------------------------")
- call append (1," * @file " . expand("%"))
- call append (2," *" )
- call append (3," * @author xiekunming@centerm.com.cn" )
- 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 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()
- function AddCdemo()
- call setline(1,"#include <stdio.h>")
- call append (1,"#include <stdlib.h>")
- call append (2,"#include <string.h>")
- call append (3,"")
- call append (4,"int main(int argc, char **argv)")
- call append (5,"{")
- call append (6," return 0;")
- call append (7,"}")
- endf
- map cdemo :call AddCdemo()
- function AddCxxdemo()
- call setline(2,"#include <iostream>")
- call append (2,"using namespace std;")
- call append (3,"")
- call append (4,"int main(int argc, char **argv)")
- call append (5,"{")
- call append (6," return 0;")
- call append (7,"}")
- endf
- map cxxdemo :call AddCxxdemo()
- function AddDebugNotice()
- endf
- function AddSvnLog()
- call setline(1,"Author: xiekm")
- call append (1,"Description: ")
- call append (2,"1. ")
- endf
- map svnlog :call AddSvnLog()
- " PLUGIN SETTINGS: {{{1
- " taglist.vim
- let g:Tlist_Auto_Update=1
- let g:Tlist_Process_File_Always=1
- let g:Tlist_Exit_OnlyWindow=1
- let g:Tlist_Show_One_File=1
- let g:Tlist_WinWidth=25
- let g:Tlist_Enable_Fold_Column=0
- let g:Tlist_Auto_Highlight_Tag=1
- " NERDTree.vim
- let g:NERDTreeWinPos="right"
- let g:NERDTreeWinSize=25
- let g:NERDTreeShowLineNumbers=1
- let g:NERDTreeQuitOnOpen=1
- " cscope.vim
- if has("cscope")
- set csto=1
- set cst
- set nocsverb
- if filereadable("cscope.out")
- cs add cscope.out
- endif
- set csverb
- endif
- " OmniCppComplete.vim
- let g:OmniCpp_DefaultNamespaces=["std"]
- let g:OmniCpp_MayCompleteScope=1
- let g:OmniCpp_SelectFirstItem=2
- " VimGDB.vim
- if has("gdb")
- set asm=0
- let g:vimgdb_debug_file=""
- run macros/gdb_mappings.vim
- endif
- " LookupFile setting
- let g:LookupFile_TagExpr='"./tags.filename"'
- let g:LookupFile_MinPatLength=2
- let g:LookupFile_PreserveLastPattern=0
- let g:LookupFile_PreservePatternHistory=1
- let g:LookupFile_AlwaysAcceptFirst=1
- let g:LookupFile_AllowNewFiles=0
- " Man.vim
- source $VIMRUNTIME/ftplugin/man.vim
- " snipMate
- let g:snips_author="Du Jianfeng"
- let g:snips_email="cmdxiaoha@163.com"
- let g:snips_copyright="SicMicro, Inc"
- " plugin shortcuts
- function! RunShell(Msg, Shell)
- echo a:Msg . '...'
- call system(a:Shell)
- echon 'done'
- endfunction
- nmap
:TlistToggle - nmap
:NERDTreeToggle - nmap
:MRU - nmap
LookupFile - nmap
:vimgrep / =expand("<cword>") / **/*.c **/*.h :cw - "nmap <F9> :call RunShell("Generate tags", "ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .")<cr>
- "nmap
:call HLUDSync() - nmap
:call RunShell("Generate filename tags", "~/.vim/shell/genfiletags.sh") - nmap
:call RunShell("Generate cscope", "cscope -Rb") :cs add cscope.out - nmap
sa :cs add cscope.out - nmap
ss :cs find s =expand("<cword>") - nmap
sg :cs find g =expand("<cword>") - nmap
sc :cs find c =expand("<cword>") - nmap
st :cs find t =expand("<cword>") - nmap
se :cs find e =expand("<cword>") - nmap
sf :cs find f =expand("<cfile>") - nmap
si :cs find i =expand("<cfile>") - nmap
sd :cs find d =expand("<cword>") - nmap
zz o - nmap
gs :GetScripts - nmap
:tabnext - nmap
:tabp - nmap
:cn - nmap
:cp - nmap
: - set ts=4
- set sw=4
- set expandtab
- set tags=~/tags
- "vundle
- "git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
- set nocompatible " be iMproved
- filetype off "
- set rtp+=~/.vim/bundle/vundle/
- call vundle#rc()
- " let Vundle manage Vundle
- "
- Bundle 'gmarik/vundle'
- " My Bundles here:
- "
- " original repos on github https://github.com/vim-scripts/matrix.vim--Yang
- " Bundle 'tpope/vim-fugitive'
- Bundle 'matrix.vim--Yang'
- Bundle 'a.vim'
- Bundle 'taglist.vim'
- "Bundle 'Lokaltog/vim-easymotion'
- "Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
- "Bundle 'tpope/vim-rails.git'
- " vim-scripts repos
- "Bundle 'L9'
- "Bundle 'FuzzyFinder'
- " non github repos
- "Bundle 'git://git.wincent.com/command-t.git'
- " ...
- filetype plugin indent on "
- "
- " Brief help
- " :BundleList - list configured bundles
- " :BundleInstall(!) - install(update) bundles
- " :BundleSearch(!) foo - search(or refresh cache first) for foo
- " :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
- "
- " see :h vundle for more details or wiki for FAQ
0
上一篇:FTP TOOL SETUP
下一篇:FTP PLATFORM TARGET SETUP
相关热门文章
- .vimrc配置文件备份
- Mac vim安装 NERDTree
- 高逼格的画图:VIM原来可以这...
- vim粘贴乱码问题
- 02.Vim 编辑器从入门到高级...
- linux 常见服务端口
- xmanager 2.0 for linux配置
- 【ROOTFS搭建】busybox的httpd...
- openwrt中luci学习笔记
- 什么是shell
- linux dhcp peizhi roc
- 关于Unix文件的软链接
- 求教这个命令什么意思,我是新...
- sed -e "/grep/d" 是什么意思...
- 谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
评论热议
0 0
- vimrc
- .vimrc
- vimrc
- ~/.vimrc
- .vimrc
- .vimrc
- ~/.vimrc
- vimrc
- vimrc
- vimrc
- vimrc
- vimrc
- vimrc
- .vimrc
- vimrc
- .vimrc
- vimrc
- vimrc
- android 注解框架butterknifer以及Butterknife Zelezny的安装
- Python爬虫技术汇总
- FTP
- FTP TOOL SETUP
- HighCharts如何设置Y轴的刻度,就是Y轴是0,25,50,100。
- VIMRC
- 欢迎使用CSDN-markdown编辑器
- FTP PLATFORM TARGET SETUP
- 怎么 把double值变为float?
- kvm qeum
- 小白成长记-----关于Android AES 加解密中的那些问题
- Odoo 权限控制解析及 eval 详解
- 组件、控件和插件的区别
- gtest
原创粉丝点击
热门IT博客
热门问题
老师的惩罚
人脸识别
我在镇武司摸鱼那些年
重生之率土为王
我在大康的咸鱼生活
盘龙之生命进化
天生仙种
凡人之先天五行
春回大明朝
姑娘不必设防,我是瞎子
负载均衡
均衡教派
音响均衡器
添富均衡
市场均衡
车载音响均衡器怎么调
车载音响均衡器
十段均衡器完美调节图
均衡器调节图
汽车均衡器调节图
5段均衡器完美调节图
木叶之均衡忍者系统
汽车音效均衡器怎么调
汽车10段均衡器调节图
七段均衡器完美调节图
车载音效均衡器设置
汽车音响均衡器
均衡器怎么调
纳什均衡理论
nginx负载均衡
汇添富均衡增长
汽车音响怎么调均衡器
订的
订
都市七界仙尊 十万均订
均辉
均辉速递
均输平准
坊
一坊
酒坊
坊市
花坊
潍坊坊子
海坊主哪里多
海坊主
水井坊酒价格表
田子坊旅游
水井坊
柚子坊日常系大侠
三坊七巷