日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

vim ruby

系統 1792 0

http://www.g0574.com/viewthread.php?tid=1142

http://blog.csdn.net/wooin/archive/2007/10/31/1858917.aspx

我的系統環境 寫道
Ubuntu 8.04
Ruby 1.9
VIM 7.1.138
Exuberant Ctags 5.7, Copyright (C) 1996-2007 Darren Hiebert
Compiled: Nov 14 2008, 14:57:42
Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex?

?

下面是我的配置文件:

    "========================================================
" Set vim colorscheme
colorscheme desert
"========================================================

"========================================================
" syntax highlight
syntax enable
syntax on
"========================================================

"========================================================
" Add the WinManagerWindow
" =======================================================
let g:winManagerWindowLayout='FileExplorer|TagList'
nmap wm :WMToggle<cr>

"========================================================
" Add the tagList
"========================================================
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1

"========================================================
" SuperTab Retain Completion
" =======================================================
let g:SuperTabRetaincompletionType=2

"========================================================
" Set the nocompatible for the vim not vi
" =======================================================
set nocompatible
set nu

"========================================================
" Set the key map
" =======================================================
map <F4> :w <CR> :!ctags -R % <CR> :TlistUpdate <CR>
imap <F4> <Esc><F4>
imap <F5> <Esc><F5>
imap <F6> <Esc><F6>
inoremap <C-space> <Esc>

map <C-s> <Esc>:w<CR>a
imap <C-s> <Esc><C-s>

map <C-f> :%s/
imap <C-f> <Esc><C-f>

map <A-a> <Esc>ggVG
imap <A-a> <Esc><A-a>
map <C-c> "+y
imap <C-c> <Esc><C-c>
map <C-v> p
imap <C-v> <Esc><C-v>

"========================================================
" Set the local
" =======================================================
setlocal encoding=utf-8
setlocal expandtab
setlocal autowrite
setlocal tabstop=2 shiftwidth=2 softtabstop=2
setlocal autoindent

"========================================================
" Set the filetype
" =======================================================
filetype on
filetype indent on
filetype plugin on

"========================================================
" Set the auto complete opt 
" =======================================================
set completeopt=longest,menu

"========================================================
" Set the vim for the dictionary and other basic setting
" =======================================================
"設置文件瀏覽器目錄為當前目錄
set nocompatible
set autochdir
"設置編碼
set enc=utf-8
"設置文件編碼
set fenc=utf-8
"設置文件編碼檢測類型及支持格式
set fencs=utf-8,gb18030,gbk,gb2312

  

?在配置了上述文件后,我又將附件中的各個vim的腳本文件放進去了。

現在感覺還是蠻不錯的,用這樣的編輯器進行簡單的語法學習和小規模的應用開發蠻合適的。

?

下面是使用的截圖:



?

vim ruby


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 郯城县| 衡山县| 奇台县| 沁阳市| 文昌市| 诸暨市| 大新县| 诏安县| 成安县| 措勤县| 阳江市| 武乡县| 成安县| 惠东县| 富平县| 藁城市| 偃师市| 塔河县| 阿图什市| 乌审旗| 巩义市| 嘉定区| 漳浦县| 怀来县| 托克逊县| 广德县| 永昌县| 平昌县| 教育| 淳化县| 沂源县| 甘南县| 平度市| 正镶白旗| 丰顺县| 清镇市| 达州市| 潍坊市| 南京市| 南雄市| 临江市|