Comments (6)
Most time is probably spent while creating the 536 operator pending mappings. Unfortunately I don't think we can move any of that into auto loaded functions.
I used this to measure how long targets.vim was sourced:
vim --startuptime time.vim +q && grep targets time.vim && rm time.vim
131.157 042.953 042.953: sourcing /Users/welle/.vim/bundle/targets.vim/plugin/targets.vim
I will see if I can make the loops any faster.
from targets.vim.
I'm seeing vastly different results.
459.897 111.382 111.382: sourcing /home/neersighted/.local/share/vim/bundle/targets.vim/plugin/targets.vim
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 23 2014 18:06:49)
Included patches: 1-335
Compiled by neersighted
Huge version with GTK2 GUI. Features included (+) or not (-):
...
from targets.vim.
Small update: I looked into it and found a way that would make targets.vim load faster. I would have to move most of the mapping logic into auto loaded functions. I want to finish #56 first though.
from targets.vim.
A big chunk is spent creating all those separator mappings. If you do not need all of them, you could disable them by modifying g:targets_separators
.
from targets.vim.
Update: #56 is finished and this will be the next item on the list.
from targets.vim.
Great to see progress on this!
from targets.vim.
Related Issues (20)
- [Bug Report] Why does targets.vim reset my filetype?
- targets.vim causing issue with macros HOT 6
- cin' not working with \
- Disabling mappings still causes health check warnings.
- Define argument source with longer separator (multiple characters). HOT 2
- cin" doesn't target next quotes properly HOT 2
- `ia` doesn't handle nested braces when arguments are put each on it's own line HOT 4
- Square brackets argument doesn't work HOT 1
- Supporting Other Plugins HOT 1
- Unable to select pair text object with other pair on the same line HOT 1
- Stops working with "set nomagic"
- dot-repeat echoes sometimes ':call targets#do()'
- README.md has Pathogen example that uses "git://" URL instead of "https://" or "ssh://" URL
- ci( doesn't seek forward
- repeat motion in visual mode does not extend selection
- Missing mapping for r
- How to install for Intellij's ideavim HOT 1
- Mess up with di"
- [feature-request] make it possible to disable one or more omap/vmap ?
- ia do not detect outer scope when an inner scope is present in the line
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from targets.vim.