<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Vim</id>
	<title>Vim - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Vim"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Vim&amp;action=history"/>
	<updated>2026-05-06T06:00:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Vim&amp;diff=6303&amp;oldid=prev</id>
		<title>Kenneth: /* Create Tab Character */</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Vim&amp;diff=6303&amp;oldid=prev"/>
		<updated>2023-06-22T19:18:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Create Tab Character&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==VIM==&lt;br /&gt;
VIM = Vi IMproved&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Vim is an editor designed to work like that most venerable of UNIX editors, vi. Vim doesn&amp;#039;t just clone vi; it extends vi with features like multi-level undo, a graphical interface (if you want it), windows, block operations, on-line help and syntax coloring.&lt;br /&gt;
&lt;br /&gt;
When you first start using Vim, it will be 100% compatible with vi. You won&amp;#039;t notice any of Vim&amp;#039;s fancy features until you activate them.&lt;br /&gt;
&lt;br /&gt;
Luckily, it&amp;#039;s easy to convince Vim that we know we&amp;#039;re actually in Vim and not in vi. Vim customizations are stored in a file called .vimrc in your home directory. If Vim sees that you have a .vimrc file—even if that file is empty—Vim will turn off vi-compatibility mode, which will configure Vim as Vim, rather than vi.&amp;quot; [http://www.linuxjournal.com/article/3805]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== vimrc ==&lt;br /&gt;
&lt;br /&gt;
/etc/vimrc (or ~/.vimrc):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set nocompatible         &amp;quot; Use Vim defaults (much better!)&lt;br /&gt;
set bs=indent,eol,start  &amp;quot; allow backspacing over everything in insert mode&lt;br /&gt;
set ruler                &amp;quot; show the cursor position all the time&lt;br /&gt;
syntax on                &amp;quot; syntax highlighting&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 set backspace=2&lt;br /&gt;
 set nocp&lt;br /&gt;
 set bs=2&lt;br /&gt;
&lt;br /&gt;
Comments are preceeded with &amp;quot; to end of line (unless second &amp;quot; found)&lt;br /&gt;
 &amp;quot; this is a comment&lt;br /&gt;
&lt;br /&gt;
Save settings to file:&lt;br /&gt;
 :mkvimrc [file]&lt;br /&gt;
&lt;br /&gt;
Use &amp;lt;vimrc&amp;gt; instead of any .vimrc&lt;br /&gt;
 vim -u &amp;lt;vimrc&amp;gt;&lt;br /&gt;
 vim -u /dev/null&lt;br /&gt;
&lt;br /&gt;
CentOS 5 default settings:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
version 6.0&lt;br /&gt;
if &amp;amp;cp | set nocp | endif&lt;br /&gt;
let s:cpo_save=&amp;amp;cpo&lt;br /&gt;
set cpo&amp;amp;vim&lt;br /&gt;
nmap gx &amp;lt;Plug&amp;gt;NetrwBrowseX&lt;br /&gt;
nnoremap &amp;lt;silent&amp;gt; &amp;lt;Plug&amp;gt;NetrwBrowseX :call netrw#NetrwBrowseX(expand(&amp;quot;&amp;lt;cWORD&amp;gt;&amp;quot;),0)&lt;br /&gt;
let &amp;amp;cpo=s:cpo_save&lt;br /&gt;
unlet s:cpo_save&lt;br /&gt;
set background=dark&lt;br /&gt;
set backspace=indent,eol,start&lt;br /&gt;
set fileencodings=utf-8,latin1&lt;br /&gt;
set helplang=en&lt;br /&gt;
set history=50&lt;br /&gt;
set hlsearch&lt;br /&gt;
set nomodeline&lt;br /&gt;
set ruler&lt;br /&gt;
set viminfo=&amp;#039;20,\&amp;quot;50&lt;br /&gt;
&amp;quot; vim: set ft=vim :&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Python .vimrc ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot; Kenneth&amp;#039;s Preferences&lt;br /&gt;
&lt;br /&gt;
set nobackup            &amp;quot; don&amp;#039;t create backup files&lt;br /&gt;
&amp;quot;set nohlsearch          &amp;quot; don&amp;#039;t highlight search results&lt;br /&gt;
set hlsearch            &amp;quot; do highlight search results&lt;br /&gt;
set incsearch           &amp;quot; incremental search&lt;br /&gt;
set ignorecase          &amp;quot; ignore case during search&lt;br /&gt;
set smartcase           &amp;quot; do case sensitive search when upper case is typed&lt;br /&gt;
set shiftwidth=4        &amp;quot; shift blocks in 4 space increments&lt;br /&gt;
set tabstop=4           &amp;quot; the (typewriter) tab stops are every 4 spaces&lt;br /&gt;
set smarttab            &amp;quot; tab at beginning of line inserts 4 spaces (shiftwidth)&lt;br /&gt;
set showmatch           &amp;quot; briefly highlight matching bracket&lt;br /&gt;
set matchtime=1         &amp;quot; highlight match for 0.1 seconds&lt;br /&gt;
set background=dark     &amp;quot; black background&lt;br /&gt;
set shiftwidth=4        &amp;quot; shift blocks by 4 spaces&lt;br /&gt;
set shortmess=at        &amp;quot; use short messages so we don&amp;#039;t have to hit enter&lt;br /&gt;
set expandtab           &amp;quot; expand tabs into spaces&lt;br /&gt;
set scrolloff=5         &amp;quot; always show 5 lines before &amp;amp; after cursor&lt;br /&gt;
set shell=bash          &amp;quot; use bash for the command shell&lt;br /&gt;
set shellcmdflag=-lc    &amp;quot; make bash startup as a login shell for ~/.bashrc&lt;br /&gt;
&amp;quot;set nowrap              &amp;quot; do not wrap long lines&lt;br /&gt;
set visualbell          &amp;quot; flash the screen rather than beep&lt;br /&gt;
set noerrorbells        &amp;quot; don&amp;#039;t beep on errors&lt;br /&gt;
set wildmenu            &amp;quot; enable filename tab completion&lt;br /&gt;
set ruler               &amp;quot; display the ruler: shows cursor position&lt;br /&gt;
set cpoptions+=$        &amp;quot; display &amp;#039;$&amp;#039; at end of cw sequence&lt;br /&gt;
set title               &amp;quot; display filename and vim info in window title bar&lt;br /&gt;
set modelines=5         &amp;quot; search the first and last 5 lines for &amp;quot;vim:&amp;quot; modeline&lt;br /&gt;
set backspace=2         &amp;quot; backspace deletes&lt;br /&gt;
&lt;br /&gt;
set wildignore=*.o,*.class,*.pyc,*.pyo,*.a,*.so,*.dll,*.exe,core,*.jar,*.zip&lt;br /&gt;
&lt;br /&gt;
&amp;quot;let loaded_matchparen = 1 &amp;quot; don&amp;#039;t highlight parenthesis match&lt;br /&gt;
&lt;br /&gt;
filetype indent on&lt;br /&gt;
&lt;br /&gt;
&amp;quot;if v:version &amp;gt; 700&lt;br /&gt;
&amp;quot;    set cursorline          &amp;quot; underline the current line&lt;br /&gt;
&amp;quot;endif&lt;br /&gt;
&lt;br /&gt;
if &amp;amp;t_Co &amp;gt; 2 || has( &amp;quot;gui_running&amp;quot; )&lt;br /&gt;
    syntax on&lt;br /&gt;
