Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 31698

Vim reads initialization commands from a file called vimrc on startup. This can be used to set settings, define functions, execute autocommands, and more.

1 vote
Accepted

Get current vimscript script name and line number?

/home/kamil/.vimrc[464]..function kc#log: Hello world I settled for the following, to also remove function kc#log from the output: echom substitute(expand("<sfile>"), '\.\.[^.]*$', "", ""). …
KamilCuk's user avatar
  • 277
2 votes
1 answer
240 views

Get current vimscript script name and line number?

In C programming language, it's typical to log a message with filename and line number of the source code file the message is coming from: #define log(fmt, ...) printf("%s:%d: " fmt "\n", __file__, _ …
KamilCuk's user avatar
  • 277
0 votes
Accepted

How to make vim show suggest current word in spellchecking suggestiong if current word is co...

I ended up doing the following: " Include correct word in spellsuggestiong if it is correct. See :h spellsuggest() function Kc_spell_suggest_correct_word() if len(spellbadword(v:val)[0]) r …
KamilCuk's user avatar
  • 277
0 votes
1 answer
444 views

How to make vim show suggest current word in spellchecking suggestiong if current word is co...

I often write code, and sometimes I check comments with z= when I am not sure of a spelling of some word. Vim then presents a list of suggestions. However, when I got the spelling right and the word i …
KamilCuk's user avatar
  • 277
1 vote

How to match two parts of error message and concatenate them?

There is no way to do that. Indeed, using an external tool to format the message is the way to go. The tool can be simple, sed is more than enough. Another option is including the whole line in the me …
KamilCuk's user avatar
  • 277
1 vote
1 answer
43 views

How to match two parts of error message and concatenate them?

I try to read :h errorformat: %m error message (finds a string) I try to read it, but I practically found that it's impossible to specify %m twice: E372: Too many %m in format string I …
KamilCuk's user avatar
  • 277