sponsor Vim development Vim logo Vim Book Ad

ft_improved : improved f/t command

 script karma  Rating 73/26, Downloaded by 4307  Comments, bugs, improvements  Vim wiki

created by
Christian Brabandt
 
script type
utility
 
description
If you like it, please rate it!

This plugin tries to improve the existing behaviour of the |f|, |F|, |t| and
|T| command by letting them move the cursor not only inside the current line, but move to whatever line, where the character is found.

It does consider counts given and should work simply as a user would be expecting.

It basically does that, by remapping the f,F,t and T command to issue a search for the character that is entered and moving the cursor there.

By default the new f,F,t,T commands should simply work. If you have disabled
the plugin (see |improvedft-Disable|), use the command
    :EnableImprovedFT

If for any reason, you want to disable the plugin, use
    :DisableImprovedFT

Public repo: https://github.com/chrisbra/improvedft
 
install details
Open the vimball with Vim and source it, e.g.
Vim ft_improved-0.1.vmb
:so %
:q

Be sure to read the help at :h improvedft-ft
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
ft_improved-0.9.vmb 9 2015-01-15 7.3 Christian Brabandt - do not mess up highlighting for ; and , commands
- make count work correctly with multi-highlight match, so that only the count'th occurence gets highlighted.
- allow to disable mappings selectively improvedft-Mapping (issue https://github.com/chrisbra/improvedft/issues/4 reported by Maiko Cezar, thanks!)
- make the plugin not unneccessarily source the autoload script
- document improvedft-consistent_comma
(automatically uploaded)
ft_improved-0.8.vmb 8 2014-03-27 7.3 Christian Brabandt - handle keys like <Enter>, <Tab> literally
- escape '/' correctly for |t| commands.
(automatically uploaded)
ft_improved-0.7.vmb 7 2013-08-15 7.3 Christian Brabandt - small bugfixes
- correctly handle ignorecase setting |improvedft-ignorecase|
- escape '
- make ; work correctly when using backwards motion.
(automatically uploaded)
ft_improved-0.6.vmb 6 2013-03-16 7.3 Christian Brabandt - |improvedft-multichars|
- save and restore search-history in all modes correctly
(automatically uploaded)
ft_improved-0.5.vmb 5 2013-02-16 7.3 Christian Brabandt - ignorecase when searching, when g:ft_improved_ignorecase is set
(automatically uploaded)
ft_improved-0.4.vmb 4 2012-09-09 7.3 Christian Brabandt - special handling of pattern / and ?
(automatically uploaded)
ft_improved-0.3.vmb 3 2012-08-20 7.3 Christian Brabandt - fix issue https://github.com/chrisbra/improvedft/issues/1
  by
disallowing the Yankring to map the keys f F t and T
- Better mapping of ";" key (patch by Marcin Szamotulski, thanks!)
(automatically uploaded)
ft_improved-0.2.vmb 2 2012-01-13 7.3 Christian Brabandt - disable debug mode
- enable |GLVS|
(automatically uploaded)
ft_improved-0.1.vmb 0.1 2012-01-12 7.0 Christian Brabandt Initial upload
ip used for rating: 18.222.163.31

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github