Tagged Questions
1
vote
1answer
59 views
How to reference a script-local dictionary in a Vim mapping?
Somehow I'm not able to execute the following mapping:
function! s:MySurroundingFunctionIWantToKeep()
let s:Foobar={'foo': 'bar'}
map \42 :echo <sid>Foobar.foo<cr>
endfunction
call ...
4
votes
4answers
489 views
How to make functions created in a bash script persist like those in .bashrc?
My .bashrc was getting a little long, so I decided to break it up into smaller files according to topic and then call these files from within .bashrc as so
#my long .bashrc file
bash .topic1rc
bash ...