vim真是越用越好用,贴一下配置文件.vimrc
一方面自己在别的地方可以看到:)
其实想想以前,vim的配置无非就是看看别人的很长的配置文件,自己照着copy一下,现在基本上形成了自己的习惯了,有什么需要的自己加入快捷键了,特别是以“,”(逗号)开始的leader使用起来非常的方便,虽然其实是牺牲了一个重复反向查找的功能。。。。但是实际中,我没有有过用到”,”这样奇怪的需求,所以覆盖了也不怎么可惜。
可惜的是发上来的文件没有语法高亮。。。。。。。。。。
``vim let mapleader=”,” set encoding=utf-8 set ambiwidth=double set nocompatible set hls set nu set ai colors desert syntax on set sw=4 set ts=4 “set autocmd set smarttab set whichwrap+=h,l,~,b,s,<,>,[,] set helplang=cn set ruler set showcmd filetype plugin indent on set nomagic set mouse=a set cmdheight=2 set backspace=eol,start,indent set showmatch set wildmenu
”———————————————————–
“ for snippetsEmu_key but it’s snippet file is not created
“———————————————————–
let g:snippetsEmu_key = “
”———————————————————– “ folding “———————————————————– “enable folding, i find it very useful set nofen set fdl=0 set lbr
set si set wrap
”———————————————————–
“ some key I maped and liked
“———————————————————–
“ I like use
” sometimes use this to p sth in new line
nmap
” one key to save even in insert mode
nmap
” select all :) like microsoft’s CTRL-A
nmap
”———————————————————–
“ for favarite c/c++
“———————————————————–
“ normal mode
autocmd filetype c map
”———————————————————–
“ For special script file type
“ I only need to use python,lua,sh and surely only know these
“———————————————————–
“ normal mode
autocmd filetype python map
”———————————————————–
“ taglist
“———————————————————–
let Tlist_Exit_OnlyWindow = 1
let Tlist_Use_Right_Window = 1
let Tlist_File_Fold_Auto_Close = 1
map
”———————————————————–
“ for quickfix
“———————————————————–
nmap
”———————————————————– “ for vimgdb “———————————————————– source ~/vimrc/gdb_mappings.vim
”———————————————————–
“ WinManager Setting
“———————————————————–
let g:winManagerWindowLayout = “FileExplorer”
let g:winManagerWidth = 30
let g:defaultExplorer = 0
nmap
”———————————————————–
“ for A.vim a useful plugin
“———————————————————–
nmap
”———————————————————–
“ for MiniBufExplorer and buffer opearate
“———————————————————–
nmap
Posted By 九天雁翎 at 九天雁翎的博客 on 2008年10月12日