mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 11:30:29 +01:00
Removed old windows related stuff, corrections for git repositories
This commit is contained in:
41
winrc.vim
41
winrc.vim
@@ -1,17 +1,11 @@
|
||||
set fileencoding=utf-8
|
||||
set runtimepath+=$VIM/vimfiles/bundle_win
|
||||
set viewoptions=cursor
|
||||
"set guifont=Consolas:h10:cEASTEUROPE
|
||||
set guifont=DejaVu_Sans_Mono:h9:cEASTEUROPE
|
||||
set listchars=tab:>-,trail:.
|
||||
set guioptions=ceg
|
||||
set mouse=a
|
||||
set enc=utf-8
|
||||
set printoptions=number:y
|
||||
set pfn=Consolas:h10:cEASTEUROPE
|
||||
|
||||
let Tlist_Ctags_Cmd = expand('$VIM/bin/ctags.exe')
|
||||
let g:tagbar_ctags_bin = expand('$VIM/bin/ctags.exe')
|
||||
" assuming all useful tools are in $VIM/bin directory
|
||||
let $PATH .= ";".expand('$VIM/bin')
|
||||
let g:browser = '"c:\Program Files\Mozilla Firefox\firefox.exe"'
|
||||
|
||||
autocmd BufWritePre *.spy :StripTrailingWhitespaces
|
||||
@@ -20,11 +14,6 @@ autocmd BufWritePre *.opl :StripTrailingWhitespaces
|
||||
autocmd BufRead *.opl set filetype=pd_opl
|
||||
autocmd BufRead *.py set filetype=python
|
||||
|
||||
"CTRL-P
|
||||
" Don't rely on VCS system, just do stuff relative to current dir. PMX sources
|
||||
" are too huge
|
||||
let g:ctrlp_working_path_mode = 0
|
||||
|
||||
"Grep
|
||||
" Note: xargs from GnuWin32 package are unusable with this plugin - it refuses
|
||||
" to pass find output to the grep. Fortunately, cygwin version (which is
|
||||
@@ -50,13 +39,6 @@ function GuiTabLabel()
|
||||
" add the tab number
|
||||
let label = '' "'['.tabpagenr()
|
||||
|
||||
" count number of open windows in the tab
|
||||
"let wincount = tabpagewinnr(v:lnum, '$')
|
||||
"if wincount > 1
|
||||
" let label .= ', '.wincount
|
||||
"endif
|
||||
"let label .= '] '
|
||||
|
||||
let buflist = tabpagebuflist(v:lnum)
|
||||
|
||||
" add the file name without path information
|
||||
@@ -80,23 +62,4 @@ if exists("g:vim_bin_path")
|
||||
endif
|
||||
let g:vim_bin_path = expand($VIM) . '/bin'
|
||||
|
||||
" Switch between HG and CVS in vcscommand plugin
|
||||
function <SID>VCSSwitch()
|
||||
echohl Statement
|
||||
if exists("g:VCSTypeOverride")
|
||||
if g:VCSTypeOverride == "HG"
|
||||
let g:VCSTypeOverride = "CVS"
|
||||
echo "Switched to CVS"
|
||||
else
|
||||
let g:VCSTypeOverride = "HG"
|
||||
echo "Switched to HG"
|
||||
endif
|
||||
else
|
||||
let g:VCSTypeOverride = "HG"
|
||||
echo "Switched to HG"
|
||||
endif
|
||||
echohl Normal
|
||||
endfunction
|
||||
map <F3> :call <SID>VCSSwitch()<cr>
|
||||
|
||||
" vim:ts=4:sw=4:wrap:fdm=marker:
|
||||
|
||||
Reference in New Issue
Block a user