Search This Blog

Showing posts with label vim. Show all posts
Showing posts with label vim. Show all posts

Wednesday, May 30, 2018

Using regex in vim

Search and replace using quantifiers.

Example:
This will erase all checkID's with single and/or double digits.

:%s/"checkID":[0-9]\{1,2\} //g

Before






Running command.



Sunday, March 21, 2010

Thursday, February 18, 2010

Tuesday, September 12, 2006

My .vimrc file

syntax on
set viminfo^=h
set ruler
set nohls
set incsearch
set showmatch
set ts=4 sw=4
syntax enable
set hlsearch
"Use F4 to switch high lighting on/off
:noremap <F4> :set hlsearch! hlsearch<CR>