I am new to vim and esp. in lua scripting. I want to create an autocmd such that all the jinja files will get yaml syntax highlighting. but this is ...
I am new to vim and esp. in lua scripting. I want to create an autocmd such that all the jinja files will get yaml syntax highlighting. but this is ...
I'd like to have syntax highlighting on files with the .ott extension (using ott-vim), but I am not getting any colors when opening a file, even thoug ...
Background story: I want vim to generate a public class declaration when editing new java files, so I wrote the following augroup: Which works fine ...
I've been setting up my init.vim file to use NeoVim on Windows 10, and ran into an issue I'm struggling to understand. At the start of my file, I set ...
I have a function setup to run on InsertEnter autocmd. In the function I want to jump to a specific line. So what I have tried (simplified) is this s ...
I would like help with my vim script. thus far I am able to check for the file name, however, I have been unsuccessful in learning how to give normal ...
I want to autorun formatter when saving a file. Using BufWritePre doesn't work when quitting with :x (or ZZ), if the file hasn't yet been modified. Ex ...
I want to write command like autocmd BufAdd * if &filetype != 'help' | echo 'foo', but it didn't work. I've tried different options: &l:filety ...
I am migrating from a well tested and used for years init.vim to a new init.lua. The last two lines do not show errors but they do not work. The idea ...
I've configured Vim to look like this: Every element is in it's own buffer. Is it possible to delete the REPL buffer only when I quit the code buff ...
From this answer I executed: Since then, I cannot disable the BufRead. I can open a file and unset the modeline: But when I reopen the same fil ...
in linux i used something like but since windows uses back slashes i thought i should try something like or but none of them seem to give des ...
In my .vimrc I want to define several autocmd groups. Also, I want to avoid conflicts with any pre-existing groups. How can I list currently defined g ...
if I have a file open in vim and use the command ":split", it splits the same buffer into two windows. In my vimrc I have this commands: Unfortuna ...
I want to create a plugin which maps a certain localleader mapping to a function call. I have a ftplugin/javascript.vim file with the following conte ...
I am looking to jump automatically to the last position in any file that I open. I have in my ~/.vimrc file: This works fine if I open a file usin ...
I am trying to reproduce the tips outlined in this article in IdeaVim. Relative or hybrid line numbers work like a charm, no trouble there. However, ...
I've recently installed the VimWiki plug-in, and am learning about Vim's plugin architecture in general (and better using directories like after/ftplu ...
I am learning Vim and I have successfully set up my .vimrc file such that whenever I make a new python .py file, the appropriate shebang and header ar ...
I'd like to change filetype in autocmd FileType hook. Thre reason is that I'd like to use NeoMutt syntax file for .muttrc instead of Vim's default syn ...