"Get out of VI's compatible mode..
set nocompatible
"Sets how many lines of history VIM har to remember
set history=400
"Enable filetype plugin
filetype plugin on
filetype indent on
"Set to auto read when a file is changed from the outside
set autoread
"Have the mouse enabled all the time:
set mouse=a
"Fast saving
nmap <leader>w :w!<cr>
nmap <leader>f :find<cr>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Colors and Fonts
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Enable syntax hl
syntax enable
" Platform
function! MySys()
if has("win32")
return "windows"
else
return "linux"
endif
endfunction
"Set font to Monaco 10pt
if MySys() == "mac"
set gfn=Bitstream\ Vera\ Sans\ Mono:h14
set nomacatsui
set termencoding=macroman
elseif MySys() == "linux"
set gfn=Monospace\ 11
elseif MySys() == "windows"
set guifont=Courier_New:h11:cANSI
endif
if has("gui_running")
"set guioptions-=T
"let psc_style='cool'
"gvim的主题颜色
colorscheme ir_black
else
"vim的主题颜色
set background=dark
colorscheme koehler
endif
autocmd BufEnter * :syntax sync fromstart
let &termencoding=&encoding
set fileencodings=utf-8,gbk,ucs-bom,cp936
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => VIM userinterface
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Set 7 lines to the curors - when moving vertical..
set so=7
"Turn on WiLd menu
set wildmenu
"Always show current position
set ruler
"The commandbar is 2 high
set cmdheight=2
"Show line number
set nu
"Do not redraw, when running macros.. lazyredraw
set lz
"Change buffer - without saving
set hid
"Set backspace
set backspace=eol,start,indent
"Bbackspace and cursor keys wrap to
set whichwrap+=<,>,h,l
"Ignore case when searching
set ignorecase
set incsearch
"Set magic on
set magic
"No sound on errors.
set noerrorbells
set novisualbell
set t_vb=
"show matching bracets
set showmatch
"How many tenths of a second to blink
set mat=2
"Turn backup off
set nobackup
set nowb
set noswapfile
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Folding
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Enable folding, I find it very useful
set nofen
set fdl=0
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text options
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set expandtab
set shiftwidth=4
set tabstop=4
"au FileType html,vim,javascript setl shiftwidth=2
"au FileType html,vim,javascript setl tabstop=2
set smarttab
set lbr
set tw=500
""""""""""""""""""""""""""""""
" => Indent
""""""""""""""""""""""""""""""
"Auto indent
set ai
"Smart indet
set si
"C-style indeting
set cindent
"Wrap lines
set wrap
:map ff :tabnext<CR>
:map fd :tabnew .<CR>
分享到:
相关推荐
vim配置文件vim配置文件vim配置文件
vim配置文件 vimrc vim配置文件 vimrc vim配置文件 vimrc
强大的vim配置文件,强大的vim配置文件强大的vim配置文件强大的vim配置文件强大的vim配置文件
vim配置文件,vim配置文件
Vim 配置文件。 支持ctags/cscope的配置。可以动态的进行代码的跳转高亮等
自己的vim配置文件目录备份,包括git版本修改记录。使用方法,linux系统:解压后,运行INSTALL。Windows系统:解压后自行替换对应配置文件及目录。
vim配置文件.vimrc完美配置
.vimrc 文件 vim配置文件 字体、颜色 各类插件 ------------ 具体配置步骤找寻相关博客 仅供参考
1、该文件是csnd上被称为最新最强的配置文件上进行改进的。 2、原配置在编程中有如下缺点:小括号无法自动完成匹配;双引号和单引号无法跳出。 3、新配置加入了最新的auto-pairs插件,成功的解决了原版本的括号和...
强大的vim配置文件,可同时适用于linux和windows下的vim配置。 涵盖了所有主流插件的配置,常见的显示设置,编译命令的映射。 插件: ctags 代码跟踪 taglist 类视图 winmanager 文件视图 minibuffer 显示多文件...
该配置文件包含了设置行号、Tab...具体说明可以参考我的文章《【Linux成长之路基础篇:玩转vim(vi)编辑器】三大模式及命令介绍、如何通过配置文件.vimrc配置vim》第三章《三、vim配置文件.vimrc》里面有详细的介绍。
vim编辑器配置文件, 非常强大的vim开发环境配置,解压后将文件修改为_vimrc
可以括号自动补全,自动缩进,语法高亮,允许鼠标定位代码,显示信息可以实现中文显示,F7可以实现编译运行,F8可以实现c,c++的代码调试。
vim编译器好用, 使用, 最为经典的配置文件
windows下vim配置文件
vim 配置文件
vim配置文件(中文解释),包括taglist的配置,在ubuntu 10.10下测试通过。vim版本7.2
vim配置文件——vim配置教程