Questions tagged [vimscript]
Vimscript is the scripting language built into the text editor Vim. It can also be referred to as "Vim Language" or "VimL".
16 questions
2
votes
0
answers
60
views
Parsing dictionary list from malformed HTTP response in Vim raw channel callback
Questions
Are there edge-cases that I've missed?
Do HTTP response header values ever contain JSON-like data?
Any style pointers related to code readability?
Are there other/better Vim (versions 8 or ...
1
vote
1
answer
198
views
Vim plugin for easy window navigation
I've been thinking about it for a while and, after asking a question on vi.stackexchange, I decided to write a small plugin myself and put it on GitHub; basically it offers a mapping to activate a ...
2
votes
0
answers
72
views
Vim plugin Nudge Lines
I've published a Vim plugin that nudges visually selected lines up or down, which for the most part seems to function as designed. However, I believe there are likely ways that this plugin could be ...
3
votes
0
answers
159
views
Vim plugin MarkDown Headings
This is my first Vim plugin and is intended to assist with adding, and editing, MarkDown headings. Features include changing the heading depth, auto-update heading reference links, and adding link ...
2
votes
2
answers
225
views
Turning relativenumber option off/on when opening/closing the gdb terminal window
When I was not sure about how to do this, I asked this question on StackOverflow, the body of which is the following:
As regards line numbers, when doing normal file editing, I prefer to
have the ...
2
votes
0
answers
120
views
Vim. Displaying register's content in a side bar
I have written a vimscript for learning purposes. The script displays the content of registers in a side bar by polling all registers periodically and redrawing the side bar when any changes happens. ...
2
votes
0
answers
45
views
auto-fold deeply nested parts of a file (vimscript)
Folding in vim has bugged me for a while. What I intuitively want is for the details to be folded, but the overall structure of a file to remain unfolded. This way I can navigate around a file to see ...
4
votes
1
answer
104
views
Cycle through filenames in vim
So I have a list of files which names are something like this
...
4
votes
0
answers
331
views
Python breakpoints in Vim (Vimscript)
I recently decided that putting strategically placed print statements scattered about my python programs to debug was getting to be a little messy.
I had thought ...
2
votes
0
answers
82
views
Vim plugin for folding markdown lists
My first delve into vimscript was writing a plugin for folding markdown lists.
I reckon there are a few idioms I'm missing here, so I would greatly appreciate any comments to improve the plugin.
I'...
2
votes
0
answers
144
views
VIm function that runs file through shfmt
I've written a Vim function that formats the file using shfmt. I'd like to know if there is a way I can improve this script.
I am bothered by the fact that I can't think of a way to do this without ...
3
votes
0
answers
60
views
Scroll offset (vimscript)
When you jump to a search result in Vim, your cursor can end up near the bottom (or top) of the window, making it difficult to see the surrounding context.
Some people like to automatically center ...
2
votes
0
answers
54
views
dyon vim syntax plugin
I recently made vim-dyon which is a syntax highlighter and indenter for the dyon programming language. There are probably some issues with being absolutely correct (since I am not too familiar with ...
8
votes
1
answer
286
views
Map command in VIM
Background
I've just started using VIM and have become comfortable with navigation. I'm attempting to reduce repetitive tasks and thought I would take a crack at mapping. I was able to accomplish my ...
3
votes
0
answers
95
views
Scraping paths from a Gruntfile
As a part of my Tabv Vim plugin (which at this stage is nothing more than a pitiful rag-tag assortment of half-baked hacks), I have a function which attempts to guess the directory paths for main ...
2
votes
1
answer
135
views
Checking if a git repository needs to be updated
I made a small Vim distribution that uses vundle. I decided to make a small function that checks if the repository must be updated.
...