linux 下的vim 简单配置
2014-07-05 16:09
337 查看
set linebreak " line break set nocompatible " no compatible set history=400 " history set ruler set number " line number set hlsearch " highlight search set noincsearch " no in C search set expandtab " expand table set t_vb= "close bell set foldmethod=marker set tabstop=4 " table step set shiftwidth=4 set nobackup " don't backup set smarttab " smart table set smartindent " smart indent set autoindent " auto indent set cindent "cindent set cursorline " hightlight cursor line 高亮光标所在行 set backspace=indent,eol,start "这行比较重要,刚接触vim的朋友会发现有时候backspace键删不了文字 colorscheme desert " color scheme let Tlist_Use_Right_Window=0 " for tag_list plugin only let Tlist_File_Fold_Auto_Close=1 " for tag_list plugin only let g:winManagerWindowLayout="FileExplorer|TagList" " for winmanager filetype plugin indent on " filetype setting set completeopt=longest,menu " for code complete function! CurrectDir() let curdir = substitute(getcwd(), "", "", "g") return curdir endfunction set statusline=\ [File]\ %F%m%r%h\ %w\ \ [PWD]\ %r%{CurrectDir()}%h\ \ %=[Line]\ %l,%c\ %=\ %P if has("win32") set guifont=Courier_New:h10:cANSI endif if exists("syntax_on") syntax reset else syntax on endif if has("autocmd") autocmd Filetype java setlocal omnifunc=javacomplete#Complete endif let performance_mode=1 function MySys() if has("win32") return "win32" elseif has("unix") return "unix" else return "mac" endif endfunction if MySys() == "unix" || MySys() == "mac" set shell=bash else endif if exists("&autoread") set autoread endif if exists("&mouse") set mouse=a endif let mapleader="," let g:mapleader="," nmap <leader>x :xa!<cr> nmap <leader>w :w!<cr> map <leader>cd :cd %:p:h<cr> map <F9> ggVGg? if exists("&foldenable") set fen endif if exists("&foldlevel") set fdl=0 endif map <F3> :Tlist<cr> noremap <leader>m :%s/
此是网上摘抄别人的,目前还没有把vim配置成一个功能较为强大的 IDE 编译器,如有大神在,请赐教。
相关文章推荐
- Linux基础整理-vi/vim常用指令与简单配置
- centos6.5 Linuxe vim gdb g++ ctags的简单配置
- vim简单配置(cp:http://www.linuxidc.com/Linux/2014-02/96396.htm)
- Linux下vim的配置和gcc/g++,gdb的简单安装
- Vim(Linux编辑器)简单配置和常用命令
- Linux下g++/gdb的简单安装和vim的配置
- Vim(Linux编辑器)简单配置和常用命令
- 和菜鸟一起学linux之我的vim简单配置
- Linux下vim简单配置
- 【Linux】vim的简单配置
- Linux-vim的简单配置
- vim的简单配置及Linux下实现进度条
- linux中vim编辑器的简单配置
- linux下简单配置VIM
- linux下vim的简单配置
- linux普通用户进入终端后,设置vim ./vimrc ,输入set nu set tabstop=4,是简单配置vim的方法
- 和菜鸟一起学linux之我的vim简单配置
- 和菜鸟一起学linux之我的vim简单配置
- linux 简单配置汇总 上
- 一步一步学会linux之二: 简单配置vsftpd服务器(附vsftpd.conf的参数说明)