delted .vim inside .vim
This commit is contained in:
parent
fff033d7ea
commit
0e808b49df
|
@ -1,2 +0,0 @@
|
||||||
compiler go
|
|
||||||
nnoremap <buffer> <space> :silent make <bar> redraw
|
|
|
@ -1,31 +0,0 @@
|
||||||
set tabstop=4 shiftwidth=4 autoindent smartindent expandtab
|
|
||||||
setlocal colorcolumn=80
|
|
||||||
|
|
||||||
setlocal path=.,**
|
|
||||||
setlocal wildignore+=*.pyc
|
|
||||||
|
|
||||||
" Add search in other files inside the path
|
|
||||||
set include=^\\s*\\(from\\\|import\\)\\s*\\zs\\(\\S\\+\\s\\{-}\\)*\\ze\\($\\\|\ as\\)
|
|
||||||
function! PyInclude(fname)
|
|
||||||
" Following examples:
|
|
||||||
" import conv.metrics
|
|
||||||
" /conv.metrics/
|
|
||||||
" conv/metrics.py
|
|
||||||
" from conv import conversion as conv (2)
|
|
||||||
" /conv import conversion/
|
|
||||||
" conv/conversion.py conv.py
|
|
||||||
let parts = split(a:fname, ' import ') " (1) [conv.metrics] (2) [conv, conversion]
|
|
||||||
let l = parts[0] " (1) conv.metrics (2) conv
|
|
||||||
if len ( parts ) > 1
|
|
||||||
let r = parts[1] " conversion
|
|
||||||
let joined = join([l,r], '.') " conv.conversion
|
|
||||||
let fp = substitute(joined, '\.', '/', 'g') . '.py'
|
|
||||||
let found = glob(fp, 1)
|
|
||||||
if len(found)
|
|
||||||
return found
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
return substitute(joined, '\.', '/', 'g') . '.py'
|
|
||||||
endfunction
|
|
||||||
setlocal includeexpr=PyInclude(v:fname)
|
|
||||||
setlocal define=^\\s*\\<\\(def\\\|class\\)\\>
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 35953042fbf5535a7e905b52a6973c3f7f8a5536
|
|
|
@ -1,3 +0,0 @@
|
||||||
let current_compiler = ‘go’
|
|
||||||
CompilerSet makeprg=go\ build\ ./...
|
|
||||||
CompilerSet errorformat=%E%f:%l:%c:%m
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit bf2885a95efdad7bd5e4794dd0213917770d79b7
|
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 8e2d352eb8958693ea2021f7f43ae0418dcb083b
|
|
Loading…
Reference in New Issue