How to start Vim in insert mode at end of first line when committing Git changes?
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
What would be the best way to set Vim up to always put the cursor in insert mode at the end of the first line (to account for commit header templates) when running git commit
? Ideally this should be a Vim configuration, because I rely on $VISUAL
rather than configuring editors for everything separately.
vim configuration git
add a comment |Â
up vote
1
down vote
favorite
What would be the best way to set Vim up to always put the cursor in insert mode at the end of the first line (to account for commit header templates) when running git commit
? Ideally this should be a Vim configuration, because I rely on $VISUAL
rather than configuring editors for everything separately.
vim configuration git
Do you have a line in your config that activates this behaviour for all files? If so, you could make an exception for git.
â jasonwryan
13 mins ago
1
I'm pretty sure you have to configure it as it does not ship like that.
â jasonwryan
8 mins ago
Thanks, you're right. I've reformulated the question.
â l0b0
3 mins ago
I'll cheat: vim.wikia.com/wiki/â¦
â jasonwryan
49 secs ago
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
What would be the best way to set Vim up to always put the cursor in insert mode at the end of the first line (to account for commit header templates) when running git commit
? Ideally this should be a Vim configuration, because I rely on $VISUAL
rather than configuring editors for everything separately.
vim configuration git
What would be the best way to set Vim up to always put the cursor in insert mode at the end of the first line (to account for commit header templates) when running git commit
? Ideally this should be a Vim configuration, because I rely on $VISUAL
rather than configuring editors for everything separately.
vim configuration git
vim configuration git
edited 7 mins ago
asked 20 mins ago
l0b0
26.7k17107234
26.7k17107234
Do you have a line in your config that activates this behaviour for all files? If so, you could make an exception for git.
â jasonwryan
13 mins ago
1
I'm pretty sure you have to configure it as it does not ship like that.
â jasonwryan
8 mins ago
Thanks, you're right. I've reformulated the question.
â l0b0
3 mins ago
I'll cheat: vim.wikia.com/wiki/â¦
â jasonwryan
49 secs ago
add a comment |Â
Do you have a line in your config that activates this behaviour for all files? If so, you could make an exception for git.
â jasonwryan
13 mins ago
1
I'm pretty sure you have to configure it as it does not ship like that.
â jasonwryan
8 mins ago
Thanks, you're right. I've reformulated the question.
â l0b0
3 mins ago
I'll cheat: vim.wikia.com/wiki/â¦
â jasonwryan
49 secs ago
Do you have a line in your config that activates this behaviour for all files? If so, you could make an exception for git.
â jasonwryan
13 mins ago
Do you have a line in your config that activates this behaviour for all files? If so, you could make an exception for git.
â jasonwryan
13 mins ago
1
1
I'm pretty sure you have to configure it as it does not ship like that.
â jasonwryan
8 mins ago
I'm pretty sure you have to configure it as it does not ship like that.
â jasonwryan
8 mins ago
Thanks, you're right. I've reformulated the question.
â l0b0
3 mins ago
Thanks, you're right. I've reformulated the question.
â l0b0
3 mins ago
I'll cheat: vim.wikia.com/wiki/â¦
â jasonwryan
49 secs ago
I'll cheat: vim.wikia.com/wiki/â¦
â jasonwryan
49 secs ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475187%2fhow-to-start-vim-in-insert-mode-at-end-of-first-line-when-committing-git-changes%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Do you have a line in your config that activates this behaviour for all files? If so, you could make an exception for git.
â jasonwryan
13 mins ago
1
I'm pretty sure you have to configure it as it does not ship like that.
â jasonwryan
8 mins ago
Thanks, you're right. I've reformulated the question.
â l0b0
3 mins ago
I'll cheat: vim.wikia.com/wiki/â¦
â jasonwryan
49 secs ago