Permalink
Browse files

search ignoring case

  • Loading branch information...
1 parent 44bb22b commit 5f9c209083a5640bff568554a419f050bc726945 @chrisbra committed Sep 18, 2012
Showing with 31 additions and 3 deletions.
  1. +7 −0 autoload/ftimproved.vim
  2. +24 −3 doc/ft_improved.txt
View
@@ -175,6 +175,13 @@ fun! ftimproved#FTCommand(f, fwd, mode) "{{{1
return s:escape
endif
+ " ignore case of pattern? Does only work with search, not with original
+ " f/F/t/T commands
+ if exists("g:ft_improved_ignorecase") &&
+ \ g:ft_improved_ignorecase
+ let pat = '\c'.pat
+ endif
+
let cnt = v:count1
let off = cmd
let res = ''
View
@@ -17,6 +17,8 @@ Copyright: (c) 2009, 2010, 2011, 2012 by Christian Brabandt
2.1 Enable...................................: |improvedft-Enable|
2.2 Disable..................................: |improvedft-Disable|
2.3 Tips.....................................: |improvedft-Tips|
+ 2.3.1 Using the YankRing.......................: |improvedft-YankRing|
+ 2.3.2 Ignoring case............................: |improvedft-ignorecase|
2.4 Bugs.....................................: |improvedft-Bugs|
3. Feedback...................................: |improvedft-feedback|
4. History....................................: |improvedft-history|
@@ -53,11 +55,12 @@ If for any reason, you want to disable the plugin, use >
:DisableImprovedFT
<
-2.3 Tips *improvedft-Tips*
+2.3 Tips *improvedft-Tips*
--------
+ *improvedft-YankRing*
-YankRing and the improved ft plugin
------------------------------------
+2.3.1 YankRing and the improved ft plugin
+------------------------------------------
Both plugins map the ',', ';', 'f', 'F', 't' and 'T' key, so they don't work
together very well. The improved ft plugin tries to work around that by
@@ -80,6 +83,21 @@ and removes the ',', ';', 'f', 'F', 't' and 'T' from them.
The drawback of doing this is, that the YankRing possibly doesn't immediately
catch up in the YankRing itself and possibly will not be caught at all.
+ *improvedft-ignorecase*
+2.3.2 Ignoring case when searching
+----------------------------------
+
+ft_improved tries to mimic the existing behaviour of the |f| |F| |t| |T| |,| |;|
+commands as closely as possible. However, you might wish to search for the
+character while ignoring case, so that fT will also jump to either the next
+'t' or 'T' character, whichever appears first.
+
+To enable this, simply set this variable in your |.vimrc| >
+
+ :let g:ft_improved_ignorecase = 1
+<
+
+To disable either |unlet| that variable, or set it to zero.
2.4 Bugs *improvedft-Bugs*
--------
@@ -108,6 +126,9 @@ third line of this document.
==============================================================================
4. History *improvedft-history*
+0.5: (unreleased) "{{{1
+- ignorecase when searching, when g:ft_improved_ignorecase is set
+
0.4: Sep 09, 2012 "{{{1
- special handling of pattern / and ?

0 comments on commit 5f9c209

Please sign in to comment.