用户讨论:Corey:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Corey留言 | 贡献
无编辑摘要
Corey留言 | 贡献
无编辑摘要
第1行: 第1行:
我的一些设置保存,以后修改!
我的一些设置保存,以后修改!


plugin<br>---------------<br>taglist.vim<br>encode_japan.vim (encode_corey)<br>readcsv.vim<br>NERD_commenter.vim<br>supertab.vim<br>util_corey.vim
plugin<br>---------------<br>taglist.vim<br>encode_corey.vim<br>readcsv.vim<br>NERD_commenter.vim<br>supertab.vim<br>util_corey.vim


colors<br>---------<br>corey.vim<br>hi CursorLine term=underline cterm=underline gui=underline ctermbg=NONE guibg=NONE
colors<br>---------<br>corey.vim<br>" Last Change: 2008 March 12<br>" This idea comes from evening scheme.<br>hi CursorLine term=underline cterm=underline gui=underline ctermbg=NONE guibg=NONE<br>hi CuMe ctermbg=darkgrey guibg=darkgrey term=NONE cterm=NONE gui=NONE


exe &amp; dll<br>---------<br>ctags.exe<br>gvimext.dll<br>iconv.dll<br>intl2.dll<br>msvcr71.dll<br>libint.dll<br>VisVim.dll
exe &amp; dll<br>---------<br>ctags.exe<br>gvimext.dll<br>iconv.dll<br>intl2.dll<br>msvcr71.dll<br>libint.dll<br>VisVim.dll
第29行: 第29行:
("$"))-1 ) '<br>endfun
("$"))-1 ) '<br>endfun


func SaveP()<br> <br> call inputsave()<br> let Pname = input('Save Project name?')<br> call inputrestore()
func SaveP()<br> call inputsave()<br> let Pname = input('Save Project name?')<br> call inputrestore()


execute 'mksession! ~\'.Pname.'.vim'<br> execute 'wviminfo! ~\'.Pname.'.viminfo'<br>endfun
execute 'mksession! ~\'.Pname.'.vim'<br> execute 'wviminfo! ~\'.Pname.'.viminfo'<br>endfun


func ReloadP()<br> <br> call inputsave()<br> let Pbname = input('Load Project name?')<br> call inputrestore()<br> <br> execute 'source ~\'.Pbname.'.vim'<br> execute 'rviminfo ~\'.Pbname.'.viminfo'<br>endfun
func ReloadP()<br> call inputsave()<br> let Pbname = input('Load Project name?')<br> call inputrestore()<br> <br> execute 'source ~\'.Pbname.'.vim'<br> execute 'rviminfo ~\'.Pbname.'.viminfo'<br>endfun


func CancleHighlightCurrentLine()<br> au! Cursorhold<br> match none<br>endfun
func CancleMarkCL()<br> match none<br>endfun


func SetHighlightUnderLine()<br> call CancleHighlightCurrentLine()<br> "highlight CurrentLine guibg=darkgrey guifg=white (or whatever colors you want)<br> hi CurrentLine term=underline cterm=underline gui=underline ctermbg=NONE guibg=NONE<br> au! Cursorhold * exe 'match CurrentLine /\%' . line('.') . 'l.*/'<br> au! InsertEnter * match none<br> set ut=60<br>endfun
"func SetHighlightUnderLine()<br> "call CancleMarkCL()<br> ""highlight CurrentLine guibg=darkgrey guifg=white (or whatever colors you want)<br> "hi CurrentLine term=underline cterm=underline gui=underline ctermbg=NONE guibg=NONE<br> "au! Cursorhold * exe 'match CurrentLine /\%' . line('.') . 'l.*/'<br> "au! InsertEnter * match none<br> "set ut=60<br>"endfun


func SetHighlightCurrentLine()<br> call CancleHighlightCurrentLine()<br> hi CurrentLine ctermbg=darkgrey guibg=darkgrey term=NONE cterm=NONE gui=NONE<br> au! Cursorhold * exe 'match CurrentLine /\%' . line('.') . 'l.*/'<br> au! InsertEnter * match none<br> set ut=60<br>endfun
func SetMarkCL()<br> hi CurrentLine ctermbg=darkgrey guibg=darkgrey term=NONE cterm=NONE gui=NONE<br> exe 'match CuMe /\%' . line('.') . 'l.*/'<br>endfun


