在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
使用vim做rails开发,推荐这个 https://github.com/carlhuda/janus
1. vim下的Rails常用插件
paul@RoR:~$ ls -la ~/.vim/plugin/
total 320 drwxr-xr-x 2 paul paul 4096 2011-07-26 12:20 . drwxr-xr-x 11 paul paul 4096 2011-07-25 12:04 .. -rw-r----- 1 paul paul 8767 2011-07-23 23:44 autoclose.vim -rw-r--r-- 1 paul paul 7920 2010-01-20 23:59 color_sample_pack.vim -rw-r--r-- 1 paul paul 8758 2010-09-28 23:55 fuf.vim -rw-r--r-- 1 paul paul 3139 2010-09-28 23:55 l9.vim -rw-r--r-- 1 paul paul 128014 2009-12-01 17:20 NERD_tree.vim -rw-r--r-- 1 paul paul 13606 2010-08-11 02:23 rails.vim -rw-r--r-- 1 paul paul 7984 2011-06-17 16:40 rubytest.vim -rw-r----- 1 paul paul 13579 2011-07-24 01:30 ScrollColor.vim -rw-r--r-- 1 paul paul 7442 2009-07-13 23:22 snipMate.vim -rw-r--r-- 1 paul paul 23978 2011-07-25 12:04 supertab.vim -rw-rw-r-- 1 paul paul 16960 2010-03-06 08:57 surround.vim -rw-r----- 1 paul paul 54261 2011-07-24 02:27 tabbar.vim
" 启动vim时窗口的大小
set lines=45 columns=200 " 不兼容VI键盘,使用vim键盘 set nocompatible " 文件类型识别 filetype on filetype plugin indent on " 禁止生成临时文件 set nobackup set noswapfile " 历史记录数 set history=50 " 设置编码 set enc=utf-8 " 设置文件编码 set fenc=utf-8 " 设置文件编码检测类型及支持格式 set fencs=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 " 设置开启语法高亮 syntax on " 显示行号 set number " 高亮显示匹配的括号 set showmatch " 搜索忽略大小写 set ignorecase " 查找结果高亮度显示 set hlsearch set incsearch " tab宽度 set tabstop=4 set cindent shiftwidth=4 set autoindent shiftwidth=4 " 命令行下按tab键自动完成 set wildmode=list:full set wildmenu " 设置默认的颜色 colorscheme darkblue " 带有如下符号的单词不要被换行分割 set iskeyword+=_,$,@,%,#,- " 通过使用: commands命令,告诉我们文件的哪一行被改变过 set report=0 " 可以在buffer的任何地方使用鼠标(类似office中在工作区双击鼠标定位) set mouse=a set selection=exclusive set selectmode=mouse,key " 设置自动保存 imap <F9> <Esc>:up<cr> " 把 F8 映射到 启动NERDTree插件 let NERDTreeShowBookmarks = 1 let NERDChristmasTree = 1 let NERDTreeWinPos = "left" map <F8> :NERDTree<CR> " 在不同的窗口移动 map <C-j> <C-W>j map <C-k> <C-W>k map <C-h> <C-W>h map <C-l> <C-W>l " 设置FuzzyFinder let mapleader = "\\" map <leader>F :FufFile<CR> map <leader>f :FufTaggedFile<CR> map <leader>g :FufTag<CR> map <leader>b :FufBuffer<CR> " 设置Color-Sample map <silent><F3> :NEXTCOLOR<cr> map <silent><F2> :PREVCOLOR<cr> " 设置Rubytest let g:rubytest_cmd_spec = "rspec -fd %p" " 设置SuperTab let g:SuperTabRetainCompletionType="context"
" 设置SuperTab
let g:SuperTabRetainCompletionType="context"
" 设置FuzzyFinder
let mapleader = "\\" map <leader>F :FufFile<CR> map <leader>f :FufTaggedFile<CR> map <leader>g :FufTag<CR> map <leader>b :FufBuffer<CR>
let g:rubytest_cmd_spec = "rspec -fd %p"
http://www.vim.org/scripts/script.php?script_id=1338
http://www.vim.org/scripts/script.php?script_id=1488
http://www.vim.org/scripts/script.php?script_id=159
http://www.vim.org/scripts/script.php?script_id=1643
http://www.vim.org/scripts/script.php?script_id=1658
http://www.vim.org/scripts/script.php?script_id=1697
http://www.vim.org/scripts/script.php?script_id=1849
http://www.vim.org/scripts/script.php?script_id=1984
http://www.vim.org/scripts/script.php?script_id=2540
http://www.vim.org/scripts/script.php?script_id=2612
http://www.vim.org/scripts/script.php?script_id=273
http://www.vim.org/scripts/script.php?script_id=3252
http://www.vim.org/scripts/script.php?script_id=625
http://www.vim.org/scripts/script.php?script_id=90
http://www.vim.org/scripts/script.php?script_id=95 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论