Skip to content

MarvsaiDev/Vim_Cheet_sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Number One

  • :%s/^\(.*\)$/"\1"/c

s/regex/replace/ is vim command for search n replace. % makes it apply throughout the file ^ and $ denotes start and end of the line respectively. (.*) captures everything in between. ( and ) needs to be escaped in vim regexes. \1 puts the captured content between two quotes.

About

vim for database and text insertion into code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published