Disabling mouse in Vim disables indentation
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I have Vim version 8.0.122 on FreeBSD 9.3 (installed with pkg). I have default global vimrc. I want to disable mouse support completely on my account, so I put
set mouse=
in my local .vimrc. It works, mouse is disabled, but also autoindent is gone, i.e. I press enter in a .php or .c file and I'm back at the begining of the line instead of current indent position.
I want to have both, mouse disabled, autoindent working as it used to. What should I do?
vim freebsd mouse indentation
add a comment |Â
up vote
2
down vote
favorite
I have Vim version 8.0.122 on FreeBSD 9.3 (installed with pkg). I have default global vimrc. I want to disable mouse support completely on my account, so I put
set mouse=
in my local .vimrc. It works, mouse is disabled, but also autoindent is gone, i.e. I press enter in a .php or .c file and I'm back at the begining of the line instead of current indent position.
I want to have both, mouse disabled, autoindent working as it used to. What should I do?
vim freebsd mouse indentation
1
Please add to the post how you disabled it.
â Rui F Ribeiro
Dec 12 '16 at 13:08
They are not linked in any way. To debug, make a simple.vimrc
file containing justset nocompatible
,set all&
,set ai bs=2 mouse=
and check that everything works correctly. Then try to isolate the problem.
â AlexP
Dec 12 '16 at 13:17
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I have Vim version 8.0.122 on FreeBSD 9.3 (installed with pkg). I have default global vimrc. I want to disable mouse support completely on my account, so I put
set mouse=
in my local .vimrc. It works, mouse is disabled, but also autoindent is gone, i.e. I press enter in a .php or .c file and I'm back at the begining of the line instead of current indent position.
I want to have both, mouse disabled, autoindent working as it used to. What should I do?
vim freebsd mouse indentation
I have Vim version 8.0.122 on FreeBSD 9.3 (installed with pkg). I have default global vimrc. I want to disable mouse support completely on my account, so I put
set mouse=
in my local .vimrc. It works, mouse is disabled, but also autoindent is gone, i.e. I press enter in a .php or .c file and I'm back at the begining of the line instead of current indent position.
I want to have both, mouse disabled, autoindent working as it used to. What should I do?
vim freebsd mouse indentation
vim freebsd mouse indentation
asked Dec 12 '16 at 12:52
user205111
111
111
1
Please add to the post how you disabled it.
â Rui F Ribeiro
Dec 12 '16 at 13:08
They are not linked in any way. To debug, make a simple.vimrc
file containing justset nocompatible
,set all&
,set ai bs=2 mouse=
and check that everything works correctly. Then try to isolate the problem.
â AlexP
Dec 12 '16 at 13:17
add a comment |Â
1
Please add to the post how you disabled it.
â Rui F Ribeiro
Dec 12 '16 at 13:08
They are not linked in any way. To debug, make a simple.vimrc
file containing justset nocompatible
,set all&
,set ai bs=2 mouse=
and check that everything works correctly. Then try to isolate the problem.
â AlexP
Dec 12 '16 at 13:17
1
1
Please add to the post how you disabled it.
â Rui F Ribeiro
Dec 12 '16 at 13:08
Please add to the post how you disabled it.
â Rui F Ribeiro
Dec 12 '16 at 13:08
They are not linked in any way. To debug, make a simple
.vimrc
file containing just set nocompatible
, set all&
, set ai bs=2 mouse=
and check that everything works correctly. Then try to isolate the problem.â AlexP
Dec 12 '16 at 13:17
They are not linked in any way. To debug, make a simple
.vimrc
file containing just set nocompatible
, set all&
, set ai bs=2 mouse=
and check that everything works correctly. Then try to isolate the problem.â AlexP
Dec 12 '16 at 13:17
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
I faced a similar problem. This is what helped me solve it.
On my computer the vim settings which made many things pretty are stored in /usr/shar/vim/vim*/defaults.vim
, but this file was read only if there is no ~/.vimrc
. So if you can either copy this entire file to you ~/.vimrc
, or if you are an admin and want to make a change for all users, modify the file itself. Just comment out the line which says set mouse=a
.
New contributor
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I faced a similar problem. This is what helped me solve it.
On my computer the vim settings which made many things pretty are stored in /usr/shar/vim/vim*/defaults.vim
, but this file was read only if there is no ~/.vimrc
. So if you can either copy this entire file to you ~/.vimrc
, or if you are an admin and want to make a change for all users, modify the file itself. Just comment out the line which says set mouse=a
.
New contributor
add a comment |Â
up vote
0
down vote
I faced a similar problem. This is what helped me solve it.
On my computer the vim settings which made many things pretty are stored in /usr/shar/vim/vim*/defaults.vim
, but this file was read only if there is no ~/.vimrc
. So if you can either copy this entire file to you ~/.vimrc
, or if you are an admin and want to make a change for all users, modify the file itself. Just comment out the line which says set mouse=a
.
New contributor
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I faced a similar problem. This is what helped me solve it.
On my computer the vim settings which made many things pretty are stored in /usr/shar/vim/vim*/defaults.vim
, but this file was read only if there is no ~/.vimrc
. So if you can either copy this entire file to you ~/.vimrc
, or if you are an admin and want to make a change for all users, modify the file itself. Just comment out the line which says set mouse=a
.
New contributor
I faced a similar problem. This is what helped me solve it.
On my computer the vim settings which made many things pretty are stored in /usr/shar/vim/vim*/defaults.vim
, but this file was read only if there is no ~/.vimrc
. So if you can either copy this entire file to you ~/.vimrc
, or if you are an admin and want to make a change for all users, modify the file itself. Just comment out the line which says set mouse=a
.
New contributor
New contributor
answered 8 mins ago
Sriram
11
11
New contributor
New contributor
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f329800%2fdisabling-mouse-in-vim-disables-indentation%23new-answer', 'question_page');
);
Post as a guest
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
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
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
1
Please add to the post how you disabled it.
â Rui F Ribeiro
Dec 12 '16 at 13:08
They are not linked in any way. To debug, make a simple
.vimrc
file containing justset nocompatible
,set all&
,set ai bs=2 mouse=
and check that everything works correctly. Then try to isolate the problem.â AlexP
Dec 12 '16 at 13:17