func SetSimsun()<br> set guifont=NSimSun:h14:cGB2312<br> set printfont=NSimSun:h13:cGB2312<br>endfun
func SetSimsun()<br> set guifont=NSimSun:h14:cGB2312<br> set printfont=NSimSun:h13:cGB2312<br>endfun
第45行: 第45行:
func SetGothic()<br> set guifont=MS_Gothic:h14:cSHIFTJIS<br> set printfont=MS_Gothic:h13:cSHIFTJIS<br>endfun
func SetGothic()<br> set guifont=MS_Gothic:h14:cSHIFTJIS<br> set printfont=MS_Gothic:h13:cSHIFTJIS<br>endfun


func SetUTF8()<br> set encoding=utf-8<br>endfun<br>
func SetUTF8()<br> set encoding=utf-8<br>endfun<br>" Section: Comment mapping setup {{{1<br>" ===========================================================================<br>" This is where the mappings calls are made that set up the commenting key<br>" mappings.<br>" set up the mappings to trim space at the line's end<br>execute 'nnoremap &lt;silent&gt;' . ',te' . ' :call TrimEndSpace()&lt;cr&gt;'<br>execute 'vnoremap &lt;silent&gt;' . ',te' . ' &lt;ESC&gt;:call TrimEndSpace()&lt;cr&gt;'


" Section: Comment mapping setup {{{1<br>" ===========================================================================<br>" This is where the mappings calls are made that set up the commenting key<br>" mappings.<br>" set up the mappings to trim space at the line's end<br>execute 'nnoremap &lt;silent&gt;' . ',te' . '&nbsp;:call TrimEndSpace()&lt;cr&gt;'<br>execute 'vnoremap &lt;silent&gt;' . ',te' . ' &lt;ESC&gt;:call TrimEndSpace()&lt;cr&gt;'
" set up the mappings to trim space line<br>execute 'nnoremap &lt;silent&gt;' . ',tl' . ' :call TrimSpaceLine()&lt;cr&gt;'<br>execute 'vnoremap &lt;silent&gt;' . ',tl' . ' &lt;ESC&gt;:call TrimSpaceLine()&lt;cr&gt;'


" set up the mappings to trim space line<br>execute 'nnoremap &lt;silent&gt;' . ',tl' . '&nbsp;:call TrimSpaceLine()&lt;cr&gt;'<br>execute 'vnoremap &lt;silent&gt;' . ',tl' . ' &lt;ESC&gt;:call TrimSpaceLine()&lt;cr&gt;'
" set up the mappings to Cancle and set Highlight Current Line<br>execute 'nnoremap &lt;silent&gt;' . 'mn' . ' :call CancleMarkCL()&lt;cr&gt;'<br>execute 'vnoremap &lt;silent&gt;' . 'mn' . ' &lt;ESC&gt;:call CancleMarkCL()&lt;cr&gt;'


" set up the mappings to Cancle and set Highlight Current Line<br>execute 'nnoremap &lt;silent&gt;' . 'mm' . '&nbsp;:call CancleHighlightCurrentLine()&lt;cr&gt;'<br>execute 'vnoremap &lt;silent&gt;' . 'mm' . ' &lt;ESC&gt;:call CancleHighlightCurrentLine()&lt;cr&gt;'
execute 'nnoremap &lt;silent&gt;' . 'mm' . ' :call SetMarkCL()&lt;cr&gt;'<br>execute 'vnoremap &lt;silent&gt;' . 'mm' . ' &lt;ESC&gt;:call SetMarkCL()&lt;cr&gt;'


execute 'nnoremap &lt;silent&gt;' . 'mn' . '&nbsp;:call SetHighlightCurrentLine()&lt;cr&gt;'<br>execute 'vnoremap &lt;silent&gt;' . 'mn' . ' &lt;ESC&gt;:call SetHighlightCurrentLine()&lt;cr&gt;'
"execute 'nnoremap &lt;silent&gt;' . 'mv' . ' :call SetHighlightUnderLine()&lt;cr&gt;'<br>"execute 'vnoremap &lt;silent&gt;' . 'mv' . ' &lt;ESC&gt;:call SetHighlightUnderLine()&lt;cr&gt;'


