diff --git a/_inputrc b/_inputrc index 0b6b26d28..1464e78a4 100644 --- a/_inputrc +++ b/_inputrc @@ -31,8 +31,8 @@ set keymap vi-insert "\e[5~": history-search-backward "\e[6~": history-search-forward # gnome / konsole / others (control + arrow key) -"\e[1;5C": forward-word -"\e[1;5D": backward-word +"\e[C": forward-word +"\e[D": backward-word # Tmux "\eOD": backward-word "\eOC": forward-word diff --git a/_vim/autoload/pathogen.vim b/_vim/autoload/pathogen.vim index dbe07f00b..3582fbf51 100644 --- a/_vim/autoload/pathogen.vim +++ b/_vim/autoload/pathogen.vim @@ -16,22 +16,29 @@ endif let g:loaded_pathogen = 1 " Point of entry for basic default usage. Give a relative path to invoke -" pathogen#interpose() (defaults to "bundle/{}"), or an absolute path to invoke -" pathogen#surround(). Curly braces are expanded with pathogen#expand(): -" "bundle/{}" finds all subdirectories inside "bundle" inside all directories -" in the runtime path. +" pathogen#interpose() or an absolute path to invoke pathogen#surround(). +" Curly braces are expanded with pathogen#expand(): "bundle/{}" finds all +" subdirectories inside "bundle" inside all directories in the runtime path. +" If no arguments are given, defaults "bundle/{}", and also "pack/{}/start/{}" +" on versions of Vim without native package support. function! pathogen#infect(...) abort - for path in a:0 ? filter(reverse(copy(a:000)), 'type(v:val) == type("")') : ['bundle/{}'] - if path =~# '^\%({\=[$~\\/]\|{\=\w:[\\/]\).*[{}*]' + if a:0 + let paths = filter(reverse(copy(a:000)), 'type(v:val) == type("")') + else + let paths = ['bundle/{}', 'pack/{}/start/{}'] + endif + if has('packages') + call filter(paths, 'v:val !~# "^pack/[^/]*/start/[^/]*$"') + endif + let static = '^\%([$~\\/]\|\w:[\\/]\)[^{}*]*$' + for path in filter(copy(paths), 'v:val =~# static') + call pathogen#surround(path) + endfor + for path in filter(copy(paths), 'v:val !~# static') + if path =~# '^\%([$~\\/]\|\w:[\\/]\)' call pathogen#surround(path) - elseif path =~# '^\%([$~\\/]\|\w:[\\/]\)' - call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')') - call pathogen#surround(path . '/{}') - elseif path =~# '[{}*]' - call pathogen#interpose(path) else - call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')') - call pathogen#interpose(path . '/{}') + call pathogen#interpose(path) endif endfor call pathogen#cycle_filetype() @@ -97,9 +104,7 @@ function! pathogen#is_disabled(path) abort return 1 endif let sep = pathogen#slash() - let blacklist = - \ get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', [])) + - \ pathogen#split($VIMBLACKLIST) + let blacklist = get(g:, 'pathogen_blacklist', get(g:, 'pathogen_disabled', [])) + pathogen#split($VIMBLACKLIST) if !empty(blacklist) call map(blacklist, 'substitute(v:val, "[\\/]$", "", "")') endif @@ -176,19 +181,20 @@ endfunction " and globbed. Actual globs are preserved. function! pathogen#expand(pattern, ...) abort let after = a:0 ? a:1 : '' - if a:pattern =~# '{[^{}]\+}' - let [pre, pat, post] = split(substitute(a:pattern, '\(.\{-\}\){\([^{}]\+\)}\(.*\)', "\\1\001\\2\001\\3", ''), "\001", 1) + let pattern = substitute(a:pattern, '^[~$][^\/]*', '\=expand(submatch(0))', '') + if pattern =~# '{[^{}]\+}' + let [pre, pat, post] = split(substitute(pattern, '\(.\{-\}\){\([^{}]\+\)}\(.*\)', "\\1\001\\2\001\\3", ''), "\001", 1) let found = map(split(pat, ',', 1), 'pre.v:val.post') let results = [] for pattern in found call extend(results, pathogen#expand(pattern)) endfor - elseif a:pattern =~# '{}' - let pat = matchstr(a:pattern, '^.*{}[^*]*\%($\|[\\/]\)') - let post = a:pattern[strlen(pat) : -1] + elseif pattern =~# '{}' + let pat = matchstr(pattern, '^.*{}[^*]*\%($\|[\\/]\)') + let post = pattern[strlen(pat) : -1] let results = map(split(glob(substitute(pat, '{}', '*', 'g')), "\n"), 'v:val.post') else - let results = [a:pattern] + let results = [pattern] endif let vf = pathogen#slash() . 'vimfiles' call map(results, 'v:val =~# "\\*" ? v:val.after : isdirectory(v:val.vf.after) ? v:val.vf.after : isdirectory(v:val.after) ? v:val.after : ""') @@ -255,35 +261,4 @@ function! pathogen#runtime_findfile(file,count) abort endif endfunction -" Section: Deprecated - -function! s:warn(msg) abort - echohl WarningMsg - echomsg a:msg - echohl NONE -endfunction - -" Prepend all subdirectories of path to the rtp, and append all 'after' -" directories in those subdirectories. Deprecated. -function! pathogen#runtime_prepend_subdirectories(path) abort - call s:warn('Change pathogen#runtime_prepend_subdirectories('.string(a:path).') to pathogen#infect('.string(a:path.'/{}').')') - return pathogen#surround(a:path . pathogen#slash() . '{}') -endfunction - -function! pathogen#incubate(...) abort - let name = a:0 ? a:1 : 'bundle/{}' - call s:warn('Change pathogen#incubate('.(a:0 ? string(a:1) : '').') to pathogen#infect('.string(name).')') - return pathogen#interpose(name) -endfunction - -" Deprecated alias for pathogen#interpose(). -function! pathogen#runtime_append_all_bundles(...) abort - if a:0 - call s:warn('Change pathogen#runtime_append_all_bundles('.string(a:1).') to pathogen#infect('.string(a:1.'/{}').')') - else - call s:warn('Change pathogen#runtime_append_all_bundles() to pathogen#infect()') - endif - return pathogen#interpose(a:0 ? a:1 . '/{}' : 'bundle/{}') -endfunction - " vim:set et sw=2 foldmethod=expr foldexpr=getline(v\:lnum)=~'^\"\ Section\:'?'>1'\:getline(v\:lnum)=~#'^fu'?'a1'\:getline(v\:lnum)=~#'^endf'?'s1'\:'=': diff --git a/_vim/bundle/fugitive b/_vim/bundle/fugitive index c640ee78a..7c9b87a3c 160000 --- a/_vim/bundle/fugitive +++ b/_vim/bundle/fugitive @@ -1 +1 @@ -Subproject commit c640ee78a8aa007ad8e7080c21d428e893652903 +Subproject commit 7c9b87a3c3ef4b53425aca4a27e11a7359caae9f diff --git a/_vim/bundle/git b/_vim/bundle/git index a08ca0461..04c9a9d1c 160000 --- a/_vim/bundle/git +++ b/_vim/bundle/git @@ -1 +1 @@ -Subproject commit a08ca046128988beb3461d44de91524350be7678 +Subproject commit 04c9a9d1ce06ce8438e55db6c581e94344da3aa1 diff --git a/_vim/bundle/jedi-vim b/_vim/bundle/jedi-vim index 40a02a7fd..77924398b 160000 --- a/_vim/bundle/jedi-vim +++ b/_vim/bundle/jedi-vim @@ -1 +1 @@ -Subproject commit 40a02a7fd187bf82ce3cda517feffbda8015ef5c +Subproject commit 77924398bd594e238766153cec97ace62650f082 diff --git a/_vim/bundle/syntastic b/_vim/bundle/syntastic index 6cf4f5ca7..206b616c8 160000 --- a/_vim/bundle/syntastic +++ b/_vim/bundle/syntastic @@ -1 +1 @@ -Subproject commit 6cf4f5ca76059caf229bc32c8e613cb137e0faed +Subproject commit 206b616c8e49f948d18231799c469aa3e6e2c29c diff --git a/_vim/bundle/ultisnips b/_vim/bundle/ultisnips index 5352d98f2..423f264e7 160000 --- a/_vim/bundle/ultisnips +++ b/_vim/bundle/ultisnips @@ -1 +1 @@ -Subproject commit 5352d98f212e273b3e8b1d84efdbe2d6a6d557e9 +Subproject commit 423f264e753cec260b4f14455126e6db7ba429af diff --git a/_vimrc b/_vimrc index dbb344099..f9de735f4 100644 --- a/_vimrc +++ b/_vimrc @@ -233,12 +233,15 @@ autocmd FileType html,xhtml,xml,css setlocal expandtab shiftwidth=2 tabstop=2 so au BufRead,BufNewFile *.md,*.markdown set syntax=markdown " Python +let g:syntastic_python_python_exec = 'python3' let g:syntastic_python_checkers=['flake8'] -let g:syntastic_python_flake8_exec='python3' -let g:syntastic_python_flake8_args=['-m', 'flake8', "--ignore=E501,W601"] +let g:syntastic_python_flake8_args='--ignore=E501,W601' au BufRead,BufNewFile *.py set filetype=python au BufRead *.py set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m +au BufRead,BufNewFile *.rascal set filetype=python +au BufRead *.rascal set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\ ]%\\@=%m + let g:SuperTabDefaultCompletionType = "context" au FileType python setlocal expandtab shiftwidth=4 tabstop=8 softtabstop=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,with