Comments (2)
The plug-in is trying to rewrite the file you're opening. When you do "vim file.txt:20" vim tries to open a file with that exact name.
This plug-in will capture those and if a file named "file.txt" exists it will replace the new file that was just created with the previously existent file and jump to line 20.
The problem is that those manipulations confuse vim events and some weird things happen.
I've tried two different strategies for the substitution to happen, but both have some weird side effect.
from file-line.
Any way to fix this?
At the very least, it might be good to add a warning in documentation. The SwapExists
thing is relatively common.
Also, thanks for the awesome plugin!
from file-line.
Related Issues (20)
- :e file:line HOT 1
- "." is a directory
- Filetype not set on multiple files HOT 1
- -p broken HOT 4
- Break gzip plugins HOT 1
- Breaks templates loading HOT 3
- Breaks templates loading HOT 4
- Breaks syntax highlighting for all but first file when opening multiple files at once. HOT 1
- Breaks highlight by other plugins HOT 1
- Highlighting broken when using set hidden and opening multiple files
- -o/-O broken HOT 1
- file-line doesn't work when first character in file is tab HOT 1
- Sets wrong filetype for jar files HOT 1
- ADD FILENAME TO .git/COMMIT_EDITMSG HOT 2
- Opening a file read-only, that is already opened, breaks
- nvim foo.cc:42 opens in buffer 2 HOT 1
- Jump to file_name:line_number from stack trace HOT 1
- Enhancement Request: Add additional pattern to regexp
- Breaks shell redirection and pipes HOT 3
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 file-line.