drmikehenry / vimfiles Goto Github PK
View Code? Open in Web Editor NEWMike's Vim configuration
Mike's Vim configuration
The vimfiles project is a collection of configuration files for Vim and Neovim that gather settings, plugins, and documentation to provide a powerful editing environment with minimal additional tweaking. See doc/notes.txt for setup and usage details.
In case someone uses ctags
with --tag-relative=yes
, then instead of
Line 2681 in 2492276
the mappings in
ToruIwashita/nimble-anyjump.vim#9
may be useful
On vim (8.2) getting a syntax warning while parsing the localvimrc plugin. Looks like it's been fixed upstream in this commit embear/vim-localvimrc@7974cd4.
I can also manually patch bundle/localvimrc/plugin/localvimrc.vim:
- catch ^Vim\%((\a\+)\)\=:E48
+ catch /^Vim\%((\a\+)\)\=:E48/
Cheers!
Regarding
Line 2794 in c3bd859
there might be two files with the same name in different paths, which gf
would recognize, but <c-]>
not. Therefore, how about first trying gf
, then <c-]>
like in
nnoremap <silent> gf :<c-u>call <sid>gf("gf")<cr>
nnoremap <silent> <c-w>f :<c-u>call <sid>gf("\<lt>c-w>f")<cr>
nnoremap <silent> <c-w>gf :<c-u>call <sid>gf("\<lt>c-w>gf")<cr>
nmap <silent> <C-w><C-f> <C-w>f
nnoremap <silent> gF :<c-u>call <sid>gf("gF")<cr>
nnoremap <silent> <c-w>F :<c-u>call <sid>gf("\<lt>c-w>F")<cr>
nnoremap <silent> <c-w>gF :<c-u>call <sid>gf("\<lt>c-w>gF")<cr>
function s:gf(map)
try
exe 'normal! ' . a:map
catch /^Vim\%((\a\+)\)\=:E447/
try
if a:map is# "gf" || a:map is# "gF"
exe 'tjump ' . expand('<cfile>:t')
elseif a:map is# "\<c-w>f" || a:map is# "\<c-w>F"
exe 'ptjump ' . expand('<cfile>:t')
elseif a:map is# "\<c-w>gf" || a:map is# "\<c-w>gF"
exe 'ptjump ' . expand('<cfile>:t')
endif
catch /^Vim\%((\a\+)\)\=:E\%(426\|433\)/
echo 'Error: neither path nor tag for this file name found!'
endtry
endtry
endfunction
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.