Skip to content

Instantly share code, notes, and snippets.

@jottr
Forked from vinniefranco/gist:4730156
Last active October 5, 2019 00:59
Show Gist options
  • Save jottr/8917355 to your computer and use it in GitHub Desktop.
Save jottr/8917355 to your computer and use it in GitHub Desktop.
Quickly convert string to array in vim
" Quick array creation
nmap <leader>ta vF=l<Esc>:s/\%V\S\+/"&",/g<CR>A<BS><Esc>vF=2lgS[JJ:let @/ = ""<CR>
@jottr
Copy link
Author

jottr commented Feb 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment