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

来源:互联网 发布:淘宝店运营培训 编辑:程序博客网 时间:2024/06/06 01:35

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>

 

 

原创粉丝点击