vim - Create New Line While in Insert Mode -
i use shift + enter create new line in vim.
so if |
cursor, here do:
<%= some.code("in here") | %>
now, press shift + enter (or similar) , output:
<%= some.code("in here") %> , new line here |
is possible?
escape normal mode
there number of ways want, 1 option use ctrl-o escape normal mode insert line. example ctrl-o o open new line below current line , place cursor there.
if want map rather use one-off, can use imap set mnemonic of choice. example:
:imap \nn <c-o>o
will create insert-mode mapping \nn same thing.
Comments
Post a Comment