vim 右键关联,单VIM多TAB页使用

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT/*/shell/Edit with Vim]
@="&Go to Vim"
[HKEY_CLASSES_ROOT/*/shell/Edit with Vim/command]
@="/"D:/root/soft/vim/vim72/gvim.exe/" -p --remote-tab-silent /"%1/" /"%*/""

 

 

■REGEDIT的效果

"D:/root/soft/vim/vim72/gvim.exe" -p --remote-tab-silent "%1" "%*"

 

.vimrc:

 

set guifont=MS_ゴシック:h10:cSHIFTJIS
"set guifont=NSimSun:h10
"set encoding=utf-8
"set helplang=cn
"最大化窗口
"au GUIEnter * simalt ~x
set go=ebr
set nu
set ts=1
set nobackup

set nowrap
"colorscheme evening
"colorscheme wombat
"colorscheme default
"colorscheme darkblue
"colorscheme candycode
colorscheme darkdevel
set t_Co=256
syntax on
" *.gg ファイルを自動的にロード
augroup filetypedetect
        au BufNewFile,BufRead *.mm setf mm
        au BufNewFile,BufRead *.gg setf gg
augroup END

"Start the gvim with the Maximized window
"au GUIEnter * simalt ~x

cd $HOME
iab nn [未][2008/10/00 金]
iab // /*  */
"map <C-w> :wq!<CR>
map ,w :w!<CR>
"map <C-q> :q!<CR>
map <S-ESC> :q!<CR>
map ,q :q!<CR>
map <C-o> :browse confirm e<CR>
"format sql text
map <F12> :so D:/root/soft/vim/vim72/sqlFormat.vim<CR>
map <F9> :set ft=sql<CR>:so D:/root/soft/vim/vim72/sqlitab.vim<CR>
map <F8> :colorscheme evening<CR>
map <F5> :e! $VIM/vim72/.vimrc<CR>
map <C-j> :simalt ~x<CR>

winpos 800 100
set lines=40
set columns=120
"set columns=60

autocmd BufEnter * lcd %:p:h  

set nobackup
set ts=4
set expandtab
set ignorecase
set filetype=sql
set showmatch
set number
""消除?声
set vb t_vb=".

set autoindent                   "Preserve current indent on new lines
set textwidth=78                 "Wrap at this column
set backspace=indent,eol,start    "Make backspaces delete sensibly
 
set tabstop=4                     "Indentation levels every four columns
set expandtab                     "Convert all tabs typed to spaces
set shiftwidth=4                  "Indent/outdent by four columns
set shiftround                    "Indent/outdent to nearest tabstop

set matchpairs+=<:>               "Allow % to bounce between angles too

 

"tab
set guitablabel=%N// %t/ %M

map <M-1> 1gt
map <M-2> 2gt
map <M-3> 3gt
map <M-4> 4gt
map <M-5> 5gt
map <M-6> 6gt
map <M-7> 7gt
map <M-8> 8gt
map <M-9> 9gt
map <M-F1> :tabclose<CR>
map <M-F2> :tabedit<CR>

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值