execute 'nnoremap &lt;silent&gt;' . 'mv' . '&nbsp;:call SetHighlightUnderLine()&lt;cr&gt;'<br>execute 'vnoremap &lt;silent&gt;' . 'mv' . ' &lt;ESC&gt;:call SetHighlightUnderLine()&lt;cr&gt;'
"NewTabpage<br>execute 'nnoremap &lt;silent&gt;' . 'tt' . ' :call NewTabpage()&lt;cr&gt;'<br>execute 'vnoremap &lt;silent&gt;' . 'tt' . ' &lt;ESC&gt;:call NewTabpage()&lt;cr&gt;'


"NewTabpage<br>execute 'nnoremap &lt;silent&gt;' . 'tt' . '&nbsp;:call NewTabpage()&lt;cr&gt;'<br>execute 'vnoremap &lt;silent&gt;' . 'tt' . ' &lt;ESC&gt;:call NewTabpage()&lt;cr&gt;'
" Section: Menu item setup {{{1<br>" ===========================================================================<br>"check if the user wants the menu to be displayed <br>if 1 != 0


" Section: Menu item setup {{{1<br>" ===========================================================================<br>"check if the user wants the menu to be displayed <br>if 1&nbsp;!= 0
let menuRoot = '&amp;Plugin.&amp;util'<br> <br> execute 'menu &lt;silent&gt; '. menuRoot .'.-Sep- :'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Trim\ End\ Space&lt;TAB&gt;' . escape(',te', '\') . ' :call


