there are better mecanisms for excluding certain files from triggering autocommands
← Older revision
Revision as of 12:23, November 28, 2010
(One intermediate revision not shown)
Line 24:
Line 24:
" When we reload, tell vim to restore the cursor to the saved position.
" When we reload, tell vim to restore the cursor to the saved position.
funct
I had a command which would work through a text file, count all the occurrences of the words and print it out like this:
remy@box $˜ magic-command-i-forgot | with grep | and awk | sort ./textfile.txt
66: the
54: and
32: I
16: unix
12: bash
5: internet
3: sh
1: GNU/Linux
So it does not search line-by-line, but word by word, and it does it for all the words, not just for 1 word.
standard format
← Older revision
Revision as of 10:12, October 22, 2010
Line 1:
Line 1:
-
If you want this to work in gvim, you will have to set the guifg, not ctermfg
+
{{ScriptComments|1230|Rainbow Parenthesis: highlight matching parens in a rainbow of colors}}
-
-
e.g.
+
==Comments==
← Older revision
Revision as of 01:04, September 7, 2010
Line 112:
Line 112:
set errorformat=%m\ in\ %f\ on\ line\ %l
set errorformat=%m\ in\ %f\ on\ line\ %l
+
</pre>
+
+
----
+
I used to do <code>:!php -l %</code>.
add Category:Getting started because a new user needs to read this
← Older revision
Revision as of 08:46, August 29, 2010
Line 8:
Line 8:
|version=6.0
|version=6.0
|rating=5333/1765
|rating=5333/1765
-
|category1=Searching
+
|category1=Getting started
-
|category2=
+
|category2=Searching
}}
Word Search is another one of those games you might stumble upon as you’re trying to kill time. By using clean and colorful grids, you’re given the task of trying to find a list of words. Sounds simple, but the words are hidden amongst jumbled and scrambled letters, so you have to pay close attention and look for patterns in order to find each word.
less stuff
← Older revision
Revision as of 02:29, December 1, 2010
(One intermediate revision not shown)
Line 22:
Line 22:
set viminfo='10,\"100,:20,%,n~/.viminfo
set viminfo='10,\"100,:20,%,n~/.viminfo
-
function! s:ResCur()
+
function!
← Older revision
Revision as of 07:10, August 31, 2010
(3 intermediate revisions not shown)
Line 1:
Line 1:
Occasionally I use Vim to search for filenames in a directory listing rather than relying on windows search or some other search tool that might not be available at the time.
I use iTerm on Mac OS X and I really appreciate the Linux/bash shortcuts of CTRL-A and CTRL-E for going to the beginning or end of a line quickly. Is there something like these that will move the text input cursor forward or backward one word instead? (Kind of like how CTRL-W deletes a word at a time, but without the deletion)