ChinaUnix.net
相关文章推荐:

vimrc 字体大小

请问问如何在vimrc中判断文件类型, like this if is c/c++ file then set cino=:0g0t0(sus set cindent map {o}O end if sorry; c版的置顶问了好久好久,没人回答。。

by jack9981 - Shell - 2007-12-25 19:21:09 阅读(1251) 回复(2)

相关讨论

" vim:shiftwidth=2:tabstop=8:expandtab if has('autocmd') " Remove ALL autocommands for the current group au! " Mark .asm files MASM-type assembly au BufNewFile,BufReadPre *.asm let b:asmsyntax='masm' endif if has('gui_running') let do_syntax_sel_menu=1 endif if has('gui_running') && $LANG !~ '\.' set encoding=utf-8 endif set nocompatible source $VIMRUNTIME/vimrc_example.vim set autoind...

by chenyangbo - BSD文档中心 - 2006-10-01 19:32:02 阅读(547) 回复(0)

使用 UTF-8 的編碼方式儲存,因此,您在編輯檔案時,可能看到的會是亂碼。若您使用的是 vi/vim 編輯器的話,可以在 ~/.vimrc 設定檔中加入底下幾行即可 各位大虾,请问上述的修改操作,我要怎样进行 ,我的操作系统是redhat as4.0! ------------------------------------------------ 谢谢先! 感谢cu!

by qmailer - Shell - 2005-11-29 16:16:28 阅读(1692) 回复(3)

我在我的目录下建了一个.vimrc文件,但不知道怎么执行,才能使其生效?各位谁能帮帮我 [ 本帖最后由 olivia2007 于 2008-11-27 16:34 编辑 ]

by olivia2007 - C/C++ - 2008-11-28 11:57:47 阅读(2589) 回复(19)

我在.bash_profile设置了login_ip, 表示连接到服务器的客户IP 然后.vimrc要根据login_ip来进行配置 if $login_ip = aa ... endif if $login_ip == bb ... endif 请问这个.vimrc该怎么写。 另外,原来的.vimrc中有函数等, 是否在外面套一层if 就好了? 因为多个用户共享一个帐号,所以只能根据IP来设置.vimrc了。

by jack9981 - Shell - 2008-01-10 10:52:25 阅读(1984) 回复(5)

set nu! 设置行号 syntax on 语法彩色 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/55904/showart_436868.html

by aport - BSD文档中心 - 2007-12-05 23:04:06 阅读(879) 回复(0)

[code] " use visual bell instead of beeping set vb " incremental search set incsearch " syntax highlighting set bg=light syntax on " autoindent autocmd FileType perl set autoindent|set smartindent " 4 space tabs autocmd FileType perl set tabstop=4|set shiftwidth=4|set expandtab|set softtabstop=4 " show matching brackets autocmd FileType perl set showmatch " show line numbers autocmd FileType...

by POLOGG - Perl - 2006-04-01 15:05:40 阅读(1546) 回复(2)

" Vim folding file " Language: Python " Author: Jorrit Wiersma (foldexpr), Max Ischenko (foldtext), Robert " Ames (line counts) " Last Change: 2005 Jul 14 " Version: 2.3 " Bug fix: Drexler Christopher, Tom Schumm, Geoff Gerrietts setlocal foldmethod=expr setlocal foldexpr=GetPythonFold(v:lnum) setlocal foldtext=PythonFoldText() function! PythonFoldText() let line = getline(v:folds...

by mageguoshi - Python文档中心 - 2009-01-16 15:37:19 阅读(1663) 回复(0)

一个vimrc的例子 1 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 2 " Stuff I have decided I don't like 3 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" 4 "set ignorecase -- turns out, I like case sensitivity 5 "se...

by Coolriver - BSD文档中心 - 2007-10-12 21:29:20 阅读(792) 回复(0)

用VIM朋友如果你们愿意的话可以把你们vimrc里的一些常用配置和一些技巧贴出来大家一起共享和学习 以便使我们的vim功能更加强大写程序时更加得心应手 我先来点 基本的缩进和语言加亮 [code] set syntax=on set cinoptions+={2,0,p0,t0 set nobackup set cindent set syntax=cpp set formatoptions=tcqr [/code] 自定义文件头 [code] function Mytitle() call setline(1,"/**********************************************") cal...

by lovesaka - C/C++ - 2010-11-01 13:02:36 阅读(19507) 回复(47)

自动适应各种语法、怎么设? set syntax=?

by 技安 - Shell - 2005-12-21 11:17:09 阅读(837) 回复(5)