免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: albcamus
打印 上一主题 下一主题

[C] C语言太长的行用“\”换行的问题 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2004-11-23 17:52 |只看该作者

C语言太长的行用“\”换行的问题

果然变了。可是不习惯……还是换回白底黑字。

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
12 [报告]
发表于 2004-11-23 18:03 |只看该作者

C语言太长的行用“\”换行的问题

[quote]原帖由 "assiss"]果然变了。可是不习惯……还是换回白底黑字。[/quote 发表:

我也觉得不习惯。
不过有时候拿出来挺酷的!
刚才我就是故意弄成那样的       
要不然你怎么会觉得稀奇呢。

论坛徽章:
0
13 [报告]
发表于 2004-11-23 18:31 |只看该作者

C语言太长的行用“\”换行的问题

黑底白字+彩色语法才真正养眼。我这么大把“年纪”了,双目视力还是>;=1.5哟。

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
14 [报告]
发表于 2004-11-23 18:39 |只看该作者

C语言太长的行用“\”换行的问题

这是我以前在FB下用VIM时常用的vimrc文件,我特别喜欢.
  1. " An example for a vimrc file.
  2. "
  3. " Maintainer:        Bram Moolenaar <Bram@vim.org>;
  4. " Last change:        2002 Sep 19
  5. "
  6. " To use it, copy it to
  7. "     for Unix and OS/2:  ~/.vimrc
  8. "              for Amiga:  s:.vimrc
  9. "  for MS-DOS and Win32:  $VIM\_vimrc
  10. "            for OpenVMS:  sys$login:.vimrc

  11. " When started as "evim", evim.vim will already have done these settings.
  12. if v:progname =~? "evim"
  13.   finish
  14. endif

  15. " Use Vim settings, rather then Vi settings (much better!).
  16. " This must be first, because it changes other options as a side effect.
  17. set nocompatible

  18. " allow backspacing over everything in insert mode
  19. set backspace=indent,eol,start

  20. "if has("vms")
  21. "  set nobackup                " do not keep a backup file, use versions instead
  22. "else
  23. "  set backup                " keep a backup file
  24. "endif
  25. set history=50                " keep 50 lines of command line history
  26. set ruler                " show the cursor position all the time
  27. set showcmd                " display incomplete commands
  28. set incsearch                " do incremental searching

  29. " For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
  30. " let &guioptions = substitute(&guioptions, "t", "", "g")

  31. " Don't use Ex mode, use Q for formatting
  32. map Q gq

  33. " This is an alternative that also works in block mode, but the deleted
  34. " text is lost and it only works for putting the current register.
  35. "vnoremap p "_dp

  36. " Switch syntax highlighting on, when the terminal has colors
  37. " Also switch on highlighting the last used search pattern.
  38. if &t_Co >; 2 || has("gui_running")
  39.   syntax on
  40.   set hlsearch
  41. endif

  42. " Only do this part when compiled with support for autocommands.
  43. if has("autocmd")

  44.   " Enable file type detection.
  45.   " Use the default filetype settings, so that mail gets 'tw' set to 72,
  46.   " 'cindent' is on in C files, etc.
  47.   " Also load indent files, to automatically do language-dependent indenting.
  48.   filetype plugin indent on

  49.   " Put these in an autocmd group, so that we can delete them easily.
  50.   augroup vimrcEx
  51.   au!

  52.   " For all text files set 'textwidth' to 78 characters.
  53.   autocmd FileType text setlocal textwidth=78

  54.   " When editing a file, always jump to the last known cursor position.
  55.   " Don't do it when the position is invalid or when inside an event handler
  56.   " (happens when dropping a file on gvim).
  57.   autocmd BufReadPost *
  58.     \ if line("'\"") >; 0 && line("'\"") <= line("$") |
  59.     \   exe "normal g`\"" |
  60.     \ endif

  61.   augroup END

  62. else

  63.   set autoindent                " always set autoindenting on

  64. endif " has("autocmd")

  65. set number
  66. set sw=4
  67. set cindent
  68. "set sm
  69. set autoindent
  70. set ruler
  71. set number
  72. set autoindent
  73. set tabstop=8
  74. set smarttab
  75. set showmode
  76. set nohlsearch
  77. "set nowrap
  78. set nowrapscan
  79. set statusline=%<%F%h%m%r%=(%b\ 0x%B)\ \ %l,%c%V\ %P
  80. set laststatus=2
  81. set mouse=a
  82. syntax on
复制代码

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
15 [报告]
发表于 2004-11-23 18:47 |只看该作者

C语言太长的行用“\”换行的问题

都是啥意思啊。^_^,加点注释呗,然后偶就拿去用了。

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
16 [报告]
发表于 2004-11-23 18:50 |只看该作者

C语言太长的行用“\”换行的问题

你可以把你的备份一下,再把我的放上去试试嘛.不喜欢再换过来.我用的是gnome-terminal.gnome-terminal也设置的比较好.(我认为).
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP