Skip to content

Latest commit

 

History

History
24 lines (11 loc) · 459 Bytes

vim.md

File metadata and controls

24 lines (11 loc) · 459 Bytes

Key Mappings

Mapping keys in Vim.

:nmap <F2> gUwW
:nmap <F3> guwW

:map <F4> @q

http://vim.wikia.com/wiki/List_loaded_scripts

Useful substitues

SQL case correction:

s/\vInsert into (\w+)(\_s*)(\(\_.{-}\))(\_s*)Values(\_s*)(\(\_.{-}\));/INSERT INTO \L\1\2\3\4\EVALUES\5\6;/gi

Incrementing partition:

%s/\v(\d){4}/\=submatch(0)+1/g