VI编辑器基本设置
来源:互联网 发布:王者荣耀成吉思汗知乎 编辑:程序博客网 时间:2024/05/22 03:12
vi ~/.vimrc
set encoding=gb2312
set guifont=Luxi/ Mono/9settabstop=4
setbackspace=2
setnu
setwrap
"setnowrap
setlinebreak
setwhichwrap=b,s,<,>,[,]
"setlist
"set listchars = tab:>-,trail:- "将制表符显示为'>---',将行尾空格显示为'-'
set listchars=tab:./ ,trail:.
setautochdir
sethidden
set scrolloff=5
"--------------------------------------------------------------------------------
" 查找/替换相关的设置
"--------------------------------------------------------------------------------
sethlsearch
setincsearch
setgdefault
"--------------------------------------------------------------------------------
" 状态栏相关的设置
"--------------------------------------------------------------------------------
setstatusline=[%F]%y%r%m%*%=[Line:%l/%L,Column:%c][%p%%]
setlaststatus=2
setruler
"--------------------------------------------------------------------------------
"
"--------------------------------------------------------------------------------
set mouse=v
behave xterm
"--------------------------------------------------------------------------------
" 编程相关的设置
"--------------------------------------------------------------------------------
setcompleteopt=longest,menu
filetype plugin indenton
nmap 9t :settags=/media/disk/resource/Qualcomm/76XXTSNCJNLYM4735/HY11-VR356-9_4.7.35/AMSS/tags
nmap 11t :settags=/home/xie/qualcomm/a47354009/tags
nmap 9c :cs add/media/disk/resource/Qualcomm/76XXTSNCJNLYM4735/HY11-VR356-9_4.7.35/AMSS/cscope.out/media/disk/resource/Qualcomm/76XXTSNCJNLYM4735/HY11-VR356-9_4.7.35/AMSS
nmap 11c :cs add /home/xie/quallcomm/a47354009/cscope.out/home/xie/quallcomm/a47354009
syntaxon
setshowmatch
setsmartindent
setshiftwidth=4
setautoindent
setai!
colorscheme softblue
"--------------------------------------------------------------------------------
" 代码折叠
"--------------------------------------------------------------------------------
"set foldmarker={,}
"set foldmethod=marker
set foldmethod=syntax
setfoldlevel=100
"set foldopen-=search
"setfoldopen-=undo
"set foldcolumn=4
"--------------------------------------------------------------------------------
" 窗口操作的快捷键
"--------------------------------------------------------------------------------
nmapwv
nmapwc
nmapwh
"使用ctrl+j,k,i,l切换窗口
noremap fm j
noremap fj h
noremap fl l
noremap fk k
"上下左右从新映射
noremap j h
noremap m j
"调整窗口高度
noremap hr 6+
noremap lr 6-
noremap wr 20>
noremap sr 20<</span>
noremap ht _
noremap wt :vertical res
"滚屏
noremap 2
noremap 3
"###############################################################################
" The following is the Plugins' setting
"###############################################################################
"--------------------------------------------------------------------------------
" TagList :Tlist
"--------------------------------------------------------------------------------
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow = 1
let Tlist_Process_File_Always = 1
let Tlist_Use_Right_Window=1
"let Tlist_Auto_Open = 1
"let Tlist_WinHeight = 20
let Tlist_WinWidth = 22
"--------------------------------------------------------------------------------
" netrw 文件浏览器 :e
"--------------------------------------------------------------------------------
"let g:netrw_winsize =30
"--------------------------------------------------------------------------------
" QuickFix
"--------------------------------------------------------------------------------
nmap :cn
nmap :cp
"--------------------------------------------------------------------------------
" WinManager :WMToggle
"--------------------------------------------------------------------------------
"letg:winManagerWindowLayout='FileExplorer,BufExploer|TagList'
letg:winManagerWindowLayout='TagList,BufExplorer|FileExplorer'
let g:persistentBehaviour=0
let g:winManagerWidth = 30
"let g:defaultExplorer = 0
"nmap :BottomExplorerWindow " 切换到最下面一个窗格
nmap :FirstExplorerWindow
nmap wm :WMToggle
"--------------------------------------------------------------------------------
" MiniBufExp
"--------------------------------------------------------------------------------
"let g:miniBufExplMapWindowNavV
"let g:miniBufExplMapWindowNavA
"let g:miniBufExplMapWindowNavA
let g:miniBufExplMapCTabSwitch
"let g:miniBufExplModSelTarget =1
"--------------------------------------------------------------------------------
" cscope
"--------------------------------------------------------------------------------
set cscopequickfix=s-,c-,d-,i-,t-,e-
set cscopetag
nmap ss :cs find s =expand("") :cw
nmap sg :cs find g =expand("") :cw
nmap sc :cs find c =expand(""):cw
nmap st :cs find t =expand("") :cw
nmap se :cs find e =expand("") :cw
nmap sf :cs find f =expand("")
nmap si :cs find i =expand("") :cw
nmap sd :cs find d =expand(""):cw
"--------------------------------------------------------------------------------
" Grep
"--------------------------------------------------------------------------------
"直接按下键来查找光标所在的字符串
nnoremap :Rgrep
"--------------------------------------------------------------------------------
" A
"--------------------------------------------------------------------------------
nnoremap :A
"--------------------------------------------------------------------------------
" Conque Shell
"--------------------------------------------------------------------------------
nmap sl :ConqueTerm bash
nmap slv :ConqueTermVSplit bash
nmap slh :ConqueTermSplitbash
"--------------------------------------------------------------------------------
" Translate it
"-------------------------------------------------------------------------------
nmap t :TranslateIt
"--------------------------------------------------------------------------------
" QuickFix
"-------------------------------------------------------------------------------
nmap 4 :botright cwindow
"##################################################################
"########################## End Of Vimrc##########################
"##################################################################
0 0
- VI编辑器基本设置
- VI编辑器基本教程
- vi 编辑器基本使用
- vi编辑器基本使用方法
- Vi编辑器基本使用方法
- vi编辑器基本使用方法
- vi编辑器基本命令
- vi编辑器基本操作
- VI编辑器基本使用方法
- vi编辑器的设置
- vi编辑器设置
- vi编辑器设置
- vi编辑器全局设置
- Vi编辑器的基本使用方法!
- Vi编辑器的基本使用方法
- Vi编辑器的基本使用方法
- Vi编辑器的基本使用方法
- Vi编辑器的基本使用方法
- C++多线程编程入门之经典实例
- 事件传递
- CryENGINE3初探Entities (三)----初试Input输入系统,搭配Lua使用C++创建完整逻辑的entity
- scp使用
- C语言中的简易计数器
- VI编辑器基本设置
- Linux socket <一>
- Python模块Pyqt 安装失败记录 不支持64位的操作系统
- MySQL的btree索引和hash索引的区别
- Git教程
- iOS 中可变参数方法的声明和实现
- 删除数组零元素
- 在wamp集成环境php该如何开启短标签
- mysql 操作总结 INSERT和REPLACE