Make :f do the same thing as :find in Vim

Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I want to make :f do the same thing as :find so if I type :f abc.txt, it should run :find abc.txt.
I tried to do something like cmap f find but that just make any f into find
vimrc gvim
migrated from unix.stackexchange.com Jul 12 at 22:26
This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.
add a comment |Â
up vote
1
down vote
favorite
I want to make :f do the same thing as :find so if I type :f abc.txt, it should run :find abc.txt.
I tried to do something like cmap f find but that just make any f into find
vimrc gvim
migrated from unix.stackexchange.com Jul 12 at 22:26
This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.
Related posts: Is there a way to alias:w'to:w, to avoid creating files named '?, How to make command-line abbreviations that only trigger at begining of line, and vim change :x function to delete buffer instead of save & quit
â Peter Rincker
Jul 12 at 23:02
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I want to make :f do the same thing as :find so if I type :f abc.txt, it should run :find abc.txt.
I tried to do something like cmap f find but that just make any f into find
vimrc gvim
I want to make :f do the same thing as :find so if I type :f abc.txt, it should run :find abc.txt.
I tried to do something like cmap f find but that just make any f into find
vimrc gvim
asked Jul 12 at 18:48
usama8800
1133
1133
migrated from unix.stackexchange.com Jul 12 at 22:26
This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.
migrated from unix.stackexchange.com Jul 12 at 22:26
This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.
Related posts: Is there a way to alias:w'to:w, to avoid creating files named '?, How to make command-line abbreviations that only trigger at begining of line, and vim change :x function to delete buffer instead of save & quit
â Peter Rincker
Jul 12 at 23:02
add a comment |Â
Related posts: Is there a way to alias:w'to:w, to avoid creating files named '?, How to make command-line abbreviations that only trigger at begining of line, and vim change :x function to delete buffer instead of save & quit
â Peter Rincker
Jul 12 at 23:02
Related posts: Is there a way to alias
:w' to :w, to avoid creating files named '?, How to make command-line abbreviations that only trigger at begining of line, and vim change :x function to delete buffer instead of save & quitâ Peter Rincker
Jul 12 at 23:02
Related posts: Is there a way to alias
:w' to :w, to avoid creating files named '?, How to make command-line abbreviations that only trigger at begining of line, and vim change :x function to delete buffer instead of save & quitâ Peter Rincker
Jul 12 at 23:02
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
try this maybe:
cabbrev f find
Be careful. Try/f<cr>. I would recommend using an expression abbrevation and checkinggetcmdtype() == ":". See vim change :x function to delete buffer instead of save & quit
â Peter Rincker
Jul 12 at 23:05
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
try this maybe:
cabbrev f find
Be careful. Try/f<cr>. I would recommend using an expression abbrevation and checkinggetcmdtype() == ":". See vim change :x function to delete buffer instead of save & quit
â Peter Rincker
Jul 12 at 23:05
add a comment |Â
up vote
1
down vote
accepted
try this maybe:
cabbrev f find
Be careful. Try/f<cr>. I would recommend using an expression abbrevation and checkinggetcmdtype() == ":". See vim change :x function to delete buffer instead of save & quit
â Peter Rincker
Jul 12 at 23:05
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
try this maybe:
cabbrev f find
try this maybe:
cabbrev f find
answered Jul 12 at 21:26
thrig
Be careful. Try/f<cr>. I would recommend using an expression abbrevation and checkinggetcmdtype() == ":". See vim change :x function to delete buffer instead of save & quit
â Peter Rincker
Jul 12 at 23:05
add a comment |Â
Be careful. Try/f<cr>. I would recommend using an expression abbrevation and checkinggetcmdtype() == ":". See vim change :x function to delete buffer instead of save & quit
â Peter Rincker
Jul 12 at 23:05
Be careful. Try
/f<cr>. I would recommend using an expression abbrevation and checking getcmdtype() == ":". See vim change :x function to delete buffer instead of save & quitâ Peter Rincker
Jul 12 at 23:05
Be careful. Try
/f<cr>. I would recommend using an expression abbrevation and checking getcmdtype() == ":". See vim change :x function to delete buffer instead of save & quitâ Peter Rincker
Jul 12 at 23:05
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%2fvi.stackexchange.com%2fquestions%2f16736%2fmake-f-do-the-same-thing-as-find-in-vim%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
Related posts: Is there a way to alias
:w'to:w, to avoid creating files named '?, How to make command-line abbreviations that only trigger at begining of line, and vim change :x function to delete buffer instead of save & quitâ Peter Rincker
Jul 12 at 23:02