autocmd
How to get the Help window to always open in the same position?
I do this for opening help pages in vertical window: cabbrev help vert botright help this way, it is ok, but a bit disturbing, and it is spamming my :history 开发者_如何学Pythona bit too.[详细]
2023-04-05 12:34 分类:问答Is it possible to have vim prevent the saving of a php file that has a parse error?
I use vim and would like it to prevent me from saving php files that has parse errors. If I wo开发者_运维问答uld like to use for instance \"php -l <file>\" to achieve this, how would the autocmd[详细]
2023-03-06 19:09 分类:问答autocmd check filename in vim?
I want to write some autocmd\'s that check if the filename is this or that.. I\'ve been trying: autocmd VimEnter * if % is \"preamble\" | Explore | endif[详细]
2023-03-05 20:50 分类:问答How to make vim move cursor a character to theright on insertleave?
Since mac os x\'s terminal.app does not support many of the vim visual aspects, including the cursor change from block to line when switching to insert mode, I use osascript to a开发者_StackOverflowcc[详细]
2023-03-02 10:37 分类:问答How to automatically execute a shell command after saving a file in Vim?
This is because I\'d like to automatica开发者_开发知识库lly run tests after each file save. I have looked at autocmd and BufWritePost but cannot make it work.This runs run_tests.sh after any file is[详细]
2023-02-03 06:22 分类:问答Using shorter textwidth in comments and docstrings
From the mighty PEP 8: [P]lease limit all lines to a maximum of 79 characters.For flowing long blocks of text (docstrings or comments), limiting the开发者_运维知识库 length to 72 characters is recom[详细]
2023-01-22 06:29 分类:问答Insert vim variables into text for comment shortcut
I have a simple goal: Map Ctrl-C, a command I don\'t think I\'ve ever used to kill vim, to automatically insert at the beginning of a line the correct character(s) to comment out that line according t[详细]
2023-01-19 08:05 分类:问答Call a function in Vim’s `autocmd` command
I want to use the expand function in an autocmd. In particular, I am adapting a tip by Paul Biggar and I wanted to use the followi开发者_JAVA百科ng auto command in my .gvimrc:[详细]
2022-12-12 04:03 分类:问答