summaryrefslogtreecommitdiffstats
path: root/software/vim
diff options
context:
space:
mode:
authorUser <bnewbold@daemon.robocracy.org>2009-10-13 02:52:09 +0000
committerUser <bnewbold@daemon.robocracy.org>2009-10-13 02:52:09 +0000
commitf61026119df4700f69eb73e95620bc5928ca0fcb (patch)
treef17127cff9fec40f4207d9fa449b9692644ce6db /software/vim
parent9d431740a3e6a7caa09a57504856b5d1a4710a14 (diff)
downloadknowledge-f61026119df4700f69eb73e95620bc5928ca0fcb.tar.gz
knowledge-f61026119df4700f69eb73e95620bc5928ca0fcb.zip
Grand rename for gitit transfer
Diffstat (limited to 'software/vim')
-rw-r--r--software/vim38
1 files changed, 0 insertions, 38 deletions
diff --git a/software/vim b/software/vim
deleted file mode 100644
index 76ffa24..0000000
--- a/software/vim
+++ /dev/null
@@ -1,38 +0,0 @@
-============
-It's vim!
-============
-
-Typical .vimrc
-------------------
-Here's what a typical ``.vimrc`` looks like for me::
-
- if has('syntax') && (&t_Co > 2)
- syntax on
- endif
-
- set history=50
- set wildmode=list:longest,full
- set showmode
- set showcmd
- set smartcase
- set shiftwidth=4
- set tabstop=4
- set shiftround
- set expandtab
- set autoindent
-
- autocmd BufRead *.py set smartindent cinwords=if,elif,else,for,while,try,except, finally,def,class
-
-Commands
--------------
-I search and replace globally a lot::
-
- :%s/before/after/g
-
-Tricks
--------------
-I often want to pull a particular gnarly line or two from another file; here's
-the command I use to grab three lines of context around 'phrase'::
-
- :r!grep -A 3 'phrase' ../otherfile.txt
-