如何在IdeaVim中打破一条长线

时间:2015-09-22 18:47:10

标签: vim intellij-idea pycharm ideavim

我希望能够将超过100个字符的行分成IntelliJ IdeaVim中少于100个字符的多行。 vim command to restructure/force text to 80 columns中的Vim解决方案不起作用。

1 个答案:

答案 0 :(得分:1)

尚未在IdeaVim中实现。欢迎https://youtrack.jetbrains.com/issue/VIM-1310投票:set textwidth关于gqhttps://youtrack.jetbrains.com/issue/VIM-186关于router.post('/change-password', verifyToken, csrfProtection, (req, res, next) => { if (!req.body.password_current || !req.body.password_new) { req.flash('info', 'Please fill in both fields.'); return res.redirect('/change-password'); } const data = {}; data.password = req.body.password_new; tokenHandler.verifyToken(req.cookies.token) .then((decoded) => { return User.findOne({ '_id.user_id': decoded.user }); }) .then((user) => { data.userId = ObjectId(user._id.user_id); return bcrypt.compare(req.body.password_current, user.password); }) .then((allowed) => { if (!allowed) { return res.redirect('/change-password'); } else{ console.log('I am not here'); return User.findOneAndUpdate({ '_id.user_id': data.userId }, { password: data.password }, { new: true }) .then(() => { return res.redirect('/change-password'); }); } }) .catch((err) => { return next(err); }); }); 重新发表评论。