Skip to main content

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".

Filter by
Sorted by
Tagged with
2 votes
0 answers
60 views

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 ...
S0AndS0's user avatar
  • 978
1 vote
1 answer
198 views

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 ...
Enlico's user avatar
  • 531
2 votes
0 answers
72 views

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 ...
S0AndS0's user avatar
  • 978
3 votes
0 answers
159 views

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 ...
S0AndS0's user avatar
  • 978
2 votes
2 answers
225 views

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 ...
Enlico's user avatar
  • 531
2 votes
0 answers
120 views

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. ...
MiniMax's user avatar
  • 902
2 votes
0 answers
45 views

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 ...
JIStone's user avatar
  • 193
4 votes
1 answer
104 views

So I have a list of files which names are something like this ...
N3buchadnezzar's user avatar
4 votes
0 answers
331 views

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 ...
Jebby's user avatar
  • 261
2 votes
0 answers
82 views

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'...
Hawkins's user avatar
  • 121
2 votes
0 answers
144 views

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 ...
harleypig's user avatar
  • 227
3 votes
0 answers
60 views

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 ...
ivan's user avatar
  • 805
2 votes
0 answers
54 views

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 ...
Dair's user avatar
  • 6,230
8 votes
1 answer
286 views

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 ...
Erds's user avatar
  • 225
3 votes
0 answers
95 views

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 ...
Kazark's user avatar
  • 273
2 votes
1 answer
135 views

I made a small Vim distribution that uses vundle. I decided to make a small function that checks if the repository must be updated. ...
Hobbestigrou's user avatar