endif&lt;br /&gt;
&lt;br /&gt;
if has( &amp;#039;mouse&amp;#039; )&lt;br /&gt;
    set mouse=a &amp;quot; enable mouse&lt;br /&gt;
endif&lt;br /&gt;
&lt;br /&gt;
if has( &amp;quot;autocmd&amp;quot; )&lt;br /&gt;
    &amp;quot; open the file in the last place we were editing&lt;br /&gt;
    autocmd BufReadPost *&lt;br /&gt;
        \ if line(&amp;quot;&amp;#039;\&amp;quot;&amp;quot;) &amp;gt; 1 &amp;amp;&amp;amp; line(&amp;quot;&amp;#039;\&amp;quot;&amp;quot;) &amp;lt;= line(&amp;quot;$&amp;quot;) |&lt;br /&gt;
        \     exe &amp;quot;normal! g&amp;#039;\&amp;quot;&amp;quot; |&lt;br /&gt;
        \ endif&lt;br /&gt;
endif&lt;br /&gt;
&lt;br /&gt;
&amp;quot;folding settings&lt;br /&gt;
set foldmethod=indent   &amp;quot;fold based on indent&lt;br /&gt;
set foldnestmax=10      &amp;quot;deepest fold is 10 levels&lt;br /&gt;
set nofoldenable        &amp;quot;dont fold by default&lt;br /&gt;
set foldlevel=10        &amp;quot;this is just what i use&lt;br /&gt;
&lt;br /&gt;
&amp;quot; Auto clear trailing white space in Python files&lt;br /&gt;
func! DeleteTrailingWS()&lt;br /&gt;
    exec &amp;quot;normal mz&amp;quot;&lt;br /&gt;
    %s/\s\+$//ge&lt;br /&gt;
    exe &amp;quot;normal `z&amp;quot;&lt;br /&gt;
endfunc&lt;br /&gt;
autocmd BufWrite *.py :call DeleteTrailingWS()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Compatability ==&lt;br /&gt;
&lt;br /&gt;
 -N&lt;br /&gt;
:&amp;quot;No-compatible mode. Reset the ’compatible’ option. This will make Vim behave a bit better, but less Vi compatible, even though a .vimrc file does not exist.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Basic Vi Keys ==&lt;br /&gt;
&lt;br /&gt;
Movement:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
0	Start of current line&lt;br /&gt;
$	End of current line&lt;br /&gt;
&lt;br /&gt;
[home]	Start of current line&lt;br /&gt;
[end]	End of current line&lt;br /&gt;
&lt;br /&gt;
^	Move the cursor to the first non-whitespace character. &lt;br /&gt;
+	Move the cursor to the first non-whitespace character in the next line.&lt;br /&gt;
-	Move the cursor to the first non-whitespace character in the previous line.&lt;br /&gt;
_	Move the cursor to the first non-whitespace character. &lt;br /&gt;
g _	End of current line (last non white space character)&lt;br /&gt;
&lt;br /&gt;
%	Move the cursor to the matching parenthesis or brace. &lt;br /&gt;
&lt;br /&gt;
Ctrl-F	Forward one screen&lt;br /&gt;
Ctrl-B	Back one screen&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Search:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/text	Search for text (forwards)&lt;br /&gt;
/	Repeat forward search&lt;br /&gt;
?text	Search for text (backwards)&lt;br /&gt;
?	Repeat previous search backwards&lt;br /&gt;
n	Repeat previous search&lt;br /&gt;
N	Repeat previous search, but it opposite direction&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Line Number Movement:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Ctrl-G	Display line number of cursor&lt;br /&gt;
nG	Move cursor to line number n&lt;br /&gt;
:n	Move cursor to line number n&lt;br /&gt;
G	Move to last line in file&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Insert:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A	Append to end of current line&lt;br /&gt;
I	Insert at beginning of line&lt;br /&gt;
o	Open line above cursor&lt;br /&gt;
O	Open line below cursor&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ESC	End of insert mode&lt;br /&gt;
&lt;br /&gt;
Ctrl-U	Delete current line&lt;br /&gt;
dd	Delete current line&lt;br /&gt;
ndd	Delete n lines&lt;br /&gt;
J	Join two lines&lt;br /&gt;
d^	Delete to beginning of line&lt;br /&gt;
d$	Delete to end of line&lt;br /&gt;
&lt;br /&gt;
p	Insert buffer after cursor&lt;br /&gt;
P	Insert buffer before cursor&lt;br /&gt;
&lt;br /&gt;
u	Undo last change&lt;br /&gt;
Ctrl-r	Redo last change&lt;br /&gt;
&lt;br /&gt;
x	Delete current cursor position&lt;br /&gt;
X	Delete back one character&lt;br /&gt;
nX	Delete previous n characters&lt;br /&gt;
&lt;br /&gt;
~	Toggle upper/lower case&lt;br /&gt;
&lt;br /&gt;
y	Copy current line to new buffer&lt;br /&gt;
yy	Copy current line&lt;br /&gt;
&amp;quot;xyy	Copy current line into buffer x&lt;br /&gt;
&amp;quot;Xd	Delete and append into buffer x&lt;br /&gt;
&amp;quot;xp	Put contents of buffer x&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
:e [file]	open file, with tab completion&lt;br /&gt;
:w [file]	write to file, with tab completion&lt;br /&gt;
:enew		close file, keep vim open&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source: [http://www.unix-manuals.com/refs/vi-ref/vi-ref.htm Unix Manuals - vi Reference]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Mastering the VI editor - http://www.eng.hawaii.edu/Tutor/vi.html&lt;br /&gt;
&lt;br /&gt;
=== Create Tab Character ===&lt;br /&gt;
&lt;br /&gt;
In edit mode (&amp;#039;i&amp;#039;) insert a tab character with: (if your tab is set to spaces)&lt;br /&gt;
 ctrl+v ctrl+i&lt;br /&gt;
&lt;br /&gt;
=== Block Select ===&lt;br /&gt;
&lt;br /&gt;
 V       - selects entire lines &lt;br /&gt;
 v       - selects range of text&lt;br /&gt;
 ctrl-v  - selects columns&lt;br /&gt;
&lt;br /&gt;
 d       - delete selection&lt;br /&gt;
 y       - copy selection&lt;br /&gt;
 p       - paste selection&lt;br /&gt;
&lt;br /&gt;
=== Mark Text ===&lt;br /&gt;
&lt;br /&gt;
 m[letter]  - start selection  (eg. &amp;#039;ma&amp;#039;)&lt;br /&gt;
 d&amp;#039;[letter] - copy selection lines&lt;br /&gt;
 y&amp;#039;[letter] - copy selection lines&lt;br /&gt;
 d`[letter] - copy selection text&lt;br /&gt;
 y`[letter] - copy selection text&lt;br /&gt;
 p          - paste selection&lt;br /&gt;
&lt;br /&gt;
==Tutorials==&lt;br /&gt;
*[http://unix.t-a-y-l-o-r.com/Vi.html The Vi Editor]&lt;br /&gt;
*[http://www.lagmonster.org/docs/vi.html Vi Cheat Sheet]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*[http://simpletutorials.com/tutorials/vim/vimquick.pdf VIM Desktop Reference]&lt;br /&gt;
*[http://www.digilife.be/quickreferences/QRC/VIM%20Quick%20Reference%20Card.pdf VIM Quick Reference Card]&lt;br /&gt;
&lt;br /&gt;
==Status==&lt;br /&gt;
 :args	display the argument list&lt;br /&gt;
 :file	display file name&lt;br /&gt;
 ^L ^G	redraw screen, show filename and position&lt;br /&gt;
 g^G	show cursor column, line, and character position&lt;br /&gt;
 ga	show ASCII value of character under cursor&lt;br /&gt;
 gf	open file which filename is under cursor&lt;br /&gt;
&lt;br /&gt;
==Searching==&lt;br /&gt;
Search:&lt;br /&gt;
 Search STRING forward :   / STRING.&lt;br /&gt;
 Search STRING backward:   ? STRING.&lt;br /&gt;
&lt;br /&gt;
 Repeat search:   n&lt;br /&gt;
 Repeat search in opposite direction:  N  (SHIFT-n)&lt;br /&gt;
&lt;br /&gt;
Reference: [http://www.felixgers.de/teaching/emacs/vi_search_replace.html Vi: Search and Replace]&lt;br /&gt;
&lt;br /&gt;
To search for text (with regular expression):&lt;br /&gt;
 /text&lt;br /&gt;
 /[a-z]as&lt;br /&gt;
&lt;br /&gt;
To clear highlighted search results: [http://mandrivausers.org/index.php?/topic/3998-how-to-clear-a-pattern-match-in-vim/]&lt;br /&gt;
 1) /somenonexistingtext&lt;br /&gt;
 2) :noh&lt;br /&gt;
 3) add &amp;quot;nmap &amp;lt;SPACE&amp;gt; &amp;lt;SPACE&amp;gt;:noh&amp;lt;CR&amp;gt;&amp;quot; to .vimrc, which will clear on space bar&lt;br /&gt;
&lt;br /&gt;
Reference: [http://unix.t-a-y-l-o-r.com/VBsr.html Vi: Search and Replace]&lt;br /&gt;
&lt;br /&gt;
== Replacing ==&lt;br /&gt;
&lt;br /&gt;
 :s/OLD/NEW		First occurrence on current line:          &lt;br /&gt;
 :s/OLD/NEW/g		Globally (all) on current line:             &lt;br /&gt;
 :1,15s/OLD/NEW/g	Between two lines 1,15:                     &lt;br /&gt;
 :%s/OLD/NEW/g		Every occurrence in file:                  &lt;br /&gt;
 :%s/OLD/NEW/g		Every occurrence in file:                  &lt;br /&gt;
 :%s/OLD/NEW/gc		Every occurrence in file w/ conf:&lt;br /&gt;
 :%s/OLD/NEW/gci	Every occurrence w/ conf case insensitve:  &lt;br /&gt;
 :.,$s/OLD/NEW/g	Start from the current line (.) to the last line ($) inclusive. &lt;br /&gt;
&lt;br /&gt;
Reference: [http://www.felixgers.de/teaching/emacs/vi_search_replace.html Vi: Search and Replace]&lt;br /&gt;
&lt;br /&gt;
Ranged replace:&lt;br /&gt;
 :32,56s/guy/gal/g&lt;br /&gt;
&lt;br /&gt;
Global replace:&lt;br /&gt;
 :%s/search_string/replacement_string/g&lt;br /&gt;
&lt;br /&gt;
Replace upper case to lower case:&lt;br /&gt;
 :%s/[A-Z]/\L&amp;amp;/g&lt;br /&gt;
 :%s/.*/\L&amp;amp;/&lt;br /&gt;
&lt;br /&gt;
Replace lower case to upper case:&lt;br /&gt;
 :%s/[a-z]/\U&amp;amp;/g&lt;br /&gt;
 :%s/.*/\U&amp;amp;/&lt;br /&gt;
&lt;br /&gt;
Reference: [http://unix.t-a-y-l-o-r.com/VBsr.html Vi: Search and Replace]&lt;br /&gt;
&lt;br /&gt;
==External==&lt;br /&gt;
shows your current working directory.&lt;br /&gt;
 :!pwd&lt;br /&gt;
&lt;br /&gt;
reads the results from the date command into a new line following the cursor.&lt;br /&gt;
 :r !date&lt;br /&gt;
&lt;br /&gt;
== Auto Indent ==&lt;br /&gt;
&lt;br /&gt;
 set cindent&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set cindent&lt;br /&gt;
set smartindent&lt;br /&gt;
set autoindent&lt;br /&gt;
set expandtab&lt;br /&gt;
set tabstop=2&lt;br /&gt;
set shiftwidth=2&lt;br /&gt;
set cinkeys=0{,0},:,0#,!,!^F&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
*http://blogs.gnome.org/johannes/2006/11/10/getting-cool-auto-indent-in-vim/&lt;br /&gt;
&lt;br /&gt;
=== Insert Literal Tab ===&lt;br /&gt;
&lt;br /&gt;
You can use &amp;quot;[ctrl]+v [tab]&amp;quot; to insert a literal tab when &amp;quot;expandtab&amp;quot; is enabled.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;CTRL-V&amp;gt;&amp;lt;Tab&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Source: How to insert Tab character when expandtab option is ON in VIM - Stack Overflow http://stackoverflow.com/questions/4781070/how-to-insert-tab-character-when-expandtab-option-is-on-in-vim&lt;br /&gt;
&lt;br /&gt;
=== Disable Auto Indent ===&lt;br /&gt;
&lt;br /&gt;
To turn off autoindent when you paste code, there&amp;#039;s a special &amp;quot;paste&amp;quot; mode.&lt;br /&gt;
&lt;br /&gt;
 :set paste&lt;br /&gt;
&lt;br /&gt;
Then paste your code. Note that the text in the tooltip now says -- INSERT (paste) --.&lt;br /&gt;
&lt;br /&gt;
After you pasted your code, turn off the paste-mode, so that auto-indenting when you type works correctly again.&lt;br /&gt;
&lt;br /&gt;
 :set nopaste&lt;br /&gt;
&lt;br /&gt;
To disable file based indenting for the current session:&lt;br /&gt;
&lt;br /&gt;
 :setlocal indentexpr=&lt;br /&gt;
 :setl inde=&lt;br /&gt;
&lt;br /&gt;
More extreme version:&lt;br /&gt;
 :setl noai nocin nosi inde=&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* editor - Turning off auto indent when pasting text into vim - Stack Overflow - http://stackoverflow.com/questions/2514445/turning-off-auto-indent-when-pasting-text-into-vim&lt;br /&gt;
* http://vim.wikia.com/wiki/How_to_stop_auto_indenting - How to stop auto indenting - Vim Tips Wiki&lt;br /&gt;
* Toggle auto-indenting for code paste - Vim Tips Wiki - http://vim.wikia.com/wiki/Toggle_auto-indenting_for_code_paste&lt;br /&gt;
&lt;br /&gt;
== Highlight Parenthesis ==&lt;br /&gt;
&lt;br /&gt;
Use % to jump between matching parenthesis.&lt;br /&gt;
&lt;br /&gt;
The :showmatch option is also useful: it can reduce the need for %, the cursor will briefly jump to the matching brace when you insert one. &lt;br /&gt;
&lt;br /&gt;
Parenthesis highlighting is handled by the pi_paren module.&lt;br /&gt;
&lt;br /&gt;
Vim documentation: pi_paren - http://vimdoc.sourceforge.net/htmldoc/pi_paren.html&lt;br /&gt;
&lt;br /&gt;
To permanently disable this plugin, add the following to ~/.vimrc (not sure why you would want to):&lt;br /&gt;
 You can avoid loading this plugin by setting the &amp;quot;loaded_matchparen&amp;quot; variable:&lt;br /&gt;
 	:let loaded_matchparen = 1&lt;br /&gt;
&lt;br /&gt;
To disable the plugin after it was loaded use this command:&lt;br /&gt;
	:NoMatchParen&lt;br /&gt;
&lt;br /&gt;
And to enable it again:&lt;br /&gt;
	:DoMatchParen&lt;br /&gt;
&lt;br /&gt;
&amp;quot;There&amp;#039;s a plugin to do the highlighting thing. Sorry, it&amp;#039;s been awhile since I used vim and was thinking showmatch highlighted also. [http://www.linuxquestions.org/questions/programming-9/highlight-matching-brackets-in-vim-458150/]&lt;br /&gt;
* :help showmatch&lt;br /&gt;
* There&amp;#039;s a link in the help files to pi_paren.txt&lt;br /&gt;
* pi_paren.txt. Put your cursor on that and hit ctrl-] and it&amp;#039;ll jump you to the docs.&lt;br /&gt;
* or directly with :help pi_paren.txt&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Moving to matching braces - Vim Tips Wiki - http://vim.wikia.com/wiki/Moving_to_matching_braces&lt;br /&gt;
&lt;br /&gt;
== Vim Tip Wiki ==&lt;br /&gt;
&lt;br /&gt;
http://vim.wikia.com/wiki/Vim_Tips_Wiki&lt;br /&gt;
&lt;br /&gt;
== Super Star Search ==&lt;br /&gt;
&lt;br /&gt;
This tip shows how to search using Vim, including use of * (the super star) to search for the current word.&lt;br /&gt;
&lt;br /&gt;
http://vim.wikia.com/wiki/VimTip1&lt;br /&gt;
&lt;br /&gt;
In normal mode, move the cursor to any word. Press * to search forwards for the next occurrence of that word, or press # to search backwards.&lt;br /&gt;
&lt;br /&gt;
Using * or # searches for the exact word at the cursor (searching for rain would not find rainbow).&lt;br /&gt;
&lt;br /&gt;
Use g* or g# if you don&amp;#039;t want to search for the exact word. &lt;br /&gt;
&lt;br /&gt;
==Multi-line Edits==&lt;br /&gt;
Insert 20 lines of the following:&lt;br /&gt;
 20iHello world! &amp;lt;Enter&amp;gt; &amp;lt;escape&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Multi-line insert (with VIM only):&lt;br /&gt;
#Enter visual block mode: ctrl-v&lt;br /&gt;
#Select rows with arrow keys&lt;br /&gt;
#press &amp;#039;I&amp;#039; to insert text&lt;br /&gt;
#*can press &amp;#039;c&amp;#039; to cut the text, and then do insert&lt;br /&gt;
#Type text to insert&lt;br /&gt;
#Press escape to insert on multi lines&lt;br /&gt;
&lt;br /&gt;
==Ruler not showing==&lt;br /&gt;
If you don&amp;#039;t want to see the ruler all the time but want to know where you are, use &amp;quot;CTRL-G&amp;quot; or &amp;quot;g CTRL-G&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[http://vimdoc.sourceforge.net/htmldoc/options.html#&amp;#039;ruler&amp;#039; Vim: Ruler]&lt;br /&gt;
&lt;br /&gt;
To turn the ruler on/off:&lt;br /&gt;
 :set ruler&lt;br /&gt;
 :ser noruler&lt;br /&gt;
&lt;br /&gt;
CentOS by default only includes the package vim-minimal.  This was not compiled with &amp;quot;+cmdline_info&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
The solution is to do a &amp;quot;yum install vim-enhanced&amp;quot; and use &amp;quot;vim&amp;quot; instead of &amp;quot;vi&amp;quot;, or use &amp;quot;alias vi=/usr/bin/vim&amp;quot;&lt;br /&gt;
&lt;br /&gt;
To see what &amp;#039;vi&amp;#039; was compiled with: [http://www.bsdforums.org/forums/showthread.php?t=46881]&lt;br /&gt;
 :version&lt;br /&gt;
&lt;br /&gt;
==Vim Settings - Tips==&lt;br /&gt;
[http://www.koffeinfrei.org/?p=docs&amp;amp;m=1 Some very useful commands I use to make working with vim much more elegant and easier]:&lt;br /&gt;
&lt;br /&gt;
show / hide line numbers&lt;br /&gt;
 :set number&lt;br /&gt;
 :set nonumber&lt;br /&gt;
 :set numberwidth=1&lt;br /&gt;
&lt;br /&gt;
enable / disable syntax highlighting&lt;br /&gt;
 :syntax on&lt;br /&gt;
 :syntax off&lt;br /&gt;
If vim does not recognize the filetype, set the filetype manually&lt;br /&gt;
 :set filetype=filetype&lt;br /&gt;
example&lt;br /&gt;
 :set filetype=php&lt;br /&gt;
&lt;br /&gt;
show ruler (cursor coordinates)&lt;br /&gt;
 :set ruler&lt;br /&gt;
&lt;br /&gt;
show vim mode (INSERT / REPLACE / ...)&lt;br /&gt;
 :set showmode&lt;br /&gt;
&lt;br /&gt;
show matching parentheses&lt;br /&gt;
 :set showmatch&lt;br /&gt;
&lt;br /&gt;
replace tabs with spaces&lt;br /&gt;
 :set expandtab&lt;br /&gt;
number of spaces per tab&lt;br /&gt;
 :set shiftwidth=2&lt;br /&gt;
As expandtab is not always desired (e.g. for Makefiles tabs are necessary and would lead to a syntax error when replaced by spaces) you can use autocmd to set it only for certain filetypes. Example&lt;br /&gt;
 :filetype on&lt;br /&gt;
 :autocmd FileType php :set expandtab&lt;br /&gt;
&lt;br /&gt;
automatic indentation (e.g. code blocks between braces)&lt;br /&gt;
 :set cindent&lt;br /&gt;
Use this option with caution (same as with expandtab)&lt;br /&gt;
&lt;br /&gt;
case insensitive search&lt;br /&gt;
 :set ignorecase&lt;br /&gt;
&lt;br /&gt;
show invisible characters&lt;br /&gt;
 :set list&lt;br /&gt;
&lt;br /&gt;
==Line Numbers==&lt;br /&gt;
Show line numbers:&lt;br /&gt;
 :set number&lt;br /&gt;
 :set nu&lt;br /&gt;
&lt;br /&gt;
Hide line numbers:&lt;br /&gt;
 :set number!&lt;br /&gt;
 :set nu!&lt;br /&gt;
 :set nonumber&lt;br /&gt;
&lt;br /&gt;
Line number width:&lt;br /&gt;
 :set numberwidth=1&lt;br /&gt;
&lt;br /&gt;
Auto enabled numbers - append following line to your ~/.vimrc file:&lt;br /&gt;
 set number&lt;br /&gt;
&lt;br /&gt;
Jump to line number:&lt;br /&gt;
 [number(s)] [shift]+[G]&lt;br /&gt;
 300[shift]+[G]&lt;br /&gt;
&lt;br /&gt;
Jump to line number from command line:&lt;br /&gt;
 vi +[linenumber] [file]&lt;br /&gt;
 vi +300 myfile.txt&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
*[http://www.cyberciti.biz/faq/vi-show-line-numbers/ How To Show Line Numbers In vi / vim Text Editor]&lt;br /&gt;
&lt;br /&gt;
==Line Wrap==&lt;br /&gt;
Turn line wrapping on:&lt;br /&gt;
 :set wrap&lt;br /&gt;
&lt;br /&gt;
Turn line wrapping off:&lt;br /&gt;
 :set nowrap&lt;br /&gt;
&lt;br /&gt;
==Searching==&lt;br /&gt;
Find pattern&lt;br /&gt;
 /[pattern]&lt;br /&gt;
&lt;br /&gt;
Incremental search:&lt;br /&gt;
 :set incsearch&lt;br /&gt;
&lt;br /&gt;
Incremental searching means that as you enter your search pattern, Vim will show you the next match as you type each letter.&lt;br /&gt;
&lt;br /&gt;
Ignore case:&lt;br /&gt;
 :set ignorecase&lt;br /&gt;
&lt;br /&gt;
Smart case search:&lt;br /&gt;
 :set smartcase&lt;br /&gt;
&lt;br /&gt;
What if I really do want to search based on case distinctions? Will I have to set and unset ignorecase each time I want to search a different way? In vi, the answer, unfortunately, is yes. Vim is a little more subtle, though, in that it offers the smartcase option as well. If both ignorecase and smartcase are set, Vim will ignore the case of the search only if the search pattern is all in lower-case. But if there are any upper-case characters in the search pattern, Vim will assume you really want to do a case-sensitive search and will do its matching accordingly.&lt;br /&gt;
&lt;br /&gt;
Keep Some Context: scrolloff&lt;br /&gt;
 :set scrolloff=2&lt;br /&gt;
&lt;br /&gt;
The 2 means I want at least two lines of context visible around the cursor at all times. You can set this to any number you like. Vim will scroll your file so that your cursor will never be closer to the top and bottom edge of the screen than the number of lines you specify. &lt;br /&gt;
&lt;br /&gt;
==Colors==&lt;br /&gt;
Colors:&lt;br /&gt;
 :colors darkblue&lt;br /&gt;
&lt;br /&gt;
For colors, add colors=darkblue to your .vimrc and that&amp;#039;s it.&lt;br /&gt;
&lt;br /&gt;
==Save Settings==&lt;br /&gt;
Save settings to .virmc:&lt;br /&gt;
 :mkv[imrc][!] [file]&lt;br /&gt;
 :mkv&lt;br /&gt;
&lt;br /&gt;
Like &amp;quot;:mkexrc&amp;quot;, but the default is &amp;quot;.vimrc&amp;quot; in the current directory.  The &amp;quot;:version&amp;quot; command is also written to the file.  {not in Vi} ([http://www.vim.org/htmldoc/starting.html#save-settings Vim documentation: starting])&lt;br /&gt;
&lt;br /&gt;
== Spell Check ==&lt;br /&gt;
&lt;br /&gt;
The spell check includes misspelled word highlighting. &lt;br /&gt;
&lt;br /&gt;
Turn on spell check:&lt;br /&gt;
 :set spell&lt;br /&gt;
 :set nospell&lt;br /&gt;
 :setlocal spell spelllang=en_us&lt;br /&gt;
&lt;br /&gt;
Navigation:&lt;br /&gt;
 ]s — move to the next mispelled word&lt;br /&gt;
 [s — move to the previous mispelled word&lt;br /&gt;
 zg — add a word to the dictionary&lt;br /&gt;
 zug — undo the addition of a word to the dictionary&lt;br /&gt;
 z= — view spelling suggestions for a mispelled word&lt;br /&gt;
&lt;br /&gt;
In &amp;#039;&amp;#039;&amp;#039;Insert&amp;#039;&amp;#039;&amp;#039; mode:&lt;br /&gt;
 CTRL-X s - find suggestions (can use up/down, top item is original)&lt;br /&gt;
 CTRL-N - next suggestion&lt;br /&gt;
 CTRL-P - previous suggestion (select top to revert to original)&lt;br /&gt;
&lt;br /&gt;
Help:&lt;br /&gt;
 :help spell&lt;br /&gt;
&lt;br /&gt;
== Code Folding ==&lt;br /&gt;
&lt;br /&gt;
Settings in .vimrc:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;folding settings&lt;br /&gt;
set foldmethod=indent   &amp;quot;fold based on indent&lt;br /&gt;
set foldnestmax=10      &amp;quot;deepest fold is 10 levels&lt;br /&gt;
set nofoldenable        &amp;quot;dont fold by default&lt;br /&gt;
set foldlevel=10        &amp;quot;initial fold level on enable&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
za - toggle folding&lt;br /&gt;
&lt;br /&gt;
zM - fold everything&lt;br /&gt;
zR - unfold everything with zR&lt;br /&gt;
&lt;br /&gt;
zm - fold one level&lt;br /&gt;
zr - unfold one level&lt;br /&gt;
&lt;br /&gt;
zo - open fold&lt;br /&gt;
zO - open all folds in current fold&lt;br /&gt;
zc - close fold&lt;br /&gt;
&lt;br /&gt;
zf5j - manually force fold &amp;#039;5&amp;#039; lines&lt;br /&gt;
zfa} - manually fold to next &amp;#039;}&amp;#039;&lt;br /&gt;
&lt;br /&gt;
help :folding - if you get stuck.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Code folding in vim – Smarticus - http://smartic.us/2009/04/06/code-folding-in-vim/&lt;br /&gt;
* Folding - Vim Tips Wiki - http://vim.wikia.com/wiki/Folding&lt;br /&gt;
* A Collection of Vim Tips | Ayman Hourieh - http://aymanh.com/a-collection-of-vim-tips&lt;br /&gt;
&lt;br /&gt;
== Hex Mode ==&lt;br /&gt;
&lt;br /&gt;
Vim provides hex capability through the external program xxd&lt;br /&gt;
&lt;br /&gt;
 :%!xxd       # to convert to hex&lt;br /&gt;
 :%!xxd -r    # to convert back&lt;br /&gt;
&lt;br /&gt;
Add the following to ~/.vimrc to enable CTRL-H hex mode (make sure to return from Hex mode before saving):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;&lt;br /&gt;
&amp;quot; HEX MODE&lt;br /&gt;
&amp;quot;&lt;br /&gt;
nnoremap &amp;lt;C-H&amp;gt; :Hexmode&amp;lt;CR&amp;gt;&lt;br /&gt;
inoremap &amp;lt;C-H&amp;gt; &amp;lt;Esc&amp;gt;:Hexmode&amp;lt;CR&amp;gt;&lt;br /&gt;
vnoremap &amp;lt;C-H&amp;gt; :&amp;lt;C-U&amp;gt;Hexmode&amp;lt;CR&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;quot; ex command for toggling hex mode - define mapping if desired&lt;br /&gt;
command -bar Hexmode call ToggleHex()&lt;br /&gt;
&lt;br /&gt;
&amp;quot; helper function to toggle hex mode&lt;br /&gt;
function ToggleHex()&lt;br /&gt;
  &amp;quot; hex mode should be considered a read-only operation&lt;br /&gt;
  &amp;quot; save values for modified and read-only for restoration later,&lt;br /&gt;
  &amp;quot; and clear the read-only flag for now&lt;br /&gt;
  let l:modified=&amp;amp;mod&lt;br /&gt;
  let l:oldreadonly=&amp;amp;readonly&lt;br /&gt;
  let &amp;amp;readonly=0&lt;br /&gt;
  let l:oldmodifiable=&amp;amp;modifiable&lt;br /&gt;
  let &amp;amp;modifiable=1&lt;br /&gt;
  if !exists(&amp;quot;b:editHex&amp;quot;) || !b:editHex&lt;br /&gt;
    &amp;quot; save old options&lt;br /&gt;
    let b:oldft=&amp;amp;ft&lt;br /&gt;
    let b:oldbin=&amp;amp;bin&lt;br /&gt;
    &amp;quot; set new options&lt;br /&gt;
    setlocal binary &amp;quot; make sure it overrides any textwidth, etc.&lt;br /&gt;
    let &amp;amp;ft=&amp;quot;xxd&amp;quot;&lt;br /&gt;
    &amp;quot; set status&lt;br /&gt;
    let b:editHex=1&lt;br /&gt;
    &amp;quot; switch to hex editor&lt;br /&gt;
    %!xxd&lt;br /&gt;
  else&lt;br /&gt;
    &amp;quot; restore old options&lt;br /&gt;
    let &amp;amp;ft=b:oldft&lt;br /&gt;
    if !b:oldbin&lt;br /&gt;
      setlocal nobinary&lt;br /&gt;
    endif&lt;br /&gt;
    &amp;quot; set status&lt;br /&gt;
    let b:editHex=0&lt;br /&gt;
    &amp;quot; return to normal editing&lt;br /&gt;
    %!xxd -r&lt;br /&gt;
  endif&lt;br /&gt;
  &amp;quot; restore values for modified and read only state&lt;br /&gt;
  let &amp;amp;mod=l:modified&lt;br /&gt;
  let &amp;amp;readonly=l:oldreadonly&lt;br /&gt;
  let &amp;amp;modifiable=l:oldmodifiable&lt;br /&gt;
endfunction&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Improved hex editing - Vim Tips Wiki - http://vim.wikia.com/wiki/Improved_hex_editing&lt;br /&gt;
* Hex dump - Vim Tips Wiki - http://vim.wikia.com/wiki/Hex_dump&lt;br /&gt;
&lt;br /&gt;
== Multiple Buffers - Windows ==&lt;br /&gt;
&lt;br /&gt;
keywords: multiple buffers / multiple windows&lt;br /&gt;
&lt;br /&gt;
Documentation: http://vimdoc.sourceforge.net/htmldoc/windows.html&lt;br /&gt;
&lt;br /&gt;
Command mode:&lt;br /&gt;
 # To create/open a file in a horizontal buffer below:&lt;br /&gt;
 :new filename.txt&lt;br /&gt;
 :sp filename.txt&lt;br /&gt;
&lt;br /&gt;
 # To create/open a file in a vertical buffer on the right:&lt;br /&gt;
 :vert new filename.txt&lt;br /&gt;
 :vnew filename.txt&lt;br /&gt;
 :vsp filename.txt&lt;br /&gt;
 :vs filename.txt&lt;br /&gt;
&lt;br /&gt;
 # split current buffer horizontal&lt;br /&gt;
 :sp&lt;br /&gt;
&lt;br /&gt;
 # split current buffer vertifical&lt;br /&gt;
 :vsp&lt;br /&gt;
 :vs&lt;br /&gt;
&lt;br /&gt;
Open multiple files split horizontally:&lt;br /&gt;
 vim -o file1.txt file2.txt file3.txt&lt;br /&gt;
&lt;br /&gt;
Open multiple files split vertically:&lt;br /&gt;
 vim -O file1.txt file2.txt file3.txt&lt;br /&gt;
&lt;br /&gt;
Visual Mode Keys:&lt;br /&gt;
 ctrl+w ctrl+w - switch windows&lt;br /&gt;
 ctrl+w [right] - switch to right windows&lt;br /&gt;
 ctrl+w [left] - switch to left windows&lt;br /&gt;
 2 ctrl+g - identify buffer and file&lt;br /&gt;
 ctrl+w n - new buffer horizontal split (no similar vert command)&lt;br /&gt;
&lt;br /&gt;
 ctrl+w s - open current buffer in second horizontal split&lt;br /&gt;
 ctrl+w v - open current buffer in second buffer vertical split&lt;br /&gt;
 ctrl+w q - close buffer&lt;br /&gt;
&lt;br /&gt;
Note: to exit, you have to close out all windows, one at a time, or use: [http://vim.wikia.com/wiki/Save_all_open_buffers_at_once]&lt;br /&gt;
 :wa  # write changes to all buffers&lt;br /&gt;
 :xa  # save and exit all buffers&lt;br /&gt;
 :qa  # quit all buffers&lt;br /&gt;
 :qa! # quit all buffers (without saving)&lt;br /&gt;
&lt;br /&gt;
swarthmore tricks: [http://www.cs.swarthmore.edu/help/vim/windows.html]&lt;br /&gt;
 :e filename      - edit another file&lt;br /&gt;
 :split filename  - split window and load another file&lt;br /&gt;
 ctrl-w up arrow  - move cursor up a window&lt;br /&gt;
 ctrl-w ctrl-w    - move cursor to another window (cycle)&lt;br /&gt;
 ctrl-w_          - maximize current window&lt;br /&gt;
 ctrl-w=          - make all equal size&lt;br /&gt;
 10 ctrl-w+       - increase window height size by 10 lines&lt;br /&gt;
 ctrl-w &amp;lt;         - shrink vertical window width by 1&lt;br /&gt;
 ctrl-w &amp;gt;         - expand vertical window width by 1&lt;br /&gt;
 20ctrl-w &amp;lt;         - shrink vertical window width by 20&lt;br /&gt;
 20ctrl-w &amp;gt;         - expand vertical window width by 20&lt;br /&gt;
 :vsplit file     - vertical split&lt;br /&gt;
 :sview file      - same as split, but readonly&lt;br /&gt;
 :hide            - close current window&lt;br /&gt;
 :only            - keep only this window open&lt;br /&gt;
 :ls              - show current buffers&lt;br /&gt;
 :b 2             - open buffer #2 in this window&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Vim documentation: windows - http://vimdoc.sourceforge.net/htmldoc/windows.html&lt;br /&gt;
* Vim Editing Multiple Files and Windowing Support Under Linux / UNIX - http://www.cyberciti.biz/faq/vim-editing-multiple-files-with-windows-buffers/&lt;br /&gt;
* unix - How to open a new file in vim in a new window - Stack Overflow - http://stackoverflow.com/questions/10760310/how-to-open-a-new-file-in-vim-in-a-new-window&lt;br /&gt;
* vim tips and tricks: multiple windows - http://www.cs.swarthmore.edu/help/vim/windows.html&lt;br /&gt;
* gvim - How do I open a blank new file in a split in Vim? - Super User - http://superuser.com/questions/212257/how-do-i-open-a-blank-new-file-in-a-split-in-vim&lt;br /&gt;
* Save all open buffers at once - Vim Tips Wiki - http://vim.wikia.com/wiki/Save_all_open_buffers_at_once&lt;br /&gt;
&lt;br /&gt;
== Python ==&lt;br /&gt;
&lt;br /&gt;
New as of 2013.05.15:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot; Kenneth&amp;#039;s Preferences&lt;br /&gt;
&lt;br /&gt;
set nobackup            &amp;quot; don&amp;#039;t create backup files&lt;br /&gt;
&amp;quot;set nohlsearch          &amp;quot; don&amp;#039;t highlight search results&lt;br /&gt;
set hlsearch            &amp;quot; do highlight search results&lt;br /&gt;
set incsearch           &amp;quot; incremental search&lt;br /&gt;
set ignorecase          &amp;quot; ignore case during search&lt;br /&gt;
set smartcase           &amp;quot; do case sensitive search when upper case is typed&lt;br /&gt;
set shiftwidth=4        &amp;quot; shift blocks in 4 space increments&lt;br /&gt;
set tabstop=4           &amp;quot; the (typewriter) tab stops are every 4 spaces&lt;br /&gt;
set smarttab            &amp;quot; tab at beginning of line inserts 4 spaces (shiftwidth)&lt;br /&gt;
set showmatch           &amp;quot; briefly highlight matching bracket&lt;br /&gt;
set matchtime=1         &amp;quot; highlight match for 0.1 seconds&lt;br /&gt;
set background=dark     &amp;quot; black background&lt;br /&gt;
set shiftwidth=4        &amp;quot; shift blocks by 4 spaces&lt;br /&gt;
set shortmess=at        &amp;quot; use short messages so we don&amp;#039;t have to hit enter&lt;br /&gt;
set expandtab           &amp;quot; expand tabs into spaces&lt;br /&gt;
set scrolloff=5         &amp;quot; always show 5 lines before &amp;amp; after cursor&lt;br /&gt;
set shell=bash          &amp;quot; use bash for the command shell&lt;br /&gt;
set shellcmdflag=-lc    &amp;quot; make bash startup as a login shell for ~/.bashrc&lt;br /&gt;
&amp;quot;set nowrap              &amp;quot; do not wrap long lines&lt;br /&gt;
set visualbell          &amp;quot; flash the screen rather than beep&lt;br /&gt;
set noerrorbells        &amp;quot; don&amp;#039;t beep on errors&lt;br /&gt;
set wildmenu            &amp;quot; enable filename tab completion&lt;br /&gt;
set ruler               &amp;quot; display the ruler: shows cursor position&lt;br /&gt;
set cpoptions+=$        &amp;quot; display &amp;#039;$&amp;#039; at end of cw sequence&lt;br /&gt;
set title               &amp;quot; display filename and vim info in window title bar&lt;br /&gt;
set modelines=5         &amp;quot; search the first and last 5 lines for &amp;quot;vim:&amp;quot; modeline&lt;br /&gt;
set backspace=2         &amp;quot; backspace deletes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
set wildignore=*.o,*.class,*.pyc,*.pyo,*.a,*.so,*.dll,*.exe,core,*.jar,*.zip&lt;br /&gt;
&lt;br /&gt;
&amp;quot;let loaded_matchparen = 1 &amp;quot; don&amp;#039;t highlight parenthesis match&lt;br /&gt;
&lt;br /&gt;
filetype indent on&lt;br /&gt;
&lt;br /&gt;
&amp;quot;if v:version &amp;gt; 700&lt;br /&gt;
&amp;quot;    set cursorline          &amp;quot; underline the current line&lt;br /&gt;
&amp;quot;endif&lt;br /&gt;
&lt;br /&gt;
if &amp;amp;t_Co &amp;gt; 2 || has( &amp;quot;gui_running&amp;quot; )&lt;br /&gt;
    syntax on&lt;br /&gt;
endif&lt;br /&gt;
&lt;br /&gt;
if has( &amp;#039;mouse&amp;#039; )&lt;br /&gt;
    set mouse=a &amp;quot; enable mouse&lt;br /&gt;
endif&lt;br /&gt;
&lt;br /&gt;
if has( &amp;quot;autocmd&amp;quot; )&lt;br /&gt;
    &amp;quot; open the file in the last place we were editing&lt;br /&gt;
    autocmd BufReadPost *&lt;br /&gt;
        \ if line(&amp;quot;&amp;#039;\&amp;quot;&amp;quot;) &amp;gt; 1 &amp;amp;&amp;amp; line(&amp;quot;&amp;#039;\&amp;quot;&amp;quot;) &amp;lt;= line(&amp;quot;$&amp;quot;) |&lt;br /&gt;
        \     exe &amp;quot;normal! g&amp;#039;\&amp;quot;&amp;quot; |&lt;br /&gt;
        \ endif&lt;br /&gt;
endif&lt;br /&gt;
&lt;br /&gt;
&amp;quot;folding settings&lt;br /&gt;
set foldmethod=indent   &amp;quot;fold based on indent&lt;br /&gt;
set foldnestmax=10      &amp;quot;deepest fold is 10 levels&lt;br /&gt;
set nofoldenable        &amp;quot;dont fold by default&lt;br /&gt;
set foldlevel=10        &amp;quot;this is just what i use&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Python .vimrc:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot; KENNETH SETTINGS&lt;br /&gt;
set nocp                &amp;quot; turn off compatibility mode&lt;br /&gt;
set nomodeline          &amp;quot; do not allow files to dictate vim behavior&lt;br /&gt;
&lt;br /&gt;
set incsearch           &amp;quot; incremental search&lt;br /&gt;
set ignorecase          &amp;quot; ignore case during search&lt;br /&gt;
&lt;br /&gt;
set visualbell          &amp;quot; flash the screen rather than beep&lt;br /&gt;
set noerrorbells        &amp;quot; don&amp;#039;t beep on errors&lt;br /&gt;
set background=dark     &amp;quot; black background&lt;br /&gt;
syntax on               &amp;quot; turn on syntax highlighting&lt;br /&gt;
set hlsearch            &amp;quot; highligh last search pattern&lt;br /&gt;
&lt;br /&gt;
set nowrap              &amp;quot; do not wrap long lines&lt;br /&gt;
set scrolloff=5         &amp;quot; always show 5 lines before &amp;amp; after cursor&lt;br /&gt;
set ruler               &amp;quot; show the cursor position all the time&lt;br /&gt;
set backspace=2         &amp;quot; allow backspace deletion&lt;br /&gt;
set bs=indent,eol,start &amp;quot; allow backspacing over everything in insert mode&lt;br /&gt;
&lt;br /&gt;
set shiftwidth=4        &amp;quot; shift blocks in 4 space increments&lt;br /&gt;
set tabstop=4           &amp;quot; the (typewriter) tab stops are every 4 spaces&lt;br /&gt;
set expandtab           &amp;quot; expand tab into spaces&lt;br /&gt;
set smarttab            &amp;quot; tab at beginning of line inserts 4 spaces (shiftwidth)&lt;br /&gt;
filetype indent on      &amp;quot; turn on auto indent for specific file types&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== vimdiff ==&lt;br /&gt;
&lt;br /&gt;
See [[vimdiff]]&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>