- 浏览: 1060764 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (399)
- C++ (39)
- Java (74)
- Java界面开发学习笔记 (4)
- Java用户的c++之旅 (0)
- 自言自语 (12)
- DSP (1)
- MCU (0)
- CG (0)
- Jabber (0)
- Gloox (0)
- Linux (11)
- Windows (19)
- Networks (4)
- Jobs (0)
- PHP (1)
- JSP (2)
- 生活 (35)
- C (2)
- Qt4 (2)
- C# (50)
- WPF (5)
- ASP (2)
- FLEX (47)
- SQL (20)
- JavaScript (12)
- SharePoint (6)
- GWT (1)
- Dojo (9)
- HTML (11)
- Others (7)
- 如何安装配置系列 (7)
- UML (2)
- Android (3)
- alibaba (1)
最新评论
-
zxjlwt:
学习了http://surenpi.com
Firefox插件开发: Hello World! -
ylldzz:
楼主知道MVEL怎么调试么
MVEL简介及快速使用 -
blueman2012:
您好,可否提供源码下载,我把您的代码贴过来后,好多报错的,谢谢 ...
Log4J日志解析 -
svygh123:
你的游标都没有关闭呢!
MYSQL游标嵌套循环示例 -
dizh:
写的很好啊
MVEL简介及快速使用
" ======================================================= " Vim configuration file " Author: Nico Golde <nico@ngolde.de> " Homepage: http://www.ngolde.de " ~/.vimrc " Latest change: So Aug 12 12:57:06 CEST 2007 " ======================================================= " ======================================== " Settings " ======================================== " muttng setting au BufNewFile,BufRead muttng-*-\w\+,muttng\w\{6\},ae\d setf mail " Temporary reportbug files. augroup filetype au BufRead reportbug.* set ft=mail au BufRead reportbug-* set ft=mail augroup END " settings for the c language au FileType c,h set ai et sw=4 ts=4 noexpandtab cindent omnifunc=ccomplete#Complete au FileType c,h color pablo " no line numbers in mail au FileType mail set nonu fo=tcrqw " show the laststatus line always set laststatus=2 " give cursor position set ruler " number of undos set undolevels=200 " jump to the word you search during you type set incsearch set ignorecase " do i have a fast terminal? set nottyfast " german spellfile set spelllang=de " highligth search results set hlsearch " make no backups "set nobackup " we use a dark background set background=dark " fuck the beeps set noerrorbells " for hidden buffers set hidden set smartindent " continue searching at top when hitting bottom set wrapscan "always show the command set showcmd " Continue searching at top when hitting bottom set wrapscan set smarttab " show all changes set report=0 " highlight current line set cursorline " Highlight matching parens set matchpairs=(:),[:],{:},<:> " no the terminal is not always fast set nottyfast " use autoindent set autoindent " expand tabs set expandtab " how many spaces for indenting set shiftwidth=4 " fancy menu set wildmenu " display utf-8 chars " set encoding=utf-8 " enumerate Lines set nu " substitude tabs with ?and trailing spaces with ?"set list listchars=tab:>?trail:?eol:$ set list listchars=tab:>?trail:?" after 75 characters write a swap file set uc=75 " tab width set tabstop=4 " do not behave like vi, vi is dead set nocompatible " use color sheme " color ron " color pablo " use the modelines commands set modeline " use 3 lines for modelines set modelines=3 " use , as mapleader variable let mapleader="," " Use brighter colors if your xterm has a dark background. if &term =~ "xterm" set background=dark endif "======================== " Syntaxhiglighting "======================== let color = "true" if has("syntax") if color == "true" " This will switch colors ON so ${VIMRUNTIME}/syntax/syntax.vim else " this switches colors OFF syntax off set t_Co=0 endif endif if version>=700 set pumheight=7 endif " comment types set comments=b:#,:%,fb:-,n:),n:> fo=cqrt " force using hjkl$ noremap <Up> :echoerr "Use k instead!"<CR>$ noremap <Down> :echoerr "Use j instead!"<CR>$ noremap <Left> :echoerr "Use l instead!"<CR>$ noremap <Right> :echoerr "Use h instead!"<CR>$, "fix pasting so you dont get the step down effect "nnoremap :set invpaste paste? " ========================================================== " Abriviations " ========================================================== " " urls iab NGOLDE http://www.ngolde.de iab Wklass http://www.abschlussfotos.de.vu " spelling mistakes iab packet paket iab Packet Paket iab nat黵lcih nat黵lich iab felher fehler iab atle alte iab paranoit paranoid iab Standart Standard iab herran hera iab ider oder iab alos also iab charcter character iab examlpe example iab nciht nicht iab Netwokr Network iab Srever Server iab Standart Standard iab standart standard iab SIe Sie iab ICh Ich iab cih ich iab shc sch iab amchen machen iab amche mache iab Linx Linux " Jargon File iab JARGON http://www.catb.org/~esr/jargon/ " usefull for mail formatting iab sn [...] " give current date iab DATE <C-R>=strftime("%a %b %d %T %Z %Y")<CR> " my name + email address ab ngg Nico Golde <nico@ngolde.de> " ============================================== " Mappings " ============================================== " use Exp for file explorer " :help 42 " :help holy-grail " use shell with ctrl-z map <C-Z> :shell map ;0 <ESC>:'<,'>!boxes -d netdata map ;1 <ESC>:'<,'>!boxes -d boxquote map ;2 <ESC>:'<,'>!boxes -d peek -a c -s 40x5 map ;3 <ESC>:'<,'>!boxes -d c-cmt map ;4 <ESC>:'<,'>!boxes -d dog -a c map ;5 <ESC>:'<,'>!boxes -d simple -a jr map ;6 <ESC>:'<,'>!boxes -d headline " delete the text until start of the mail signature with ,k map <LEADER>k d/^-- $<CR> " line numbering map <LEADER>ln :%s/^/\=line('.')/<CR><ESC> " add a comment map ,mkc i/* */<Left><Left><Left> " with ,a give a greeting to the person you write a mail map <LEADER>a G/^\* /e+1<CR>ye1G}oHallo <c-r>",<cr><ESC> " change mail subjects map <LEADER>sw 1G/^Subject: <CR>:s/Re:/was:/<CR>Wi (<C-O>$)<ESC>0Whi " change the FROM: map <f12> 1G/^From: /e+1<CR>CNico Golde <nico@ngolde.de><ESC> map <f11> 1G/^From: /e+1<CR>CNico Golde <nion@debian.org><ESC> " <F6>: Toggle list (display unprintable characters). nnoremap <F8> :set list!<CR> " F7: Write a ChangeLog entry. map <F7> :r !date<CR>A Nico Golde <nico@ngolde.de><CR><CR> * | " search ~/.website nmap <LEADER>s :r!grep '' ~/.website<S-Left><S-Left><right> " write and read from and to ftp nmap <LEADER>r :Nread ftp:// nmap <LEADER>w :Nwrite ftp:// imap <F10> <C-O>cit " show trailing white spaces nmap <LEADER>Sws :%s/ /?g<C-M> vmap <LEADER>Sws :%s/ /?g<C-M> " see the top of this document map <LEADER>L 1G/Letzte 膎derung:\s*/e+1<CR>CDATE<ESC> map <LEADER>l 1G/Latest change:\s*/e+1<CR>CDATE<ESC> map <Leader>v 1G/Version:\s*/e+1<CR>CDATE<ESC> " delete all the fzcking ^M's map <LEADER>M :%s/\r//g<CR> " show original date of mail if the mail client from the sender sets valid " msgid's map ## 1G/^In-Re<cr>yypdWx14lD:s/^\(\d\d\d\d\)\(\d\d\)\(\d\d\)\(\d\d\)\(\d\d\)\(\d\d\)/\1-\2-\3 \4:\5:\6/<cr> nnoremap Q gq vnoremap Q gq " show trailing spaces at the end of the lines nmap <LEADER>tw :%s/ *$/_/g<C-M> vmap <LEADER>tw :%s/ *$/_/g<C-M> " delete this whitespaces " nmap <f11> :%s/\s\+$// " vmap <f11> :s/\s\+$// " Spellcheck. map ,V :!ispell -x %<CR>:e!<CR><CR> " attachments map __a_start :imap <C-V><CR> <C-O>__a_cmd\|imap <C-V><ESC> <C-V><ESC>__a_end\|imap <C-V><C-V><C-V><C-I> <C-V><C-N>\|imap <C-V><C-N> <C-V><C-X><C-V><C-F><CR> noremap __a_end :iunmap <C-V><CR>\|iunmap <C-V><ESC>\|iunmap <C-V><C-V><C-V><C-I>\|iunmap <C-V><C-V><C-V><C-N><CR>dd`a:"Attach mode ended.<CR> noremap __a_cmd oAttach:<Space> noremap __a_scmd 1G/^$/<CR>:noh<CR>OAttach:<Space> map ,A ma__a_start__a_scmd " use jj instead of esc to change the mode " inoremap jj <esc> " reformat mails map <F5> :set tw-=2<cr>gqip vmap <F5> <esc>:set tw-=2<cr>gvgqgv map <F6> :set tw+=2<cr>gqip vmap <F6> <esc>:set tw+=2<cr>gvgqgv " use pon and poff instead of set no/paste map <Leader>pon :set paste<CR>$ imap <Leader>pon <Esc>:set paste<CR>a$ map <Leader>poff :set nopaste<CR>$ imap <Leader>poff <Esc>:set nopaste<CR>a$ " convert text2html map ,h :runtime! syntax/2html.vim "spelling map <F2> :set spell!<CR><Bar>:echo "Spell Check: " . strpart("OffOn", 3 * &spell, 3)<CR> map <F3> :set spelllang=en<CR>:set spell!<CR><Bar>:echo "Spell Check: " . strpart("OffOn", 3 * &spell, 3)<CR> " FTPing with vim map <LEADER>fr :Nread ftp://www.ngolde.de/index.html map <LEADER>fw :Nwrite ftp://www.ngolde.de/index.html " ============================================ " Highlighting " ============================================ syntax match nico "Nico" highlight nico ctermbg=Red syntax match golde "Golde" highlight golde ctermbg=Red syntax match linux "Linux" highlight linux ctermfg=Green " let me know http://www.ngolde.de syntax match yacpi "Yacpi" highlight yacpi ctermfg=Yellow " hi cursorline term=none ctermbg=blue " hi cursorcolumn term=none ctermbg=red " The Shell in a Box mode. " Requires zsh for "print -P $PS1 / replace if needed. " Your prompt should end in > (and only contain one) " map __start :imap <C-V><C-M> <C-O>__cmd<C-V>\|imap <C-V><ESC> <C-V><ESC>__end<C-M> " noremap __end :iunmap <C-V><CR>\|iunmap <C-V><ESC><C-M>:"Vish ended.<C-M> " noremap __cmd 0<ESC>f>ly$:r !<C-R>";print -P $PS1<C-M>A " noremap __scmd :r !print -P $PS1<c-M>A " map ,s __start__scmd " ================================== " Useful stuff " ================================== " " * Use % to jump from an open brace to its matching closing brace. Or from " a "#if" to the matching "#endif". Actually, % can jump to many different " matching items. It is very " useful to check if () and {} constructs are balanced properly. " * Use [{ to jump back to the "{" at the start of the current code block. " * Use gd to jump from the use of a variable to its local declaration." " * Using the "*" key searches for the word under the cursor, use "#" to do the same thing backwards. " * Using the "%" key on brackets {} () [] will find the matching one. " * Using the "." key will repeat last change " * Hitting "gf" will open the file under cursor " * bufdo ... will apply "..." to all open buffers " * (Insert Mode) Control-n and Control-p will autocomplete the current word " by looking forward or backward in the currently open file(s). Can be bound to " tab by using SuperTab. Check out the help for 'complete' to set where Vim will " search for autocomplete words. " * :g/this/d applies an Ex command to all lines that match "this" -- if you " are uncomfortable with Ex command, you can go into normal mode. :g/this/normal " dd (just like hitting "dd" in normal mode on any line with "this" in it) " * >> and << to indent " * If you have really long lines and wrapping turned on, you can map j and k " to move down/up to the next visible line by doing ":nmap j gj" and ":nmap k " gk" " not to self: " J Attaches the next line to the end of the current line (deletes carriage return). ***useful*** " JAVH " vim -c ":%s/^/WhfgTNabgureRIvzSUnpxre/|:%s/[R-T]/ /Ig|:normal ggVGg?" "vim:tw=80 et sw=4 comments=\:\"
转自:http://nion.modprobe.de/setup/vimrc
发表评论
-
解决Mysql锁表进程Bash脚本
2011-04-08 18:32 1370数据库偶尔会响应很慢,看着好像挂掉了,检查进程发现有大量查询语 ... -
linux下rz、sz的简单安装
2011-04-01 20:04 1334[root@localhost ~]# rz-bash: rz ... -
Linux端口监控脚本
2011-03-31 16:16 3692最近jboss进程经常无缘无故的被Halt,怀疑是某同学远程D ... -
linux查看文件内容(cat)
2010-10-26 10:00 5569如果要查看文件内容,如何做呢?有相当多的命令:最常用的显示文件 ... -
crontab命令详解
2010-05-13 14:10 970cron是一个linux下的定时执行工具,可以在无需人工干 ... -
操作系统☞名词解释☞总结
2009-06-13 00:02 1453多道程序设计 是在计算 ... -
一些高效的Linux命令行操作
2009-06-05 12:09 1119本文将记录一些在使用L ... -
某人的.vimrc:加详细注释
2009-05-09 20:04 3791"去掉讨厌的有关vi ... -
Linux系统调用列表
2009-03-20 02:07 1261本文列出了大部分常见的Linux系统调用,并附有简要中文说明。 ... -
一起玩转Linux桌面
2009-03-19 22:54 15290 前言 接触Linux差不多 ...
相关推荐
vimrc
比较好用的一个vimrc,将其复制到用户目录下,记得重命名为.vimrc
自己使用的vimrc
有关 vimrc设置命令 设置 缩进 颜色 自动对齐 编辑返回上一次的位置等
配置文件vimrc.vimrc
vimrc的配置文件,对应博客“linux服务器中安装vimrc的一二三”中的内容
为了更好的在vim下进行工作,需要手动设置一个配置文件:.vimrc。 在启动vim时,当前用户根目录下的.vimrc文件会被自动读取,该文件可以包含一些设置甚至脚本,所以,一般情况下把.vimrc文件创建在当前用户的根目录...
使用vimrc配置Linux中的vim. vim配置vimrc后的优点 1.按F5可以直接编译并执行C、C++、java代码以及执行shell脚本,按“F8”可进行C、C++代码的调试 2.自动插入文件头,新建C、C++源文件时自动插入表头:包括文件名...
简单的 vimrc 配置(ubuntu)
此文件包括3个强大的vimrc配置文件,有需要的可以自行下载,相关学习配置可以参考本人博客
在ubuntu中vimd编译器Vim自动补全神器:YouCompleteMe 的vimrc配置文件
好用的VIMR C++ 好用的VIMRCC++ 好用的VIMRC
终端输入cd 进入用户目录 vim .vimrc 建立vimrc文件。。 新手基本够用。包括文件名,用户名,邮箱,头文件自动输入。行号显示,语法高亮,自动补全等。
修改文件名为.vimrc 存放在根目录下
用于在linux开发golang的整套vim插件包之vimrc文档设置
自己用的vimrc, 自动缩进, 语法高亮等基本功能
Centos7/8下.vimrc脚本固定格式配置
vimrc
我的vimrc配置文件,配置了常用的一些插件,如winmanager,taglist和lookupfiles等