XVimProject / XVim

Xcode plugin for Vim keybindings
MIT License
5.16k stars 595 forks source link

Curly brace movement #1020

Open freshwater opened 7 years ago

freshwater commented 7 years ago

First off thanks to everyone that has helped in this project. When I think of what a Vim emulator involves, I imagine an edge case-shaped hell full of edge cases that torture you with edge cases O.O

Curly braces { } aren't moving to previous/next empty line like they do on vanilla Vim.

I'm unfamiliar with the codebase, what files should I look at to add/alter this functionality myself? The 'quick' way is to remap the keys, but this has drawbacks, so I'd prefer to just go to the source.

jacobdaily737 commented 7 years ago

Were you able to fix this? I would love to hear how you did, if you did.

thecodewarrior commented 7 years ago

The problem was that fully whitespace lines weren't considered blank. You can set Xcode to trim the trailing whitespace on all-whitespace lines by going to Preferences > Text Editing > While Editing and enabling Including whitespace-only lines and Automatically trim trailing whitespace if it isn't already enabled.