Tags:

My .vimrc

Saturday, July 9, 2011 EDT

by: Eric Potvin

Tags: ubuntu linux vim

.vimrc is the config file for Vim. It is usually stored in the home directory of the user. Here's the most common feature I have in my .vimrc file.

set nowrap
"set showmatch
set tabstop=4
set shiftwidth=4
"set expandtab
set ruler
set foldcolumn=2
set nowrap
nmap <F8> :set wrap! wrap?<CR>
" change // style comment to phpDoc comment
nmap <F1> :s/\(.*\)\/\/ \(.*\)/\/**\r *\r *\r * \2\r *\r * @param\r * @return\r *\/<CR>
map <C-P> :!php -l %<CR>

map <C-M> :NoMatch<CR>

set hlsearch
"set incsearch
set background=dark
"set textwidth=1000
"set number
"set backspace=indent,eol,start
set noshowmatch

syntax on
"set NoMatch
let g:loaded_matchparen=1

Be the first to reply!

No comments!
Share this article:

Add a comment

* If your comment require a response from us, please make sure you leave your email

Captcha

* is required
The posting of advertisements, profanity, or personal attacks is prohibited.
Please review our terms of use

Latest Articles

Top Articles

Category List

Top of the page
Loading, please wait ...