mirror of
https://github.com/luzifer/vim.git
synced 2024-12-20 10:21:19 +00:00
Initial checkin
This commit is contained in:
parent
717eca6a39
commit
d9c2aaacec
6 changed files with 1428 additions and 0 deletions
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
[submodule "bundle/puppet"]
|
||||
path = bundle/puppet
|
||||
url = git://github.com/rodjek/vim-puppet.git
|
||||
[submodule "bundle/coffeescript"]
|
||||
path = bundle/coffeescript
|
||||
url = git://github.com/kchmck/vim-coffee-script.git
|
250
autoload/pathogen.vim
Normal file
250
autoload/pathogen.vim
Normal file
|
@ -0,0 +1,250 @@
|
|||
" pathogen.vim - path option manipulation
|
||||
" Maintainer: Tim Pope <http://tpo.pe/>
|
||||
" Version: 2.0
|
||||
|
||||
" Install in ~/.vim/autoload (or ~\vimfiles\autoload).
|
||||
"
|
||||
" For management of individually installed plugins in ~/.vim/bundle (or
|
||||
" ~\vimfiles\bundle), adding `call pathogen#infect()` to your .vimrc
|
||||
" prior to `filetype plugin indent on` is the only other setup necessary.
|
||||
"
|
||||
" The API is documented inline below. For maximum ease of reading,
|
||||
" :set foldmethod=marker
|
||||
|
||||
if exists("g:loaded_pathogen") || &cp
|
||||
finish
|
||||
endif
|
||||
let g:loaded_pathogen = 1
|
||||
|
||||
" Point of entry for basic default usage. Give a directory name to invoke
|
||||
" pathogen#runtime_append_all_bundles() (defaults to "bundle"), or a full path
|
||||
" to invoke pathogen#runtime_prepend_subdirectories(). Afterwards,
|
||||
" pathogen#cycle_filetype() is invoked.
|
||||
function! pathogen#infect(...) abort " {{{1
|
||||
let source_path = a:0 ? a:1 : 'bundle'
|
||||
if source_path =~# '[\\/]'
|
||||
call pathogen#runtime_prepend_subdirectories(source_path)
|
||||
else
|
||||
call pathogen#runtime_append_all_bundles(source_path)
|
||||
endif
|
||||
call pathogen#cycle_filetype()
|
||||
endfunction " }}}1
|
||||
|
||||
" Split a path into a list.
|
||||
function! pathogen#split(path) abort " {{{1
|
||||
if type(a:path) == type([]) | return a:path | endif
|
||||
let split = split(a:path,'\\\@<!\%(\\\\\)*\zs,')
|
||||
return map(split,'substitute(v:val,''\\\([\\,]\)'',''\1'',"g")')
|
||||
endfunction " }}}1
|
||||
|
||||
" Convert a list to a path.
|
||||
function! pathogen#join(...) abort " {{{1
|
||||
if type(a:1) == type(1) && a:1
|
||||
let i = 1
|
||||
let space = ' '
|
||||
else
|
||||
let i = 0
|
||||
let space = ''
|
||||
endif
|
||||
let path = ""
|
||||
while i < a:0
|
||||
if type(a:000[i]) == type([])
|
||||
let list = a:000[i]
|
||||
let j = 0
|
||||
while j < len(list)
|
||||
let escaped = substitute(list[j],'[,'.space.']\|\\[\,'.space.']\@=','\\&','g')
|
||||
let path .= ',' . escaped
|
||||
let j += 1
|
||||
endwhile
|
||||
else
|
||||
let path .= "," . a:000[i]
|
||||
endif
|
||||
let i += 1
|
||||
endwhile
|
||||
return substitute(path,'^,','','')
|
||||
endfunction " }}}1
|
||||
|
||||
" Convert a list to a path with escaped spaces for 'path', 'tag', etc.
|
||||
function! pathogen#legacyjoin(...) abort " {{{1
|
||||
return call('pathogen#join',[1] + a:000)
|
||||
endfunction " }}}1
|
||||
|
||||
" Remove duplicates from a list.
|
||||
function! pathogen#uniq(list) abort " {{{1
|
||||
let i = 0
|
||||
let seen = {}
|
||||
while i < len(a:list)
|
||||
if (a:list[i] ==# '' && exists('empty')) || has_key(seen,a:list[i])
|
||||
call remove(a:list,i)
|
||||
elseif a:list[i] ==# ''
|
||||
let i += 1
|
||||
let empty = 1
|
||||
else
|
||||
let seen[a:list[i]] = 1
|
||||
let i += 1
|
||||
endif
|
||||
endwhile
|
||||
return a:list
|
||||
endfunction " }}}1
|
||||
|
||||
" \ on Windows unless shellslash is set, / everywhere else.
|
||||
function! pathogen#separator() abort " {{{1
|
||||
return !exists("+shellslash") || &shellslash ? '/' : '\'
|
||||
endfunction " }}}1
|
||||
|
||||
" Convenience wrapper around glob() which returns a list.
|
||||
function! pathogen#glob(pattern) abort " {{{1
|
||||
let files = split(glob(a:pattern),"\n")
|
||||
return map(files,'substitute(v:val,"[".pathogen#separator()."/]$","","")')
|
||||
endfunction "}}}1
|
||||
|
||||
" Like pathogen#glob(), only limit the results to directories.
|
||||
function! pathogen#glob_directories(pattern) abort " {{{1
|
||||
return filter(pathogen#glob(a:pattern),'isdirectory(v:val)')
|
||||
endfunction "}}}1
|
||||
|
||||
" Turn filetype detection off and back on again if it was already enabled.
|
||||
function! pathogen#cycle_filetype() " {{{1
|
||||
if exists('g:did_load_filetypes')
|
||||
filetype off
|
||||
filetype on
|
||||
endif
|
||||
endfunction " }}}1
|
||||
|
||||
" Checks if a bundle is 'disabled'. A bundle is considered 'disabled' if
|
||||
" its 'basename()' is included in g:pathogen_disabled[]' or ends in a tilde.
|
||||
function! pathogen#is_disabled(path) " {{{1
|
||||
if a:path =~# '\~$'
|
||||
return 1
|
||||
elseif !exists("g:pathogen_disabled")
|
||||
return 0
|
||||
endif
|
||||
let sep = pathogen#separator()
|
||||
return index(g:pathogen_disabled, strpart(a:path, strridx(a:path, sep)+1)) != -1
|
||||
endfunction "}}}1
|
||||
|
||||
" Prepend all subdirectories of path to the rtp, and append all 'after'
|
||||
" directories in those subdirectories.
|
||||
function! pathogen#runtime_prepend_subdirectories(path) " {{{1
|
||||
let sep = pathogen#separator()
|
||||
let before = filter(pathogen#glob_directories(a:path.sep."*"), '!pathogen#is_disabled(v:val)')
|
||||
let after = filter(pathogen#glob_directories(a:path.sep."*".sep."after"), '!pathogen#is_disabled(v:val[0:-7])')
|
||||
let rtp = pathogen#split(&rtp)
|
||||
let path = expand(a:path)
|
||||
call filter(rtp,'v:val[0:strlen(path)-1] !=# path')
|
||||
let &rtp = pathogen#join(pathogen#uniq(before + rtp + after))
|
||||
return &rtp
|
||||
endfunction " }}}1
|
||||
|
||||
" For each directory in rtp, check for a subdirectory named dir. If it
|
||||
" exists, add all subdirectories of that subdirectory to the rtp, immediately
|
||||
" after the original directory. If no argument is given, 'bundle' is used.
|
||||
" Repeated calls with the same arguments are ignored.
|
||||
function! pathogen#runtime_append_all_bundles(...) " {{{1
|
||||
let sep = pathogen#separator()
|
||||
let name = a:0 ? a:1 : 'bundle'
|
||||
if "\n".s:done_bundles =~# "\\M\n".name."\n"
|
||||
return ""
|
||||
endif
|
||||
let s:done_bundles .= name . "\n"
|
||||
let list = []
|
||||
for dir in pathogen#split(&rtp)
|
||||
if dir =~# '\<after$'
|
||||
let list += filter(pathogen#glob_directories(substitute(dir,'after$',name,'').sep.'*[^~]'.sep.'after'), '!pathogen#is_disabled(v:val[0:-7])') + [dir]
|
||||
else
|
||||
let list += [dir] + filter(pathogen#glob_directories(dir.sep.name.sep.'*[^~]'), '!pathogen#is_disabled(v:val)')
|
||||
endif
|
||||
endfor
|
||||
let &rtp = pathogen#join(pathogen#uniq(list))
|
||||
return 1
|
||||
endfunction
|
||||
|
||||
let s:done_bundles = ''
|
||||
" }}}1
|
||||
|
||||
" Invoke :helptags on all non-$VIM doc directories in runtimepath.
|
||||
function! pathogen#helptags() " {{{1
|
||||
let sep = pathogen#separator()
|
||||
for dir in pathogen#split(&rtp)
|
||||
if (dir.sep)[0 : strlen($VIMRUNTIME)] !=# $VIMRUNTIME.sep && filewritable(dir.sep.'doc') == 2 && !empty(filter(split(glob(dir.sep.'doc'.sep.'*'),"\n>"),'!isdirectory(v:val)')) && (!filereadable(dir.sep.'doc'.sep.'tags') || filewritable(dir.sep.'doc'.sep.'tags'))
|
||||
helptags `=dir.'/doc'`
|
||||
endif
|
||||
endfor
|
||||
endfunction " }}}1
|
||||
|
||||
command! -bar Helptags :call pathogen#helptags()
|
||||
|
||||
" Like findfile(), but hardcoded to use the runtimepath.
|
||||
function! pathogen#runtime_findfile(file,count) "{{{1
|
||||
let rtp = pathogen#join(1,pathogen#split(&rtp))
|
||||
let file = findfile(a:file,rtp,a:count)
|
||||
if file ==# ''
|
||||
return ''
|
||||
else
|
||||
return fnamemodify(file,':p')
|
||||
endif
|
||||
endfunction " }}}1
|
||||
|
||||
" Backport of fnameescape().
|
||||
function! pathogen#fnameescape(string) " {{{1
|
||||
if exists('*fnameescape')
|
||||
return fnameescape(a:string)
|
||||
elseif a:string ==# '-'
|
||||
return '\-'
|
||||
else
|
||||
return substitute(escape(a:string," \t\n*?[{`$\\%#'\"|!<"),'^[+>]','\\&','')
|
||||
endif
|
||||
endfunction " }}}1
|
||||
|
||||
function! s:find(count,cmd,file,lcd) " {{{1
|
||||
let rtp = pathogen#join(1,pathogen#split(&runtimepath))
|
||||
let file = pathogen#runtime_findfile(a:file,a:count)
|
||||
if file ==# ''
|
||||
return "echoerr 'E345: Can''t find file \"".a:file."\" in runtimepath'"
|
||||
elseif a:lcd
|
||||
let path = file[0:-strlen(a:file)-2]
|
||||
execute 'lcd `=path`'
|
||||
return a:cmd.' '.pathogen#fnameescape(a:file)
|
||||
else
|
||||
return a:cmd.' '.pathogen#fnameescape(file)
|
||||
endif
|
||||
endfunction " }}}1
|
||||
|
||||
function! s:Findcomplete(A,L,P) " {{{1
|
||||
let sep = pathogen#separator()
|
||||
let cheats = {
|
||||
\'a': 'autoload',
|
||||
\'d': 'doc',
|
||||
\'f': 'ftplugin',
|
||||
\'i': 'indent',
|
||||
\'p': 'plugin',
|
||||
\'s': 'syntax'}
|
||||
if a:A =~# '^\w[\\/]' && has_key(cheats,a:A[0])
|
||||
let request = cheats[a:A[0]].a:A[1:-1]
|
||||
else
|
||||
let request = a:A
|
||||
endif
|
||||
let pattern = substitute(request,'/\|\'.sep,'*'.sep,'g').'*'
|
||||
let found = {}
|
||||
for path in pathogen#split(&runtimepath)
|
||||
let path = expand(path, ':p')
|
||||
let matches = split(glob(path.sep.pattern),"\n")
|
||||
call map(matches,'isdirectory(v:val) ? v:val.sep : v:val')
|
||||
call map(matches,'expand(v:val, ":p")[strlen(path)+1:-1]')
|
||||
for match in matches
|
||||
let found[match] = 1
|
||||
endfor
|
||||
endfor
|
||||
return sort(keys(found))
|
||||
endfunction " }}}1
|
||||
|
||||
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Ve :execute s:find(<count>,'edit<bang>',<q-args>,0)
|
||||
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(<count>,'edit<bang>',<q-args>,0)
|
||||
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(<count>,'edit<bang>',<q-args>,1)
|
||||
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(<count>,'split',<q-args>,<bang>1)
|
||||
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(<count>,'vsplit',<q-args>,<bang>1)
|
||||
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(<count>,'tabedit',<q-args>,<bang>1)
|
||||
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(<count>,'pedit',<q-args>,<bang>1)
|
||||
command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(<count>,'read',<q-args>,<bang>1)
|
||||
|
||||
" vim:set et sw=2:
|
1
bundle/coffeescript
Submodule
1
bundle/coffeescript
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 089506ed89da1849485fdfcca002a42111759fab
|
1
bundle/puppet
Submodule
1
bundle/puppet
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 78267708f4fb033c06ede73f1f73dd857f67a579
|
220
colors/groovym.vim
Normal file
220
colors/groovym.vim
Normal file
|
@ -0,0 +1,220 @@
|
|||
" local syntax file
|
||||
" Maintainer: groover <groover@streik.no-ip.org>
|
||||
" Last Change: Sat Jan 16 14:59:23 CET 2010
|
||||
" see: so $VIMRUNTIME/syntax/hitest.vim
|
||||
|
||||
" Remove existing highlighting first
|
||||
highlight clear
|
||||
set background=dark
|
||||
|
||||
if exists("syntax_on")
|
||||
syntax reset
|
||||
endif
|
||||
|
||||
let colors_name = "groovym"
|
||||
|
||||
if(&t_Co == 256)
|
||||
hi SpecialKey cterm=none ctermfg=45 ctermbg=none
|
||||
hi NonText cterm=none ctermfg=233 ctermbg=none
|
||||
hi Directory cterm=bold ctermfg=21 ctermbg=none
|
||||
hi ErrorMsg cterm=bold ctermfg=196 ctermbg=none
|
||||
hi IncSearch cterm=underline ctermfg=40 ctermbg=none
|
||||
hi Search cterm=none ctermfg=232 ctermbg=40
|
||||
hi MoreMsg cterm=bold ctermfg=245 ctermbg=none
|
||||
hi ModeMsg cterm=bold ctermfg=255 ctermbg=none
|
||||
hi LineNr cterm=none ctermfg=234 ctermbg=none
|
||||
hi Question cterm=bold ctermfg=40 ctermbg=none
|
||||
hi StatusLine cterm=bold ctermfg=255 ctermbg=239
|
||||
hi StatusLineNC cterm=none ctermfg=232 ctermbg=239
|
||||
hi VertSplit cterm=none ctermfg=239 ctermbg=239
|
||||
hi Title cterm=bold ctermfg=45 ctermbg=none
|
||||
hi Visual cterm=reverse ctermfg=none ctermbg=none
|
||||
"hi VisualNOS
|
||||
hi WarningMsg cterm=bold ctermfg=202 ctermbg=none
|
||||
hi WildMenu cterm=underline ctermfg=40 ctermbg=none
|
||||
hi Folded cterm=none ctermfg=250 ctermbg=none
|
||||
hi FoldColumn cterm=none ctermfg=250 ctermbg=none
|
||||
"hi DiffAdd
|
||||
"hi DiffChange
|
||||
"hi DiffDelete
|
||||
"hi DiffText
|
||||
"hi SignColumn
|
||||
"hi SpellBad
|
||||
"hi SpellCap
|
||||
"hi SpellRare
|
||||
"hi SpellLocal
|
||||
hi Pmenu cterm=none ctermfg=239 ctermbg=none
|
||||
hi PmenuSel cterm=bold ctermfg=45 ctermbg=none
|
||||
hi PmenuSbar cterm=none ctermfg=239 ctermbg=239
|
||||
hi PmenuThumb cterm=none ctermfg=232 ctermbg=239
|
||||
hi TabLine cterm=underline ctermfg=239 ctermbg=none
|
||||
hi TabLineSel cterm=bold ctermfg=255 ctermbg=none
|
||||
hi TabLineFill cterm=underline ctermfg=239 ctermbg=none
|
||||
hi CursorColumn cterm=none ctermfg=255 ctermbg=239
|
||||
hi CursorLine cterm=none ctermfg=255 ctermbg=239
|
||||
|
||||
" syntax highlighting
|
||||
hi MatchParen cterm=none ctermfg=255 ctermbg=242
|
||||
hi Comment cterm=none ctermfg=240 ctermbg=none
|
||||
hi Constant cterm=bold ctermfg=24 ctermbg=none
|
||||
hi Special cterm=bold ctermfg=172 ctermbg=none
|
||||
hi Identifier cterm=bold ctermfg=252 ctermbg=none
|
||||
hi Statement cterm=bold ctermfg=178 ctermbg=none
|
||||
hi PreProc cterm=bold ctermfg=24 ctermbg=none
|
||||
hi Type cterm=bold ctermfg=255 ctermbg=none
|
||||
hi Underlined cterm=underline ctermfg=none ctermbg=none
|
||||
hi Ignore cterm=none ctermfg=232 ctermbg=none
|
||||
hi Error cterm=bold ctermfg=255 ctermbg=196
|
||||
hi Todo cterm=bold ctermfg=232 ctermbg=226
|
||||
hi String cterm=none ctermfg=125 ctermbg=none
|
||||
hi Number cterm=bold ctermfg=255 ctermbg=none
|
||||
hi Function cterm=bold ctermfg=255 ctermbg=none
|
||||
hi Conditional cterm=bold ctermfg=214 ctermbg=none
|
||||
hi Operator cterm=bold ctermfg=214 ctermbg=none
|
||||
hi Keyword cterm=bold ctermfg=214 ctermbg=none
|
||||
hi Delimiter cterm=bold ctermfg=255 ctermbg=none
|
||||
hi Normal cterm=none ctermfg=none ctermbg=none
|
||||
hi Cursor cterm=reverse ctermfg=none ctermbg=none
|
||||
|
||||
elseif(&t_Co == 88)
|
||||
hi SpecialKey cterm=none ctermfg=22 ctermbg=none
|
||||
hi NonText cterm=none ctermfg=16 ctermbg=none
|
||||
hi Directory cterm=bold ctermfg=19 ctermbg=none
|
||||
hi ErrorMsg cterm=bold ctermfg=64 ctermbg=none
|
||||
hi IncSearch cterm=underline ctermfg=28 ctermbg=none
|
||||
hi Search cterm=none ctermfg=16 ctermbg=28
|
||||
hi MoreMsg cterm=bold ctermfg=84 ctermbg=none
|
||||
hi ModeMsg cterm=bold ctermfg=88 ctermbg=none
|
||||
hi LineNr cterm=none ctermfg=80 ctermbg=none
|
||||
hi Question cterm=bold ctermfg=28 ctermbg=none
|
||||
hi StatusLine cterm=bold ctermfg=88 ctermbg=81
|
||||
hi StatusLineNC cterm=none ctermfg=16 ctermbg=81
|
||||
hi VertSplit cterm=none ctermfg=81 ctermbg=81
|
||||
hi Title cterm=bold ctermfg=22 ctermbg=none
|
||||
hi Visual cterm=reverse ctermfg=none ctermbg=none
|
||||
"hi VisualNOS
|
||||
hi WarningMsg cterm=bold ctermfg=68 ctermbg=none
|
||||
hi WildMenu cterm=underline ctermfg=28 ctermbg=none
|
||||
hi Folded cterm=none ctermfg=85 ctermbg=none
|
||||
hi FoldColumn cterm=none ctermfg=85 ctermbg=none
|
||||
"hi DiffAdd
|
||||
"hi DiffChange
|
||||
"hi DiffDelete
|
||||
"hi DiffText
|
||||
"hi SignColumn
|
||||
"hi SpellBad
|
||||
"hi SpellCap
|
||||
"hi SpellRare
|
||||
"hi SpellLocal
|
||||
hi Pmenu cterm=none ctermfg=81 ctermbg=none
|
||||
hi PmenuSel cterm=bold ctermfg=22 ctermbg=none
|
||||
hi PmenuSbar cterm=none ctermfg=81 ctermbg=81
|
||||
hi PmenuThumb cterm=none ctermfg=162 ctermbg=81
|
||||
hi TabLine cterm=underline ctermfg=81 ctermbg=none
|
||||
hi TabLineSel cterm=bold ctermfg=88 ctermbg=none
|
||||
hi TabLineFill cterm=underline ctermfg=81 ctermbg=none
|
||||
hi CursorColumn cterm=none ctermfg=88 ctermbg=82
|
||||
hi CursorLine cterm=none ctermfg=88 ctermbg=82
|
||||
|
||||
" syntax highlighting
|
||||
hi MatchParen cterm=none ctermfg=88 ctermbg=82
|
||||
hi Comment cterm=none ctermfg=80 ctermbg=none
|
||||
hi Constant cterm=bold ctermfg=22 ctermbg=none
|
||||
hi Special cterm=bold ctermfg=68 ctermbg=none
|
||||
hi Identifier cterm=bold ctermfg=88 ctermbg=none
|
||||
hi Statement cterm=bold ctermfg=76 ctermbg=none
|
||||
hi PreProc cterm=bold ctermfg=22 ctermbg=none
|
||||
hi Type cterm=bold ctermfg=88 ctermbg=none
|
||||
hi Underlined cterm=underline ctermfg=none ctermbg=none
|
||||
hi Ignore cterm=none ctermfg=16 ctermbg=none
|
||||
hi Error cterm=bold ctermfg=88 ctermbg=64
|
||||
hi Todo cterm=bold ctermfg=16 ctermbg=72
|
||||
hi String cterm=none ctermfg=22 ctermbg=none
|
||||
hi Number cterm=bold ctermfg=88 ctermbg=none
|
||||
hi Function cterm=bold ctermfg=88 ctermbg=none
|
||||
hi Conditional cterm=bold ctermfg=72 ctermbg=none
|
||||
hi Operator cterm=bold ctermfg=72 ctermbg=none
|
||||
hi Keyword cterm=bold ctermfg=72 ctermbg=none
|
||||
hi Delimiter cterm=bold ctermfg=88 ctermbg=none
|
||||
hi Normal cterm=none ctermfg=none ctermbg=none
|
||||
hi Cursor cterm=reverse ctermfg=none ctermbg=none
|
||||
|
||||
else
|
||||
hi SpecialKey cterm=none ctermfg=cyan ctermbg=none
|
||||
hi NonText cterm=none ctermfg=black ctermbg=none
|
||||
hi Directory cterm=bold ctermfg=darkblue ctermbg=none
|
||||
hi ErrorMsg cterm=bold ctermfg=darkred ctermbg=none
|
||||
hi IncSearch cterm=underline ctermfg=none ctermbg=none
|
||||
hi Search cterm=none ctermfg=black ctermbg=green
|
||||
hi MoreMsg cterm=bold ctermfg=grey ctermbg=none
|
||||
hi ModeMsg cterm=bold ctermfg=white ctermbg=none
|
||||
hi LineNr cterm=none ctermfg=darkgrey ctermbg=none
|
||||
hi Question cterm=bold ctermfg=green ctermbg=none
|
||||
hi StatusLine cterm=bold ctermfg=white ctermbg=darkgrey
|
||||
hi StatusLineNC cterm=none ctermfg=grey ctermbg=darkgrey
|
||||
hi VertSplit cterm=none ctermfg=darkgrey ctermbg=darkgrey
|
||||
hi Title cterm=bold ctermfg=darkyellow ctermbg=none
|
||||
hi Visual cterm=reverse ctermfg=none ctermbg=none
|
||||
"hi VisualNOS
|
||||
hi WarningMsg cterm=bold ctermfg=darkyellow ctermbg=none
|
||||
hi WildMenu cterm=underline ctermfg=green ctermbg=none
|
||||
hi Folded cterm=none ctermfg=grey ctermbg=none
|
||||
"hi FoldColumn
|
||||
"hi DiffAdd
|
||||
"hi DiffChange
|
||||
"hi DiffDelete
|
||||
"hi DiffText
|
||||
"hi SignColumn
|
||||
"hi SpellBad
|
||||
"hi SpellCap
|
||||
"hi SpellRare
|
||||
"hi SpellLocal
|
||||
hi Pmenu cterm=none ctermfg=darkgrey ctermbg=none
|
||||
hi PmenuSel cterm=none ctermfg=brown ctermbg=none
|
||||
hi PmenuSbar cterm=none ctermfg=black ctermbg=white
|
||||
hi PmenuThumb cterm=none ctermfg=grey ctermbg=white
|
||||
hi TabLine cterm=underline ctermfg=grey ctermbg=none
|
||||
hi TabLineSel cterm=bold ctermfg=white ctermbg=none
|
||||
hi TabLineFill cterm=underline ctermfg=grey ctermbg=none
|
||||
hi CursorColumn cterm=none ctermfg=white ctermbg=grey
|
||||
hi CursorLine cterm=none ctermfg=white ctermbg=grey
|
||||
|
||||
" syntax highlighting
|
||||
hi MatchParen cterm=none ctermfg=white ctermbg=darkgrey
|
||||
hi Comment cterm=none ctermfg=darkgrey ctermbg=none
|
||||
hi Constant cterm=bold ctermfg=darkcyan ctermbg=none
|
||||
hi Special cterm=bold ctermfg=darkgrey ctermbg=none
|
||||
hi Identifier cterm=bold ctermfg=white ctermbg=none
|
||||
hi Statement cterm=bold ctermfg=darkyellow ctermbg=none
|
||||
hi PreProc cterm=bold ctermfg=darkcyan ctermbg=none
|
||||
hi Type cterm=bold ctermfg=white ctermbg=none
|
||||
hi Underlined cterm=underline ctermfg=none ctermbg=none
|
||||
hi Ignore cterm=none ctermfg=black ctermbg=none
|
||||
hi Error cterm=bold ctermfg=white ctermbg=red
|
||||
hi Todo cterm=bold ctermfg=black ctermbg=yellow
|
||||
hi String cterm=none ctermfg=magenta ctermbg=none
|
||||
hi Number cterm=bold ctermfg=white ctermbg=none
|
||||
hi Function cterm=bold ctermfg=white ctermbg=none
|
||||
hi Conditional cterm=bold ctermfg=yellow ctermbg=none
|
||||
hi Operator cterm=bold ctermfg=darkyellow ctermbg=none
|
||||
hi Keyword cterm=bold ctermfg=darkyellow ctermbg=none
|
||||
hi Delimiter cterm=bold ctermfg=yellow ctermbg=none
|
||||
hi Normal cterm=none ctermfg=none ctermbg=none
|
||||
hi Cursor cterm=reverse ctermfg=none ctermbg=none
|
||||
endif
|
||||
|
||||
" Python
|
||||
hi link pythonBuiltin Identifier
|
||||
hi link pythonStatement Keyword
|
||||
hi link pythonPreCondit Keyword
|
||||
hi link pythonException Type
|
||||
hi link pythonSync PreProc
|
||||
|
||||
" PHP
|
||||
hi link phpKeyword Keyword
|
||||
hi link phpStatement Keyword
|
||||
hi link phpVarSelector Keyword
|
||||
|
||||
" :so $VIMRUNTIME/syntax/hitest.vim
|
||||
" vim: tw=0 ts=4 sw=4
|
||||
|
950
vimrc
Normal file
950
vimrc
Normal file
|
@ -0,0 +1,950 @@
|
|||
call pathogen#infect()
|
||||
|
||||
|
||||
" important settings
|
||||
"
|
||||
|
||||
" compatible - behave very Vi compatible (not advisable)
|
||||
set nocp " cp
|
||||
|
||||
" cpoptions - list of flags to specify Vi compatibility
|
||||
set cpo=aABceFs
|
||||
|
||||
" insertmode - NOT use Insert mode as the default mode
|
||||
set noim " im
|
||||
|
||||
" paste - paste mode, insert typed text literally
|
||||
set paste " - nopaste
|
||||
|
||||
" pastetoggle - key sequence to toggle paste mode
|
||||
set pt=
|
||||
|
||||
"
|
||||
" using the mouse
|
||||
"
|
||||
|
||||
" mouse - list of flags for using the mouse
|
||||
set mouse=n
|
||||
|
||||
" mousemodel - "extend", "popup" or "popup_setpos"; what the right mouse button is used for
|
||||
set mousem=extend
|
||||
|
||||
" mousetime - maximum time in msec to recognize a double-click
|
||||
set mouset=500
|
||||
|
||||
" ttymouse - "xterm", "xterm2", "dec" or "netterm"; type of mouse
|
||||
set ttym=xterm2
|
||||
|
||||
" mouseshape - what the mouse pointer looks like in different modes
|
||||
set mouses=i-r:beam,s:updown,sd:udsizing,vs:leftright,vd:lrsizing,m:no,ml:up-arrow,v:rightup-arrow
|
||||
|
||||
" virtualedit - when to use virtual editing: "block", "insert" and/or "all"
|
||||
set ve=block
|
||||
|
||||
"
|
||||
" selecting text
|
||||
"
|
||||
|
||||
" selection - "old", "inclusive" or "exclusive"; how selecting text behaves
|
||||
set sel=old
|
||||
|
||||
" selectmode - "mouse", "key" and/or "cmd"; when to start Select mode instead of Visual mode
|
||||
set slm=mouse,key
|
||||
|
||||
" clipboard - "unnamed" to use the * register like unnamed register
|
||||
"autoselect" to always put selected text on the clipboard
|
||||
set cb=autoselect ",exclude:cons\\\|linux
|
||||
|
||||
" keymodel - "startsel" and/or "stopsel"; what special keys can do
|
||||
set km=
|
||||
|
||||
"
|
||||
" terminal
|
||||
"
|
||||
|
||||
" term - name of the used terminal
|
||||
"set term=builtin_gui
|
||||
|
||||
" ttytype - alias for 'term'
|
||||
"set tty=builtin_gui
|
||||
|
||||
" ttybuiltin - check built-in termcaps first
|
||||
set tbi " notbi
|
||||
|
||||
" ttyfast - terminal connection is fast
|
||||
set tf " notf
|
||||
|
||||
" weirdinvert - terminal that requires extra redrawing
|
||||
set nowiv " wiv
|
||||
|
||||
" esckeys - recognize keys that start with <Esc> in Insert mode
|
||||
set ek " noek
|
||||
|
||||
" scrolljump - minimal number of lines to scroll at a time
|
||||
set sj=1
|
||||
|
||||
" ttyscroll - maximum number of lines to use scrolling instead of redrawing
|
||||
set tsl=999
|
||||
|
||||
" title - show info in the window title
|
||||
set title " notitle
|
||||
|
||||
" titlelen - percentage of 'columns' used for the window title
|
||||
set titlelen=85
|
||||
|
||||
" titlestring - when not empty, string to be used for the window title
|
||||
set titlestring=
|
||||
|
||||
" icon - set the text of the icon for this window
|
||||
set icon " noicon
|
||||
|
||||
" iconstring - when not empty, text for the icon of this window
|
||||
set iconstring=
|
||||
|
||||
"
|
||||
" moving around, searching and patterns
|
||||
"
|
||||
|
||||
" whichwrap - list of flags specifying which commands wrap to another line (local to window)
|
||||
set ww=b,s
|
||||
|
||||
" startofline - many jump commands move the cursor to the first non-blank character of a line
|
||||
set sol " nosol
|
||||
|
||||
" paragraphs - nroff macro names that separate paragraphs
|
||||
"set para=IPLPPPQPP\ LIpplpipbp
|
||||
|
||||
" sections - nroff macro names that separate sections
|
||||
"set sect=SHNHH\ HUnhsh
|
||||
|
||||
" path - list of directory names used for file searching (global or local to buffer)
|
||||
set pa=.,,
|
||||
|
||||
" cdpath - list of directory names used for :cd
|
||||
set cd=.,,
|
||||
|
||||
" autochdir - change to directory of file in buffer
|
||||
"set acd " noacd
|
||||
|
||||
" wrapscan - search commands wrap around the end of the buffer
|
||||
set ws " nows
|
||||
|
||||
" incsearch - show match for partly typed search command
|
||||
"set nois " is
|
||||
set is " nois
|
||||
|
||||
" magic - change the way backslashes are used in search patterns
|
||||
set magic " nomagic
|
||||
|
||||
" ignorecase - ignore case when using a search pattern
|
||||
set ic " noic
|
||||
|
||||
" smartcase - override 'ignorecase' when pattern has upper case characters
|
||||
set scs " noscs
|
||||
|
||||
" casemap - What method to use for changing case of letters
|
||||
set cmp=internal,keepascii
|
||||
|
||||
" define - pattern for a macro definition line (global or local to buffer)
|
||||
set def=^\\s*#\\s*define
|
||||
|
||||
" include - pattern for an include-file line (local to buffer)
|
||||
set inc=^\\s*#\\s*include
|
||||
|
||||
" includeexpr - expression used to transform an include line to a file name (local to buffer)
|
||||
set inex=
|
||||
|
||||
"
|
||||
" syntax and highlighting
|
||||
"
|
||||
|
||||
" enable syntax highlighting by default
|
||||
syntax enable
|
||||
|
||||
" colorscheme - set default color theme
|
||||
colorscheme groovym
|
||||
|
||||
" background - "dark" or "light"; the background color brightness
|
||||
set bg=light
|
||||
|
||||
" hlsearch - highlight all matches for the last used search pattern
|
||||
set hls " nohls
|
||||
|
||||
"
|
||||
" displaying text
|
||||
"
|
||||
|
||||
" scroll - number of lines to scroll for CTRL-U and CTRL-D (local to window)
|
||||
set scr=6
|
||||
|
||||
" scrolloff - number of screen lines to show around the cursor
|
||||
"set so=0
|
||||
set so=10
|
||||
|
||||
" wrap - long lines wrap
|
||||
set wrap " nowrap
|
||||
|
||||
" linebreak - wrap long lines at a character in 'breakat' (local to window)
|
||||
set lbr " nolbr
|
||||
|
||||
" breakat - which characters might cause a line break
|
||||
set brk=\ \ !@*-+;:,./?
|
||||
|
||||
" showbreak - string to put before wrapped screen lines
|
||||
set sbr=
|
||||
|
||||
" sidescroll - minimal number of columns to scroll horizontally
|
||||
set ss=0
|
||||
|
||||
" sidescrolloff - minimal number of columns to keep left and right of the cursor
|
||||
set siso=10
|
||||
|
||||
" display - include "lastline" to show the last line even if it doesn't fit
|
||||
" include "uhex" to show unprintable characters as a hex number
|
||||
set dy=
|
||||
|
||||
" fillchars - characters to use for the status line, folds and filler lines
|
||||
set fcs=vert:\|,fold:-
|
||||
|
||||
" cmdheight - number of lines used for the command-line
|
||||
set ch=1
|
||||
|
||||
" columns - width of the display
|
||||
"set co=78
|
||||
|
||||
" lines - number of lines in the display
|
||||
"set lines=32
|
||||
|
||||
" lazyredraw - don't redraw while executing macros
|
||||
set nolz " lz
|
||||
|
||||
" writedelay - delay in msec for each char written to the display (for debugging)
|
||||
set wd=0
|
||||
|
||||
" list - show <Tab> as ^I and end-of-line as $ (local to window)
|
||||
set nolist " list
|
||||
|
||||
" listchars " list of strings used for list mode
|
||||
set lcs=eol:$
|
||||
|
||||
" number - show the line number for each line (local to window)
|
||||
set nonu " nu
|
||||
|
||||
"
|
||||
" editing text
|
||||
"
|
||||
|
||||
" undolevels - maximum number of changes that can be undone
|
||||
set ul=1000
|
||||
|
||||
" modified - changes have been made and not written to a file (local to buffer)
|
||||
set nomod " mod
|
||||
|
||||
" readonly - buffer is not to be written (local to buffer)
|
||||
set noro " ro
|
||||
|
||||
" modifiable - changes to the text are not possible (local to buffer)
|
||||
set ma " noma
|
||||
|
||||
" textwidth - line length above which to break a line (local to buffer)
|
||||
set tw=0
|
||||
|
||||
" wrapmargin - margin from the right in which to break a line (local to buffer)
|
||||
set wm=0
|
||||
|
||||
" backspace - specifies what <BS>, CTRL-W, etc. can do in Insert mode
|
||||
set bs=2
|
||||
|
||||
" comments - definition of what comment lines look like (local to buffer)
|
||||
set com=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-
|
||||
|
||||
" formatoptions - list of flags that tell how automatic formatting works (local to buffer)
|
||||
set fo=vt
|
||||
|
||||
" complete - specifies how Insert mode completion works (local to buffer)
|
||||
set cpt=.,w,b,u,t,i
|
||||
|
||||
" dictionary - list of dictionary files for keyword completion (global or local to buffer)
|
||||
set dict=
|
||||
|
||||
" thesaurus - list of thesaurus files for keyword completion (global or local to buffer)
|
||||
set tsr=
|
||||
|
||||
" infercase - adjust case of a keyword completion match (local to buffer)
|
||||
set noinf " inf
|
||||
|
||||
" digraph - enable entering digraps with c1 <BS> c2
|
||||
set nodg " dg
|
||||
|
||||
" tildeop - the "~" command behaves like an operator
|
||||
set notop " top
|
||||
|
||||
" showmatch - When inserting a bracket, briefly jump to its match
|
||||
set sm " nosm
|
||||
|
||||
" matchtime - tenth of a second to show a match for 'showmatch'
|
||||
set mat=5
|
||||
|
||||
" matchpairs - list of pairs that match for the "%" command (local to buffer)
|
||||
set mps=(:),{:},[:],<:>
|
||||
|
||||
" joinspaces - use two spaces after '.' when joining a line
|
||||
set nojs " js
|
||||
|
||||
" nrformats - "alpha", "octal" and/or "hex"; number formats recognized for CTRL-A and CTRL-X commands (local to buffer)
|
||||
set nf=octal,hex
|
||||
|
||||
"
|
||||
" tabs and indenting
|
||||
"
|
||||
|
||||
" tabstop - number of spaces a <Tab> in the text stands for (local to buffer)
|
||||
set ts=2
|
||||
|
||||
" shiftwidth - number of spaces used for each step of (auto)indent (local to buffer)
|
||||
set sw=2
|
||||
|
||||
" smarttab - a <Tab> in an indent inserts 'shiftwidth' spaces
|
||||
set sta " nosta
|
||||
|
||||
" softtabstop - if non-zero, number of spaces to insert for a <Tab> (local to buffer)
|
||||
set sts=2
|
||||
|
||||
" shiftround - round to 'shiftwidth' for "<<" and ">>"
|
||||
set sr " nosr
|
||||
|
||||
" expandtab - expand <Tab> to spaces in Insert mode (local to buffer)
|
||||
set et " noet
|
||||
|
||||
" autoindent - automatically set the indent of a new line (local to buffer)
|
||||
set ai " noai
|
||||
|
||||
" smartindent - do clever autoindenting (local to buffer)
|
||||
set si " nosi
|
||||
|
||||
" cindent - enable specific indenting for C code (local to buffer)
|
||||
set cin " nocin
|
||||
|
||||
" cinoptions - options for C-indenting (local to buffer)
|
||||
set cino=
|
||||
|
||||
" cinkeys - keys that trigger C-indenting in Insert mode (local to buffer)
|
||||
set cink=0{,0},0),:,0#,!^F,o,O,e
|
||||
|
||||
" cinwords - list of words that cause more C-indent (local to buffer)
|
||||
set cinw=if,else,while,do,for,switch,case
|
||||
|
||||
" indentexpr - expression used to obtain the indent of a line (local to buffer)
|
||||
set inde=
|
||||
|
||||
" indentkeys - keys that trigger indenting with 'indentexpr' in Insert mode (local to buffer)
|
||||
set indk=0{,0},:,0#,!^F,o,O,e
|
||||
|
||||
" copyindent - Copy whitespace for indenting from previous line (local to buffer)
|
||||
set noci " ci
|
||||
|
||||
" preserveindent - Preserve kind of whitespace when changing indent (local to buffer)
|
||||
set nopi " pi
|
||||
|
||||
" lisp - enable lisp mode (local to buffer)
|
||||
set lisp " nolisp
|
||||
|
||||
" lispwords - words that change how lisp indenting works
|
||||
set lw=defun,define,defmacro,set!,lambda,if,case,let,flet,let*,letrec,do,do*,define-syntax,let-syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,defstruct,deftype,defvar,do-all-symbols,do-external-symbols,do-symbols,dolist,dotimes,ecase,etypecase,eval-when,labels,macrolet,multiple-value-bind,multiple-value-call,multiple-value-prog1,multiple-value-setq,prog1,progv,typecase,unless,unwind-protect,when,with-input-from-string,with-open-file,with-open-stream,with-output-to-string,with-package-iterator,define-condition,handler-bind,handler-case,restart-bind,restart-case,with-simple-restart,store-value,use-value,muffle-warning,abort,continue,with-slots,with-slots*,with-accessors,with-accessors*,defclass,defmethod,print-unreadable-object
|
||||
|
||||
"
|
||||
" folding
|
||||
"
|
||||
|
||||
" foldenable - set to display all folds open (local to window)
|
||||
set fen " nofen
|
||||
|
||||
" foldlevel - folds with a level higher than this number will be closed (local to window)
|
||||
set fdl=0
|
||||
|
||||
" foldlevelstart - value for 'foldlevel' when starting to edit a file
|
||||
set fdls=-1
|
||||
|
||||
" foldcolumn - width of the column used to indicate folds (local to window)
|
||||
set fdc=0
|
||||
|
||||
" foldtext - expression used to display the text of a closed fold (local to window)
|
||||
set fdt=foldtext()
|
||||
|
||||
" foldclose - set to "all" to close a fold when the cursor leaves it
|
||||
set fcl=
|
||||
|
||||
" foldopen - specifies for which commands a fold will be opened
|
||||
set fdo=block,hor,mark,percent,quickfix,search,tag,undo
|
||||
|
||||
" foldminlines - minimum number of screen lines for a fold to be closed (local to window)
|
||||
set fml=1
|
||||
|
||||
" commentstring - template for comments; used to put the marker in
|
||||
set cms=/*%s*/
|
||||
|
||||
" foldmethod - folding type: "manual", "indent", "expr", "marker" or "syntax" (local to window)
|
||||
set fdm=manual
|
||||
|
||||
" foldexpr - expression used when 'foldmethod' is "expr" (local to window)
|
||||
set fde=0
|
||||
|
||||
" foldignore - used to ignore lines when 'foldmethod' is "indent" (local to window)
|
||||
"set fdi=#
|
||||
set fdi=
|
||||
|
||||
" foldmarker - markers used when 'foldmethod' is "marker" (local to window)
|
||||
set fmr={{{,}}}
|
||||
|
||||
" foldnestmax - maximum fold depth for when 'foldmethod is "indent" or "syntax" (local to window)
|
||||
set fdn=20
|
||||
|
||||
"
|
||||
" multiple windows
|
||||
"
|
||||
|
||||
" laststatus - 0, 1 or 2; when to use a status line for the last window
|
||||
set ls=0
|
||||
|
||||
" statusline - alternate format to be used for a status line
|
||||
set stl=
|
||||
|
||||
" equalalways - make all windows the same size when adding/removing windows
|
||||
set ea " noea
|
||||
|
||||
" eadirection - in which direction 'equalalways' works: "ver", "hor" or "both"
|
||||
set ead=both
|
||||
|
||||
" winheight - minimal number of lines used for the current window
|
||||
set wh=1
|
||||
|
||||
" winminheight - minimal number of lines used for any window
|
||||
set wmh=1
|
||||
|
||||
" winfixheight - keep the height of the window (local to window)
|
||||
set nowfh " wfh
|
||||
|
||||
" winwidth - minimal number of columns used for the current window
|
||||
set wiw=20
|
||||
|
||||
" winminwidth - minimal number of columns used for any window
|
||||
set wmw=1
|
||||
|
||||
" helpheight - initial height of the help window
|
||||
set hh=20
|
||||
|
||||
" previewheight - default height for the preview window
|
||||
set pvh=12
|
||||
|
||||
" previewwindow - identifies the preview window (local to window)
|
||||
set nopvw " pvw
|
||||
|
||||
" hidden - don't unload a buffer when no longer shown in a window
|
||||
set nohid " hid
|
||||
|
||||
" switchbuf - "useopen" and/or "split"; which window to use when jumping to a buffer
|
||||
set swb=
|
||||
|
||||
" splitbelow - a new window is put below the current one
|
||||
set sb " nosb
|
||||
|
||||
" splitright - a new window is put right of the current one
|
||||
set nospr " spr
|
||||
|
||||
" scrollbind - this window scrolls together with other bound windows (local to window)
|
||||
set noscb " scb
|
||||
|
||||
" scrollopt - "ver", "hor" and/or "jump"; list of options for 'scrollbind'
|
||||
set sbo=ver,jump
|
||||
|
||||
"
|
||||
" messages and info
|
||||
"
|
||||
|
||||
" terse - add 's' flag in 'shortmess' (don't show search message)
|
||||
set noterse " terse
|
||||
|
||||
" shortmess - list of flags to make messages shorter
|
||||
set shm=filnxtToO
|
||||
|
||||
" showcmd - show (partial) command keys in the status line
|
||||
set sc " nosc
|
||||
|
||||
" showmode - display the current mode in the status line
|
||||
set smd " nosmd
|
||||
|
||||
" ruler - show cursor position below each window
|
||||
set ru " noru
|
||||
|
||||
" rulerformat - alternate format to be used for the ruler
|
||||
set ruf=
|
||||
|
||||
" report - threshold for reporting number of changed lines
|
||||
set report=2
|
||||
|
||||
" verbose - the higher the more messages are given
|
||||
set vbs=0
|
||||
|
||||
" more - pause listings when the screen is full
|
||||
set more " nomore
|
||||
|
||||
" confirm - start a dialog when a command fails
|
||||
set nocf " cf
|
||||
|
||||
" errorbells - ring the bell for error messages
|
||||
set noeb " eb
|
||||
|
||||
" visualbell - use a visual bell instead of beeping
|
||||
set novb " vb
|
||||
|
||||
" helplang - list of preferred languages for finding help
|
||||
set hlg=
|
||||
|
||||
"
|
||||
" diff mode
|
||||
"
|
||||
|
||||
" diff - use diff mode for the current window (local to window)
|
||||
set nodiff " diff
|
||||
|
||||
" diffopt - options for using diff mode
|
||||
set dip=filler
|
||||
|
||||
" diffexpr - expression used to obtain a diff file
|
||||
set dex=
|
||||
|
||||
" patchexpr - expression used to patch a file
|
||||
set pex=
|
||||
|
||||
"
|
||||
" mapping
|
||||
"
|
||||
|
||||
" maxmapdepth - maximum depth of mapping
|
||||
set mmd=1000
|
||||
|
||||
" remap - recognize mappings in mapped keys
|
||||
set remap " noremap
|
||||
|
||||
" timeout - allow timing out halfway into a mapping
|
||||
set to " noto
|
||||
|
||||
" ttimeout - allow timing out halfway into a key code
|
||||
set nottimeout " ttimeout
|
||||
|
||||
" timeoutlen - time in msec for 'timeout'
|
||||
set tm=1000
|
||||
|
||||
" ttimeoutlen - time in msec for 'ttimeout'
|
||||
set ttm=-1
|
||||
|
||||
"
|
||||
" reading and writing files
|
||||
"
|
||||
|
||||
" modeline - enable using settings from modelines when reading a file (local to buffer)
|
||||
set noml " ml
|
||||
|
||||
" modelines - number of lines to check for modelines
|
||||
set mls=5
|
||||
|
||||
" binary - binary file editing (local to buffer)
|
||||
set nobin " bin
|
||||
|
||||
" endofline - last line in the file has an end-of-line (local to buffer)
|
||||
set eol " noeol
|
||||
|
||||
" bomb - Prepend a Byte Order Mark to the file (local to buffer)
|
||||
set nobomb " bomb
|
||||
|
||||
" fileformat - end-of-line format: "dos", "unix" or "mac" (local to buffer)
|
||||
set ff=unix
|
||||
|
||||
" fileformats - list of file formats to look for when editing a file
|
||||
set ffs=unix,dos,mac
|
||||
|
||||
" write - writing files is allowed
|
||||
set write " nowrite
|
||||
|
||||
" writebackup - write a backup file before overwriting a file
|
||||
set nowb " nowb
|
||||
|
||||
" backup - keep a backup after overwriting a file
|
||||
set nobk " bk
|
||||
|
||||
" backupskip - patterns that specify for which files a backup is not made
|
||||
set bsk=/tmp/*
|
||||
|
||||
" backupcopy - whether to make the backup as a copy or rename the existing file
|
||||
set bkc=auto
|
||||
|
||||
" backupdir - list of directories to put backup files in
|
||||
"set bdir=.,/home/groover/tmp,/home/groover/
|
||||
|
||||
" backupext - file name extension for the backup file
|
||||
set bex=~
|
||||
|
||||
" autowrite - automatically write a file when leaving a modified buffer
|
||||
set noaw " aw
|
||||
|
||||
" autowriteall - as 'autowrite', but works with more commands
|
||||
set noawa " awa
|
||||
|
||||
" writeany - always write without asking for confirmation
|
||||
set nowa " wa
|
||||
|
||||
" autoread - automatically read a file when it was modified outside of Vim (global or local to buffer)
|
||||
set ar " noar
|
||||
|
||||
" patchmode - keep oldest version of a file; specifies file name extension
|
||||
set pm=
|
||||
|
||||
" shortname - use 8.3 file names (local to buffer)
|
||||
set nosn " sn
|
||||
|
||||
"
|
||||
" the swap file
|
||||
"
|
||||
|
||||
" directory - list of directories for the swap file
|
||||
"set dir=.,/home/groover/tmp,/home/groover,/var/tmp,/tmp
|
||||
|
||||
" swapfile - use a swap file for this buffer (local to buffer)
|
||||
set swf " noswf
|
||||
|
||||
" swapsync - "sync", "fsync" or empty; how to flush a swap file to disk
|
||||
set sws=fsync
|
||||
|
||||
" updatecount - number of characters typed to cause a swap file update
|
||||
set uc=200
|
||||
|
||||
" updatetime - time in msec after which the swap file will be updated
|
||||
set ut=4000
|
||||
|
||||
" maxmem - maximum amount of memory in Kbyte used for one buffer
|
||||
set mm=32768
|
||||
|
||||
" maxmemtot - maximum amount of memory in Kbyte used for all buffers
|
||||
set mmt=32768
|
||||
|
||||
"
|
||||
" command line editing
|
||||
"
|
||||
|
||||
" history - how many command lines are remembered
|
||||
set hi=100
|
||||
|
||||
" wildchar - key that triggers command-line expansion
|
||||
set wc=9
|
||||
|
||||
" wildcharm - like 'wildchar' but can also be used in a mapping
|
||||
set wcm=0
|
||||
|
||||
" wildmode - specifies how command line completion works
|
||||
set wim=list:longest
|
||||
|
||||
" suffixes - list of file name extensions that have a lower priority
|
||||
set su=.bak,~,.o,.h,.info,.swp,.obj
|
||||
|
||||
" suffixesadd - list of file name extensions added when searching for a file (local to buffer)
|
||||
set sua=
|
||||
|
||||
" wildignore - list of patterns to ignore files for file name completion
|
||||
set wig=.swp
|
||||
|
||||
" wildmenu - command-line completion shows a list of matches
|
||||
set wmnu " nowmnu
|
||||
|
||||
" cedit - key used to open the command-line window
|
||||
set cedit=
|
||||
|
||||
" cmdwinheight - height of the command-line window
|
||||
set cwh=7
|
||||
|
||||
"
|
||||
" executing external commands
|
||||
"
|
||||
|
||||
" shell - name of the shell program used for external commands
|
||||
set sh=/bin/bash
|
||||
|
||||
" shellquote - character(s) to enclose a shell command in
|
||||
set shq=
|
||||
|
||||
" shellxquote - like 'shellquote' but include the redirection
|
||||
set sxq=
|
||||
|
||||
" shellcmdflag - argument for 'shell' to execute a command
|
||||
set shcf=-c
|
||||
|
||||
" shellredir - used to redirect command output to a file
|
||||
set srr=>%s\ 2>&1
|
||||
|
||||
" equalprg - program used for "=" command (global or local to buffer)
|
||||
set ep=
|
||||
|
||||
" formatprg - program used to format lines with "gq" command
|
||||
set fp=
|
||||
|
||||
" keywordprg - program used for the "K" command
|
||||
set kp=man\ -s
|
||||
|
||||
" warn - warn when using a shell command and a buffer has changes
|
||||
set nowarn " warn
|
||||
|
||||
"
|
||||
" tags
|
||||
"
|
||||
|
||||
" tagbsearch - use binary searching in tags files
|
||||
set tbs " notbs
|
||||
|
||||
" taglength - number of significant characters in a tag name or zero
|
||||
set tl=0
|
||||
|
||||
" tags - list of file names to search for tags (global or local to buffer)
|
||||
set tag=./tags,./TAGS,tags,TAGS
|
||||
|
||||
" tagrelative - file names in a tags file are relative to the tags file
|
||||
set tr " notr
|
||||
|
||||
" tagstack - a :tag command will use the tagstack
|
||||
set tgst " notgst
|
||||
|
||||
" showfulltag - when completing tags in Insert mode show more info
|
||||
set nosft " sft
|
||||
|
||||
" cscopeprg - command for executing cscope
|
||||
set csprg=cscope
|
||||
|
||||
" cscopetag - use cscope for tag commands
|
||||
set nocst " cst
|
||||
|
||||
" cscopetagorder - 0 or 1; the order in which ":cstag" performs a search
|
||||
set csto=0
|
||||
|
||||
" cscopeverbose - give messages when adding a cscope database
|
||||
set nocsverb " csverb
|
||||
|
||||
" cscopepathcomp - how many components of the path to show
|
||||
set cspc=0
|
||||
|
||||
" cscopequickfix - When to open a quickfix window for cscope
|
||||
set csqf=
|
||||
|
||||
"
|
||||
" running make and jumping to errors
|
||||
"
|
||||
|
||||
" errorfile - name of the file that contains error messages
|
||||
set ef=errors.err
|
||||
|
||||
" errorformat - list of formats for error messages (global or local to buffer)
|
||||
set efm=%*[^\"]\"%f\"%*\\D%l:\ %m,\"%f\"%*\\D%l:\ %m,%-G%f:%l:\ (Each\ undeclared\ identifier\ is\ reported\ only\ once,%-G%f:%l:\ for\ each\ function\ it\ appears\ in.),%f:%l:%m,\"%f\"\\,\ line\ %l%*\\D%c%*[^\ ]\ %m,%D%*\\a[%*\\d]:\ Entering\ directory\ `%f',%X%*\\a[%*\\d]:\ Leaving\ directory\ `%f',%DMaking\ %*\\a\ in\ %f
|
||||
|
||||
" makeprg - program used for the ":make" command (global or local to buffer)
|
||||
set mp=make
|
||||
|
||||
" shellpipe - string used to put the output of ":make" in the error file
|
||||
set sp=2>&1\|\ tee
|
||||
|
||||
" makeef - name of the errorfile for the 'makeprg' command
|
||||
set mef=
|
||||
|
||||
" grepprg - program used for the ":grep" command (global or local to buffer)
|
||||
set gp=grep\ -n\ $*\ /dev/null
|
||||
|
||||
" grepformat - list of formats for output of 'grepprg'
|
||||
set gfm=%f:%l:%m,%f:%l%m,%f\ \ %l%m
|
||||
|
||||
"
|
||||
" language specific
|
||||
"
|
||||
|
||||
" isfname - specifies the characters in a file name
|
||||
set isf=@,48-57,/,.,-,_,+,,,#,$,%,~,=
|
||||
|
||||
" isident - specifies the characters in an identifier
|
||||
set isi=@,48-57,_,192-255
|
||||
|
||||
" iskeyword - specifies the characters in a keyword (local to buffer)
|
||||
set isk=@,48-57,_,192-255
|
||||
|
||||
" isprint - specifies printable characters
|
||||
set isp=@,161-255
|
||||
|
||||
" rightleft - display the buffer right-to-left (local to window)
|
||||
set norl " rl
|
||||
|
||||
" rightleftcmd - When to edit the command-line right-to-left (local to window)
|
||||
set rlc=search
|
||||
|
||||
" revins - Insert characters backwards
|
||||
set nori " ri
|
||||
|
||||
" allowrevins - Allow CTRL-_ in Insert and Command-line mode to toggle 'revins'
|
||||
set noari " ari
|
||||
|
||||
" aleph - the ASCII code for the first letter of the Hebrew alphabet
|
||||
set al=224
|
||||
|
||||
" hkmap - use Hebrew keyboard mapping
|
||||
set nohk " hk
|
||||
|
||||
" hkmapp - use phonetic Hebrew keyboard mapping
|
||||
set nohkp " hkp
|
||||
|
||||
" altkeymap - use Farsi as the second language when 'revins' is set
|
||||
set noakm " akm
|
||||
|
||||
" fkmap - use Farsi keyboard mapping
|
||||
set nofk " fk
|
||||
|
||||
" arabic - Prepare for editing Arabic text (local to window)
|
||||
set noarab " arab
|
||||
|
||||
" arabicshape - Perform shaping of Arabic characters
|
||||
set arshape " noarshape
|
||||
|
||||
" termbidi - Terminal will perform bidi handling
|
||||
set notbidi " tbidi
|
||||
|
||||
" keymap - name of a keyboard mappping
|
||||
set kmp=
|
||||
|
||||
" langmap - translate characters for Normal mode
|
||||
set lmap=
|
||||
|
||||
" imdisable - when set never use IM; overrules following IM options
|
||||
set noimd " imd
|
||||
|
||||
" iminsert - in Insert mode: 1: use :lmap; 2: use IM; 0: neither (local to window)
|
||||
set imi=0
|
||||
|
||||
" imsearch - entering a search pattern: 1: use :lmap; 2: use IM; 0: neither (local to window)
|
||||
set ims=0
|
||||
|
||||
" imcmdline - when set always use IM when starting to edit a command line
|
||||
set noimc " imc
|
||||
|
||||
"
|
||||
" multi-byte characters
|
||||
"
|
||||
|
||||
" encoding - character encoding used in Vim: "latin1", "utf-8", "euc-jp", "big5", etc.
|
||||
set enc=utf-8
|
||||
|
||||
" fileencoding - character encoding for the current file (local to buffer)
|
||||
set fenc=
|
||||
|
||||
" fileencodings - automatically detected character encodings
|
||||
set fencs=ucs-bom
|
||||
|
||||
" termencoding - character encoding used by the terminal
|
||||
set tenc=utf-8
|
||||
|
||||
" charconvert - expression used for character encoding conversion
|
||||
set ccv=
|
||||
|
||||
" delcombine - Delete combining (composing) characters on their own
|
||||
set nodeco " deco
|
||||
|
||||
" imactivatekey - key that activates the X input method
|
||||
set imak=
|
||||
|
||||
" ambiwidth - Width of ambiguous width characters
|
||||
set ambw=single
|
||||
|
||||
"
|
||||
" printing
|
||||
"
|
||||
|
||||
" printdevice - name of the printer to be used for :hardcopy
|
||||
"set pdev=
|
||||
|
||||
" printencoding - encoding used to print the PostScript file for :hardcopy
|
||||
"set penc=
|
||||
|
||||
" printexpr - expression used to print the PostScript file for :hardcopy
|
||||
"set pexpr=system('lpr'\ .\ (&printdevice\ ==\ ''\ ?\ ''\ :\ '\ -P'\ .\ &printdevice)\ .\ '\ '\ .\ v:fname_in)\ .\ delete(v:fname_in)\ +\ v:shell_error
|
||||
|
||||
" printfont - name of the font to be used for :hardcopy
|
||||
"set pfn=courier
|
||||
|
||||
" printheader - format of the header used for :hardcopy
|
||||
"set pheader=%<%f%h%m%=Page\ %N
|
||||
|
||||
" printoptions - list of items that control the format of :hardcopy output
|
||||
"set popt=
|
||||
|
||||
"
|
||||
" various
|
||||
"
|
||||
|
||||
" eventignore - list of autocommand events which are to be ignored
|
||||
set ei=
|
||||
|
||||
" loadplugins - load plugin scripts when starting up
|
||||
set lpl " nolpl
|
||||
|
||||
" exrc - enable reading .vimrc/.exrc/.gvimrc in the current directory
|
||||
set noex " ex
|
||||
|
||||
" secure - safer working with script files in the current directory
|
||||
set nosecure " secure
|
||||
|
||||
" gdefault - use the 'g' flag for ":substitute"
|
||||
set nogd " gd
|
||||
|
||||
" edcompatible - 'g' and 'c' flags of ":substitute" toggle
|
||||
set noed " ed
|
||||
|
||||
" maxfuncdepth - maximum depth of function calls
|
||||
set mfd=100
|
||||
|
||||
" sessionoptions - list of words that specifies what to put in a session file
|
||||
set ssop=blank,buffers,curdir,folds,help,options,winsize
|
||||
|
||||
" viewoptions - list of words that specifies what to save for :mkview
|
||||
set vop=folds,options,cursor
|
||||
|
||||
" viewdir - directory where to store files with :mkview
|
||||
"set vdir=/home/groover/.vim/view
|
||||
|
||||
" viminfo - list that specifies what to write in the viminfo file
|
||||
set vi=
|
||||
|
||||
" bufhidden - what happens with a buffer when it's no longer in a window (local to buffer)
|
||||
set bh=
|
||||
|
||||
" buftype - "", "nofile", "nowrite" or "quickfix": type of buffer (local to buffer)
|
||||
set bt=
|
||||
|
||||
" buflisted - whether the buffer shows up in the buffer list (local to buffer)
|
||||
set bl " nobl
|
||||
|
||||
" debug - set to "msg" to see all error messages
|
||||
set debug=
|
||||
|
||||
"
|
||||
" filetype (common for plugins)
|
||||
"
|
||||
filetype plugin on
|
||||
|
||||
"
|
||||
" vimcommander
|
||||
"
|
||||
"noremap <silent> <F11> :cal VimCommanderToggle()<CR>
|
||||
|
||||
"
|
||||
" vimoutliner
|
||||
"
|
||||
"filetype plugin on
|
||||
"filetype indent off
|
||||
|
||||
"
|
||||
" latexsuite
|
||||
"
|
||||
"filetype plugin on
|
||||
"filetype indent on
|
||||
set grepprg=grep\ -nH\ $*
|
Loading…
Reference in a new issue