let menuRoot = '&amp;Plugin.&amp;util'<br> <br> execute 'menu &lt;silent&gt; '. menuRoot .'.-Sep-&nbsp;:'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Trim\ End\ Space&lt;TAB&gt;' . escape(',te', '\') . '&nbsp;:call
TrimEndSpace()&lt;CR&gt;'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Trim\ Space\ Line&lt;TAB&gt;' . escape(',tl', '\') . ' :call
 
TrimEndSpace()&lt;CR&gt;'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Trim\ Space\ Line&lt;TAB&gt;' . escape(',tl', '\') . '&nbsp;:call


TrimSpaceLine()&lt;CR&gt;'
TrimSpaceLine()&lt;CR&gt;'


execute 'menu &lt;silent&gt; '. menuRoot .'.-Sep2-&nbsp;:'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Cancle\ Highlight\ CurrentLine&lt;TAB&gt;' . escape('mm', '\') . '
execute 'menu &lt;silent&gt; '. menuRoot .'.-Sep2- :'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Cancle\ Mark&lt;TAB&gt;' . escape('mn', '\') . ' :call CancleMarkCL()


:call CancleHighlightCurrentLine()&lt;CR&gt;'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Set\ Highlight\ CurrentLine&lt;TAB&gt;' . escape('mn', '\') . '&nbsp;:call
&lt;CR&gt;'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Mark\ CurrentLine&lt;TAB&gt;' . escape('mm', '\') . ' :call SetMarkCL


SetHighlightCurrentLine()&lt;CR&gt;'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Set\ Underline\ CurrentLine&lt;TAB&gt;' . escape('mv', '\') . '&nbsp;:call
()&lt;CR&gt;'<br> "execute 'nmenu &lt;silent&gt; '. menuRoot .'.Set\ Underline\ CurrentLine&lt;TAB&gt;' . escape('mv', '\') . ' :call


SetHighlightUnderLine()&lt;CR&gt;'
SetHighlightUnderLine()&lt;CR&gt;'


execute 'menu &lt;silent&gt; '. menuRoot .'.-Sep3-&nbsp;:'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.New\ Tabpage&lt;TAB&gt;' . escape('tt', '\') . '&nbsp;:call NewTabpage()
execute 'menu &lt;silent&gt; '. menuRoot .'.-Sep3- :'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.New\ Tabpage&lt;TAB&gt;' . escape('tt', '\') . ' :call NewTabpage()


&lt;CR&gt;'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Insert\ Number,\ 0\ Ahead&lt;TAB&gt;' . escape(' ', '\') . '&nbsp;:call
&lt;CR&gt;'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Insert\ Number,\ 0\ Ahead&lt;TAB&gt;' . escape(' ', '\') . ' :call


Insert_0_Number()&lt;CR&gt;'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Insert\ Number,\ No\ 0&lt;TAB&gt;' . escape(' ', '\') . '&nbsp;:call
Insert_0_Number()&lt;CR&gt;'<br> execute 'nmenu &lt;silent&gt; '. menuRoot .'.Insert\ Number,\ No\ 0&lt;TAB&gt;' . escape(' ', '\') . ' :call


Insert_Number()&lt;CR&gt;'
Insert_Number()&lt;CR&gt;'


amenu 1.51 PopUp.-SEP_COREY- &lt;Nop&gt;<br> amenu &lt;script&gt; &lt;silent&gt; 1.52 PopUp.Trim\ &amp;End\ Space&nbsp;:call TrimEndSpace()&lt;CR&gt;<br> amenu &lt;script&gt; &lt;silent&gt; 1.53 PopUp.Trim\ Space\ Li&amp;ne&nbsp;:call TrimSpaceLine()&lt;CR&gt;<br> amenu &lt;script&gt; &lt;silent&gt; 1.54 PopUp.Insert\ Nu&amp;mber&nbsp;:call Insert_Number()&lt;CR&gt;
amenu 1.51 PopUp.-SEP_COREY- &lt;Nop&gt;<br> amenu &lt;script&gt; &lt;silent&gt; 1.52 PopUp.Trim\ &amp;End\ Space :call TrimEndSpace()&lt;CR&gt;<br> amenu &lt;script&gt; &lt;silent&gt; 1.53 PopUp.Trim\ Space\ Li&amp;ne :call TrimSpaceLine()&lt;CR&gt;<br> amenu &lt;script&gt; &lt;silent&gt; 1.54 PopUp.Insert\ Nu&amp;mber :call Insert_Number()&lt;CR&gt;
 
amenu &lt;script&gt; &lt;silent&gt; 1.56 PopUp.Font.&amp;Simsun&nbsp;:call SetSimsun()&lt;CR&gt;<br> amenu &lt;script&gt; &lt;silent&gt; 1.57 PopUp.Font.&amp;Gothic&nbsp;:call SetGothic()&lt;CR&gt;<br>
 
amenu &lt;script&gt; &lt;silent&gt; 1.58 PopUp.UTF-&amp;8 :call SetUTF8()&lt;CR&gt;<br> endif<br>" vim: set foldmethod=marker&nbsp;:


----
amenu &lt;script&gt; &lt;silent&gt; 1.56 PopUp.Font.&amp;Simsun :call SetSimsun()&lt;CR&gt;<br> amenu &lt;script&gt; &lt;silent&gt; 1.57 PopUp.Font.&amp;Gothic :call SetGothic()&lt;CR&gt;<br> amenu &lt;script&gt; &lt;silent&gt; 1.58 PopUp.UTF-&amp;8 :call SetUTF8()&lt;CR&gt;<br> endif


encode_corey-----------------<br>elseif &amp;encoding ==? 'cp936'<br>let value = 'ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1'<br>"set encoding=japan<br>----------gvimrc---------------------<br>" vim:set ts=8 sts=2 sw=2 tw=0: (この行に関しては:help modelineを参照)<br>"---------------------------------------------------------------------------<br>"edited by corey<br>"<br>"<br>source $VIMRUNTIME/mswin.vim<br>source $VIMRUNTIME/gvimrc_example.vim
--------encode_corey-----------------<br>elseif &amp;encoding ==? 'cp936'<br>let value = 'ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1'<br>"set encoding=japan<br>----------gvimrc---------------------<br>"edited by corey<br>"<br>source $VIMRUNTIME/mswin.vim<br>source $VIMRUNTIME/gvimrc_example.vim


set encoding=japan<br>" カラー設定:<br>colorscheme corey<br>set nobk<br>set number<br>set shiftwidth=2<br>set softtabstop=4<br>set tabstop=4<br>autocmd BufNewFile,BufRead *.vb set ft=vbnet<br>autocmd BufNewFile,Bufread *.csv call CSVSELECT() <br>set nowrap<br>set expandtab<br>set noignorecase<br>set guioptions+=b
set encoding=japan<br>" カラー設定:<br>colorscheme corey<br>set nobk<br>set number<br>set shiftwidth=2<br>set softtabstop=4<br>set tabstop=4<br>autocmd BufNewFile,BufRead *.vb set ft=vbnet<br>autocmd BufNewFile,Bufread *.csv call CSVSELECT() <br>set nowrap<br>set expandtab<br>set noignorecase<br>set guioptions+=b


":call SetHighlightUnderLine()<br>set cul<br>au InsertEnter * set nocul<br>au InsertLeave * set cul
set cul<br>au InsertEnter * set nocul<br>au InsertLeave * set cul


"au GUIEnter * simalt ~x "maximum the initial window
"au GUIEnter * simalt ~x "maximum the initial window


map &lt;C-tab&gt;&nbsp;:call SelectTabpage()&lt;CR&gt;<br>map &lt;F6&gt;&nbsp;:call SaveP()&lt;CR&gt;<br>map &lt;F5&gt;&nbsp;:call ReloadP()&lt;CR&gt;
map &lt;C-tab&gt; :call SelectTabpage()&lt;CR&gt;<br>map &lt;F6&gt; :call SaveP()&lt;CR&gt;<br>map &lt;F5&gt; :call ReloadP()&lt;CR&gt;<br>map &lt;F3&gt; :call Search_Word()&lt;CR&gt; <br>map &lt;F8&gt; :TlistToggle&lt;CR&gt;<br>map &lt;F9&gt; :call CSV_HighlightPrevCol()&lt;CR&gt; <br>map &lt;F10&gt; :call CSV_HighlightNextCol()&lt;CR&gt; <br>map &lt;F11&gt; :call CSV_goto_field()&lt;CR&gt;<br>map &lt;F12&gt; :call CSV_SE()&lt;CR&gt;
 
map &lt;F3&gt;&nbsp;:call Search_Word()&lt;CR&gt; <br>"map &lt;F2&gt;&nbsp;:call TrimSpaceLine()&lt;CR&gt; <br>"map &lt;F4&gt;&nbsp;:call TrimEndSpace()&lt;CR&gt; <br>map &lt;F8&gt;&nbsp;:TlistToggle&lt;CR&gt;<br>map &lt;F9&gt;&nbsp;:call CSV_HighlightPrevCol()&lt;CR&gt; <br>map &lt;F10&gt;&nbsp;:call CSV_HighlightNextCol()&lt;CR&gt; <br>map &lt;F11&gt;&nbsp;:call CSV_goto_field()&lt;CR&gt;<br>map &lt;F12&gt;&nbsp;:call CSV_SE()&lt;CR&gt;


if has("statusline")<br> set statusline=%&lt;%f\ %h%m%r%=%{\"[\".(&amp;fenc==\"\"?&amp;enc:&amp;fenc).\"]\ \"}%k\ %-14.(%l,%c%V%)\ %P<br>endif
if has("statusline")<br> set statusline=%&lt;%f\ %h%m%r%=%{\"[\".(&amp;fenc==\"\"?&amp;enc:&amp;fenc).\"]\ \"}%k\ %-14.(%l,%c%V%)\ %P<br>endif


"set listchars=tab:&gt;-,trail:-<br>"---------------------------------------------------------------------------<br>" フォント設定:<br>"<br>if has('win32')<br><br>
" フォント設定:<br>"<br>if has('win32')<br><br>


====== =========== ======
====== =========== ======

2008年3月12日 (三) 16:37的版本

我的一些设置保存,以后修改!

plugin
---------------
taglist.vim
encode_corey.vim
readcsv.vim
NERD_commenter.vim
supertab.vim
util_corey.vim

colors
---------
corey.vim
" Last Change: 2008 March 12
" This idea comes from evening scheme.
hi CursorLine term=underline cterm=underline gui=underline ctermbg=NONE guibg=NONE
hi CuMe ctermbg=darkgrey guibg=darkgrey term=NONE cterm=NONE gui=NONE

exe & dll
---------
ctags.exe
gvimext.dll
iconv.dll
intl2.dll
msvcr71.dll
libint.dll
VisVim.dll

installer
---------------
gvim.nsis
vi.cmd(??)

==========util==========================================
"args **/*.jsp
"argdo %s/old/target/c | update

"g/^/exec "s/^/".strpart("000000000000".line("."). " ",len("000000000000".line("."). " ")-len(line("$"))-1 )
"g/^/exec "s/^/".strpart(line(".")." ", 0, len(line("$")) + 1)

" Section: utillity tools {{{1
" ======================================================
func Search_Word()
let w = expand("<cword>")
exe "vimgrep " w "**/*.java **/*.jsp **/*.php **/*.c **/*.h **/*.htm"
"exe "vimgrep " w "**/*.*"
exe 'copen'
endfun

func TrimSpaceLine()
execute 'g/^\s*$/d'
endfun
func TrimEndSpace()
execute '%s/\s*$//'
endfun

func SelectTabpage()
execute 'tabn'
endfun

func NewTabpage()
execute 'tabnew'
endfun

func Insert_0_Number()
execute 'g/^/exec "s/^/".strpart("000000000000".line("."). " ",len("000000000000".line("."). " ")-len

(line("$"))-1 ) '
endfun

func Insert_Number()
"execute 'g/^/exec "s/^/".strpart(line(".")." ", 0, len(line("$")) + 1)'
execute 'g/^/exec "s/^/".strpart(" ".line("."). " ",len(" ".line("."). " ")-len(line

("$"))-1 ) '
endfun

func SaveP()
call inputsave()
let Pname = input('Save Project name?')
call inputrestore()

execute 'mksession! ~\'.Pname.'.vim'
execute 'wviminfo! ~\'.Pname.'.viminfo'
endfun

func ReloadP()
call inputsave()
let Pbname = input('Load Project name?')
call inputrestore()

execute 'source ~\'.Pbname.'.vim'
execute 'rviminfo ~\'.Pbname.'.viminfo'
endfun

func CancleMarkCL()
match none
endfun

"func SetHighlightUnderLine()
"call CancleMarkCL()
""highlight CurrentLine guibg=darkgrey guifg=white (or whatever colors you want)
"hi CurrentLine term=underline cterm=underline gui=underline ctermbg=NONE guibg=NONE
"au! Cursorhold * exe 'match CurrentLine /\%' . line('.') . 'l.*/'
"au! InsertEnter * match none
"set ut=60
"endfun

func SetMarkCL()
hi CurrentLine ctermbg=darkgrey guibg=darkgrey term=NONE cterm=NONE gui=NONE
exe 'match CuMe /\%' . line('.') . 'l.*/'
endfun

func SetSimsun()
set guifont=NSimSun:h14:cGB2312
set printfont=NSimSun:h13:cGB2312
endfun

func SetGothic()
set guifont=MS_Gothic:h14:cSHIFTJIS
set printfont=MS_Gothic:h13:cSHIFTJIS
endfun

func SetUTF8()
set encoding=utf-8
endfun
" Section: Comment mapping setup {{{1
" ===========================================================================
" This is where the mappings calls are made that set up the commenting key
" mappings.
" set up the mappings to trim space at the line's end
execute 'nnoremap <silent>' . ',te' . ' :call TrimEndSpace()<cr>'
execute 'vnoremap <silent>' . ',te' . ' <ESC>:call TrimEndSpace()<cr>'

" set up the mappings to trim space line
execute 'nnoremap <silent>' . ',tl' . ' :call TrimSpaceLine()<cr>'
execute 'vnoremap <silent>' . ',tl' . ' <ESC>:call TrimSpaceLine()<cr>'

" set up the mappings to Cancle and set Highlight Current Line
execute 'nnoremap <silent>' . 'mn' . ' :call CancleMarkCL()<cr>'
execute 'vnoremap <silent>' . 'mn' . ' <ESC>:call CancleMarkCL()<cr>'

execute 'nnoremap <silent>' . 'mm' . ' :call SetMarkCL()<cr>'
execute 'vnoremap <silent>' . 'mm' . ' <ESC>:call SetMarkCL()<cr>'

"execute 'nnoremap <silent>' . 'mv' . ' :call SetHighlightUnderLine()<cr>'
"execute 'vnoremap <silent>' . 'mv' . ' <ESC>:call SetHighlightUnderLine()<cr>'

"NewTabpage
execute 'nnoremap <silent>' . 'tt' . ' :call NewTabpage()<cr>'
execute 'vnoremap <silent>' . 'tt' . ' <ESC>:call NewTabpage()<cr>'

" Section: Menu item setup {{{1
" ===========================================================================
"check if the user wants the menu to be displayed
if 1 != 0

let menuRoot = '&Plugin.&util'

execute 'menu <silent> '. menuRoot .'.-Sep- :'
execute 'nmenu <silent> '. menuRoot .'.Trim\ End\ Space<TAB>' . escape(',te', '\') . ' :call

TrimEndSpace()<CR>'
execute 'nmenu <silent> '. menuRoot .'.Trim\ Space\ Line<TAB>' . escape(',tl', '\') . ' :call

TrimSpaceLine()<CR>'

execute 'menu <silent> '. menuRoot .'.-Sep2- :'
execute 'nmenu <silent> '. menuRoot .'.Cancle\ Mark<TAB>' . escape('mn', '\') . ' :call CancleMarkCL()

<CR>'
execute 'nmenu <silent> '. menuRoot .'.Mark\ CurrentLine<TAB>' . escape('mm', '\') . ' :call SetMarkCL

()<CR>'
"execute 'nmenu <silent> '. menuRoot .'.Set\ Underline\ CurrentLine<TAB>' . escape('mv', '\') . ' :call

SetHighlightUnderLine()<CR>'

execute 'menu <silent> '. menuRoot .'.-Sep3- :'
execute 'nmenu <silent> '. menuRoot .'.New\ Tabpage<TAB>' . escape('tt', '\') . ' :call NewTabpage()

<CR>'
execute 'nmenu <silent> '. menuRoot .'.Insert\ Number,\ 0\ Ahead<TAB>' . escape(' ', '\') . ' :call

Insert_0_Number()<CR>'
execute 'nmenu <silent> '. menuRoot .'.Insert\ Number,\ No\ 0<TAB>' . escape(' ', '\') . ' :call

Insert_Number()<CR>'

amenu 1.51 PopUp.-SEP_COREY- <Nop>
amenu <script> <silent> 1.52 PopUp.Trim\ &End\ Space :call TrimEndSpace()<CR>
amenu <script> <silent> 1.53 PopUp.Trim\ Space\ Li&ne :call TrimSpaceLine()<CR>
amenu <script> <silent> 1.54 PopUp.Insert\ Nu&mber :call Insert_Number()<CR>

amenu <script> <silent> 1.56 PopUp.Font.&Simsun :call SetSimsun()<CR>
amenu <script> <silent> 1.57 PopUp.Font.&Gothic :call SetGothic()<CR>
amenu <script> <silent> 1.58 PopUp.UTF-&8 :call SetUTF8()<CR>
endif


encode_corey-----------------
elseif &encoding ==? 'cp936'
let value = 'ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1'
"set encoding=japan
----------gvimrc---------------------
"edited by corey
"
source $VIMRUNTIME/mswin.vim
source $VIMRUNTIME/gvimrc_example.vim

set encoding=japan
" カラー設定:
colorscheme corey
set nobk
set number
set shiftwidth=2
set softtabstop=4
set tabstop=4
autocmd BufNewFile,BufRead *.vb set ft=vbnet
autocmd BufNewFile,Bufread *.csv call CSVSELECT()
set nowrap
set expandtab
set noignorecase
set guioptions+=b

set cul
au InsertEnter * set nocul
au InsertLeave * set cul

"au GUIEnter * simalt ~x "maximum the initial window

map <C-tab> :call SelectTabpage()<CR>
map <F6> :call SaveP()<CR>
map <F5> :call ReloadP()<CR>
map <F3> :call Search_Word()<CR>
map <F8> :TlistToggle<CR>
map <F9> :call CSV_HighlightPrevCol()<CR>
map <F10> :call CSV_HighlightNextCol()<CR>
map <F11> :call CSV_goto_field()<CR>
map <F12> :call CSV_SE()<CR>

if has("statusline")
set statusline=%<%f\ %h%m%r%=%{\"[\".(&fenc==\"\"?&enc:&fenc).\"]\ \"}%k\ %-14.(%l,%c%V%)\ %P
endif

" フォント設定:
"
if has('win32')

===========

File ${VIMRT}\gvim.exe
File ${VIMRT}\install.exe
File ${VIMRT}\uninstal.exe
File ${VIMRT}\vimrun.exe
File ${VIMRT}\xxd.exe
File ${VIMRT}\diff.exe
File ${VIMRT}\vimtutor.bat
File ${VIMRT}\README.txt
File ${VIMRT}\uninstal.txt
File ${VIMRT}\*.vim
File ${VIMRT}\rgb.txt
File ${VIMRT}\ctags.exe
File ${VIMRT}\iconv.dll
File ${VIMRT}\intl2.dll
File ${VIMRT}\msvcr71.dll

SetOutPath $INSTDIR
File ${VIMRT}\gvimrc