濮阳杆衣贸易有限公司

主頁 > 知識庫 > linux Vim經(jīng)典配置一例

linux Vim經(jīng)典配置一例

熱門標簽:內(nèi)蒙古電信外呼系統(tǒng) 漳州外呼系統(tǒng)怎么樣 地圖標注小區(qū)項目入駐 曲阜地圖標注app 4s店如何在百度地圖標注 凱立德劇院地圖標注 哪個地圖標注更清晰 天津人工電銷機器人費用 開封400電話辦理價格
有需要的朋友可以參考下。

復制代碼
代碼如下:

" This is my _vimrc under windows platform
" and it can be used on *nix too
" all the difference of them is the font setting session
" happy Viming,
" copyLeft (#) Abruzzi John

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 the back space
set backspace=indent,eol,start "這行比較重要,剛接觸vim的朋友會發(fā)現(xiàn)有時候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

" the following function is used for show the status bar on the buttom
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

" this is a setting of font
if has("win32")
set guifont=Courier_New:h10:cANSI
endif

" make sure that syntax always on
if exists("syntax_on")
syntax reset
else
syntax on
endif


" java complete
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
" set win32 shell
endif

" set auto read when file is changed from outside
if exists("autoread")
set autoread
endif

" enable the mouse
if exists("mouse")
set mouse=a
endif

" set mapleader
let mapleader=","
let g:mapleader=","

"fast saving
nmap leader>x :xa!cr>
nmap leader>w :w!cr>

"switch to current directory
map leader>cd :cd %:p:hcr>

" just for fun
map F9> ggVGg?

" folding code
if exists("foldenable")
set fen
endif

if exists("foldlevel")
set fdl=0
endif

" tag list --
map F3> :Tlistcr>

"remove the windows ^M windows系統(tǒng)中常常可以看到文本中夾雜著^M這樣的控制字符,用此命令刪除之
noremap leader>m :%s/

標簽:武漢 綿陽 南陽 黔南 開封 陽泉 莆田 南京

巨人網(wǎng)絡通訊聲明:本文標題《linux Vim經(jīng)典配置一例》,本文關(guān)鍵詞  linux,Vim,經(jīng)典,配置,一例,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡,涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《linux Vim經(jīng)典配置一例》相關(guān)的同類信息!
  • 本頁收集關(guān)于linux Vim經(jīng)典配置一例的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    磴口县| 翁牛特旗| 吉安市| 怀远县| 江孜县| 穆棱市| 水富县| 江源县| 砀山县| 宜宾市| 郸城县| 龙泉市| 南昌市| 科尔| 襄汾县| 太白县| 沂南县| 昌图县| 托里县| 饶阳县| 泸溪县| 新邵县| 江都市| 招远市| 永登县| 龙门县| 广河县| 马边| 阜新市| 新野县| 汉川市| 民权县| 苏州市| 长顺县| 墨脱县| 汉阴县| 上林县| 兴仁县| 萝北县| 大渡口区| 海淀区|