|
|
(未显示同一用户的17个中间版本) |
第1行: |
第1行: |
| 我的一些设置保存,以后修改!
| | 喜欢使用ubuntu和vim,但是都不是很了解,都在慢慢学! |
|
| |
|
| plugin<br>---------------<br>taglist.vim<br>encode_japan.vim<br>readcsv.vim<br>NERD_commenter.vim<br>supertab.vim<br>util_corey.vim
| | 最近写的一个gvim的marks脚本。方便自己方便大家! |
|
| |
|
| colors<br>---------<br>corey.vim
| | 链接 http://www.vim.org/scripts/script.php?script_id=2194<br> |
|
| |
|
| exe & dll<br>---------<br>ctags.exe<br>gvimext.dll<br>iconv.dll<br>intl2.dll<br>msvcr71.dll<br>libint.dll<br>VisVim.dll
| | [[Image:Vim marks.PNG|vim marks]] |
|
| |
|
| installer<br>---------------<br>gvim.nsis<br>awiconsprosetup.exe
| |
|
| |
|
| vi.cmd
| |
|
| |
|
| ====================================================<br>"args **/*.jsp<br>"argdo %s/old/target/c | update
| | <br> |
| | |
| " Section: utillity tools {{{1<br>" ===================================================<br>func Search_Word()<br> let w = expand("<cword>")<br> "exe "vimgrep " w "*.java *.jsp *.php *.c *.h *.htm" <br> exe "vimgrep " w "**/*.*" <br> exe 'copen' <br>endfun
| |
| | |
| func TrimSpaceLine()<br> execute 'g/^\s*$/d'<br>endfun<br>func TrimEndSpace()<br> execute '%s/\s*$//'<br>endfun
| |
| | |
| func SelectTabpage()<br> execute 'tabn'<br>endfun
| |
| | |
| func NewTabpage()<br> execute 'tabnew'<br>endfun
| |
| | |
| func Insert_0_Number()<br> execute 'g/^/exec "s/^/".strpart("000000000000".line("."). " ",<br> len("000000000000".line("."). " ")-len(line("$"))-1 ) '<br>endfun
| |
| | |
| func Insert_Number()<br> execute 'g/^/exec "s/^/".strpart(line(".")." ", 0, len(line("$")) + 1)'<br>endfun
| |
| | |
| func SaveP()<br> <br> call inputsave()<br> let Pname = input('Save Project name?')<br> call inputrestore()
| |
| | |
| 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 CancleHighlightCurrentLine()<br> au! Cursorhold<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 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
| |
| | |
| " 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 <silent>' . ',te' . ' :call TrimEndSpace()<cr>'<br>execute 'vnoremap <silent>' . ',te' . ' <ESC>:call TrimEndSpace()<cr>'
| |
| | |
| " set up the mappings to trim space line<br>execute 'nnoremap <silent>' . ',tl' . ' :call TrimSpaceLine()<cr>'<br>execute 'vnoremap <silent>' . ',tl' . ' <ESC>:call TrimSpaceLine()<cr>'
| |
| | |
| " set up the mappings to Cancle and set Highlight Current Line<br>execute 'nnoremap <silent>' . 'mm' . ' :call CancleHighlightCurrentLine()<cr>'<br>execute 'vnoremap <silent>' . 'mm' . ' <ESC>:call CancleHighlightCurrentLine()<cr>'
| |
| | |
| execute 'nnoremap <silent>' . 'mn' . ' :call SetHighlightCurrentLine()<cr>'<br>execute 'vnoremap <silent>' . 'mn' . ' <ESC>:call SetHighlightCurrentLine()<cr>'
| |
| | |
| execute 'nnoremap <silent>' . 'mv' . ' :call SetHighlightUnderLine()<cr>'<br>execute 'vnoremap <silent>' . 'mv' . ' <ESC>:call SetHighlightUnderLine()<cr>'
| |
| | |
| "NewTabpage<br>execute 'nnoremap <silent>' . 'tt' . ' :call NewTabpage()<cr>'<br>execute 'vnoremap <silent>' . 'tt' . ' <ESC>:call NewTabpage()<cr>'
| |
| | |
| " Section: Menu item setup {{{1<br>" ===========================================================================<br>"check if the user wants the menu to be displayed <br>if 1 != 0
| |
| | |
| let menuRoot = '&Plugin.&util'<br> <br> execute 'menu <silent> '. menuRoot .'.-Sep- :'<br> execute 'nmenu <silent> '. menuRoot .'.Trim\ End\ Space<TAB>' .<br>escape(',te', '\') . ' :call TrimEndSpace()<CR>'<br> execute 'nmenu <silent> '. menuRoot .'.Trim\ Space\ Line<TAB>' . <br>escape(',tl', '\') . ' :call TrimSpaceLine()<CR>'
| |
| | |
| execute 'menu <silent> '. menuRoot .'.-Sep2- :'<br> execute 'nmenu <silent> '. menuRoot .'.Cancle\ Highlight\ CurrentLine<TAB>' .<br> escape('mm', '\') . ' :call CancleHighlightCurrentLine()<CR>'<br> execute 'nmenu <silent> '. menuRoot .'.Set\ Highlight\ CurrentLine<TAB>' .<br> escape('mn', '\') . ' :call SetHighlightCurrentLine()<CR>'<br> execute 'nmenu <silent> '. menuRoot .'.Set\ Underline\ CurrentLine<TAB>' .<br> escape('mv', '\') . ' :call SetHighlightUnderLine()<CR>'
| |
| | |
| execute 'menu <silent> '. menuRoot .'.-Sep3- :'<br> execute 'nmenu <silent> '. menuRoot .'.New\ Tabpage<TAB>' . escape('tt', '\') .<br> ' :call NewTabpage()<CR>'<br> execute 'nmenu <silent> '. menuRoot .'.Insert\ Number,\ 0\ Ahead<TAB>' .<br> escape(' ', '\') . ' :call Insert_0_Number()<CR>'<br> execute 'nmenu <silent> '. menuRoot .'.Insert\ Number,\ No\ 0<TAB>' .<br> escape(' ', '\') . ' :call Insert_Number()<CR>'
| |
| | |
| endif<br>" vim: set foldmethod=marker :
| |
| | |
| ----
| |
| | |
| gvimrc---------------------<br>set nowrap<br>set expandtab<br>set noignorecase<br>set guioptions+=b
| |
| | |
| :call SetHighlightUnderLine()
| |
| | |
| "au GUIEnter * simalt ~x "maximum the initial window
| |
| | |
| map <C-tab> :call SelectTabpage()<CR><br>map <F6> :call SaveP()<CR><br>map <F5> :call ReloadP()<CR><br>" input the tab, need to comment out [set expandtab]<br>inoremap <S-t> <tab>
| |
| | |
| if has("statusline")<br> set statusline=%<%f\ %h%m%r%=%{\"[\".<br> (&fenc==\"\"?&enc:&fenc).\"]\ \"}%k\ %-14.(%l,%c%V%)\ %P<br>endif<br>
| |
| | |
| ===================================
| |
| | |
| File ${VIMRT}\gvim.exe<br> File ${VIMRT}\install.exe<br> File ${VIMRT}\uninstal.exe<br> File ${VIMRT}\vimrun.exe<br> File ${VIMRT}\xxd.exe<br> File ${VIMRT}\diff.exe<br> File ${VIMRT}\vimtutor.bat<br> File ${VIMRT}\README.txt<br> File ${VIMRT}\uninstal.txt<br> File ${VIMRT}\*.vim<br> File ${VIMRT}\rgb.txt<br> File ${VIMRT}\ctags.exe<br> File ${VIMRT}\iconv.dll<br> File ${VIMRT}\intl2.dll<br> File ${VIMRT}\msvcr71.dll
| |
| | |
| SetOutPath $INSTDIR<br> File ${VIMRT}\gvimrc<br><br>
| |