Vim: Reverse right to left
I have accidently :set rl
thinking it's for relative lines. I have activated right to left mode. The doc for rightleft
doesn't say how to reverse rl mode
without exiting vim.
How does one go left to right in vim?
vim
add a comment |
I have accidently :set rl
thinking it's for relative lines. I have activated right to left mode. The doc for rightleft
doesn't say how to reverse rl mode
without exiting vim.
How does one go left to right in vim?
vim
add a comment |
I have accidently :set rl
thinking it's for relative lines. I have activated right to left mode. The doc for rightleft
doesn't say how to reverse rl mode
without exiting vim.
How does one go left to right in vim?
vim
I have accidently :set rl
thinking it's for relative lines. I have activated right to left mode. The doc for rightleft
doesn't say how to reverse rl mode
without exiting vim.
How does one go left to right in vim?
vim
vim
edited Apr 13 '17 at 12:36
Community♦
1
1
asked Apr 12 '17 at 11:52
Cat BossCat Boss
4251415
4251415
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
:set norl
or
:set norightleft
Each boolean option in Vim has a corresponding no
-option that turns it off.
The option you were originally looking for might have been relativenumber
(rnu
), which acts like number
(nu
) but adds line numbers that are relative to the current line rather than to the start of the editing buffer.
1
"Most (all?)" all the boolean options.
– JoL
Apr 12 '17 at 18:50
@JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)
– Kusalananda
Feb 22 at 10:25
I haven't tried them all either, but the documentation for:set
describes it as a generic syntax rather than some convention::se[t] no{option} Toggle option: Reset, switch it off.
. It also has other syntaxes like:se[t] inv{option}
,:se[t] {option}!
, and:se[t] {option}?
.
– JoL
Feb 22 at 16:46
add a comment |
Turn options on or off with !
set rightleft!
To quote the Vim help:
*:set-!* *:set-inv*
:se[t] {option}! or
:se[t] inv{option} Toggle option: Invert value. {not in Vi}
You can see this in the built-in Vim help by typing :help :set-!
from inside Vim.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f358528%2fvim-reverse-right-to-left%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
:set norl
or
:set norightleft
Each boolean option in Vim has a corresponding no
-option that turns it off.
The option you were originally looking for might have been relativenumber
(rnu
), which acts like number
(nu
) but adds line numbers that are relative to the current line rather than to the start of the editing buffer.
1
"Most (all?)" all the boolean options.
– JoL
Apr 12 '17 at 18:50
@JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)
– Kusalananda
Feb 22 at 10:25
I haven't tried them all either, but the documentation for:set
describes it as a generic syntax rather than some convention::se[t] no{option} Toggle option: Reset, switch it off.
. It also has other syntaxes like:se[t] inv{option}
,:se[t] {option}!
, and:se[t] {option}?
.
– JoL
Feb 22 at 16:46
add a comment |
:set norl
or
:set norightleft
Each boolean option in Vim has a corresponding no
-option that turns it off.
The option you were originally looking for might have been relativenumber
(rnu
), which acts like number
(nu
) but adds line numbers that are relative to the current line rather than to the start of the editing buffer.
1
"Most (all?)" all the boolean options.
– JoL
Apr 12 '17 at 18:50
@JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)
– Kusalananda
Feb 22 at 10:25
I haven't tried them all either, but the documentation for:set
describes it as a generic syntax rather than some convention::se[t] no{option} Toggle option: Reset, switch it off.
. It also has other syntaxes like:se[t] inv{option}
,:se[t] {option}!
, and:se[t] {option}?
.
– JoL
Feb 22 at 16:46
add a comment |
:set norl
or
:set norightleft
Each boolean option in Vim has a corresponding no
-option that turns it off.
The option you were originally looking for might have been relativenumber
(rnu
), which acts like number
(nu
) but adds line numbers that are relative to the current line rather than to the start of the editing buffer.
:set norl
or
:set norightleft
Each boolean option in Vim has a corresponding no
-option that turns it off.
The option you were originally looking for might have been relativenumber
(rnu
), which acts like number
(nu
) but adds line numbers that are relative to the current line rather than to the start of the editing buffer.
edited Feb 22 at 10:26
answered Apr 12 '17 at 11:54
KusalanandaKusalananda
135k17255421
135k17255421
1
"Most (all?)" all the boolean options.
– JoL
Apr 12 '17 at 18:50
@JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)
– Kusalananda
Feb 22 at 10:25
I haven't tried them all either, but the documentation for:set
describes it as a generic syntax rather than some convention::se[t] no{option} Toggle option: Reset, switch it off.
. It also has other syntaxes like:se[t] inv{option}
,:se[t] {option}!
, and:se[t] {option}?
.
– JoL
Feb 22 at 16:46
add a comment |
1
"Most (all?)" all the boolean options.
– JoL
Apr 12 '17 at 18:50
@JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)
– Kusalananda
Feb 22 at 10:25
I haven't tried them all either, but the documentation for:set
describes it as a generic syntax rather than some convention::se[t] no{option} Toggle option: Reset, switch it off.
. It also has other syntaxes like:se[t] inv{option}
,:se[t] {option}!
, and:se[t] {option}?
.
– JoL
Feb 22 at 16:46
1
1
"Most (all?)" all the boolean options.
– JoL
Apr 12 '17 at 18:50
"Most (all?)" all the boolean options.
– JoL
Apr 12 '17 at 18:50
@JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)
– Kusalananda
Feb 22 at 10:25
@JoL I wasn't 100% it was all of them, so I didn't want to make a definite statement, and I'm still not entirely certain :-)
– Kusalananda
Feb 22 at 10:25
I haven't tried them all either, but the documentation for
:set
describes it as a generic syntax rather than some convention: :se[t] no{option} Toggle option: Reset, switch it off.
. It also has other syntaxes like :se[t] inv{option}
, :se[t] {option}!
, and :se[t] {option}?
.– JoL
Feb 22 at 16:46
I haven't tried them all either, but the documentation for
:set
describes it as a generic syntax rather than some convention: :se[t] no{option} Toggle option: Reset, switch it off.
. It also has other syntaxes like :se[t] inv{option}
, :se[t] {option}!
, and :se[t] {option}?
.– JoL
Feb 22 at 16:46
add a comment |
Turn options on or off with !
set rightleft!
To quote the Vim help:
*:set-!* *:set-inv*
:se[t] {option}! or
:se[t] inv{option} Toggle option: Invert value. {not in Vi}
You can see this in the built-in Vim help by typing :help :set-!
from inside Vim.
add a comment |
Turn options on or off with !
set rightleft!
To quote the Vim help:
*:set-!* *:set-inv*
:se[t] {option}! or
:se[t] inv{option} Toggle option: Invert value. {not in Vi}
You can see this in the built-in Vim help by typing :help :set-!
from inside Vim.
add a comment |
Turn options on or off with !
set rightleft!
To quote the Vim help:
*:set-!* *:set-inv*
:se[t] {option}! or
:se[t] inv{option} Toggle option: Invert value. {not in Vi}
You can see this in the built-in Vim help by typing :help :set-!
from inside Vim.
Turn options on or off with !
set rightleft!
To quote the Vim help:
*:set-!* *:set-inv*
:se[t] {option}! or
:se[t] inv{option} Toggle option: Invert value. {not in Vi}
You can see this in the built-in Vim help by typing :help :set-!
from inside Vim.
edited Apr 12 '17 at 21:10
Wildcard
23k1065170
23k1065170
answered Apr 12 '17 at 15:25
m0dularm0dular
76615
76615
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f358528%2fvim-reverse-right-to-left%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown