Skip to main content

Timeline for Move cursor from surrounds

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
S Aug 9, 2017 at 13:05 history suggested Hotschke
Plugin surround has nothing to do with this issue
Aug 9, 2017 at 7:58 review Suggested edits
S Aug 9, 2017 at 13:05
Sep 8, 2016 at 14:10 vote accept megas
Sep 8, 2016 at 10:21 answer added VanLaser timeline score: 3
Sep 8, 2016 at 9:25 comment added nobe4 I would use <C-o> which let you execute a normal command before returning in insert mode: <C-o>fb
Sep 8, 2016 at 7:32 comment added statox If you find it annoying maybe you don't move your cursor efficiently: how do you move it? Here after typing condition you can do <Esc>f{a which isn't that bad... Now if you really want to cut some keystrokes the plugin solution seems pretty good.
Sep 8, 2016 at 7:29 comment added romainl You simply use your cursor keys.
Sep 7, 2016 at 23:49 comment added Luc Hermitte That where snippets and abbreviations with placeholders come in handy. You just hit tab, CTRL-J or whatever the plugin/placeholder system uses and you'll be doing all those tasks at once: <esc>/{<cr>o. The downside is that you need abbreviations or snippets for all the control statements you could use. Fortunately, C control statements are well spread. I even have a for-range loop for C++ in lh-cpp. If some part of the body has already been typed, well, you'll need to define a mapping to do what you wish.
Sep 7, 2016 at 23:16 comment added megas It's not about snippet system, just go out of brackets and continue typing.
Sep 7, 2016 at 22:44 comment added VanLaser One way is to use a snippet system (Ultisnips, Neosnippet <- plugins) and use/define an if snippet that has placeholders for condition and body, placeholders that can be edited and jumped from one to the another. Other than that, in Vim there are many ways to quickly "move cursor" with precision to a desired location.
Sep 7, 2016 at 22:17 history asked megas CC BY-SA 3.0