Skip to content

Commit

Permalink
Attempts at uuid nonsense...
Browse files Browse the repository at this point in the history
  • Loading branch information
metasoarous committed Aug 4, 2015
1 parent 35ff8b1 commit 6fafac5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'sophacles/vim-processing'
Plugin 'jceb/vim-orgmode'
Plugin 'sunset'
Plugin 'kburdett/vim-nuuid'

"" Clojure things
"Plugin 'vimclojure'
Expand Down Expand Up @@ -127,6 +128,7 @@ vmap <leader>ds :call DontStage()<enter>

" Clojure fireplace etc goodies
vmap e :Eval<enter>
vmap E :Eval!<enter>
map E Ve
map <leader>e :%Eval<enter>
Expand Down Expand Up @@ -292,6 +294,32 @@ let g:sunset_longitude = -122.3331
let g:sunset_utc_offset = -8



"" Generate and insert uuids
"fu! GenerateUUID()

"python << EOF
"import uuid
"import vim

"# output a uuid to the vim variable for insertion below
"vim.command("let generatedUUID = \"%s\"" % str(uuid.uuid4()))

"EOF

"" insert the python generated uuid into the current cursor's position
":execute "normal i" . generatedUUID . ""

"endfunction

""initialize the generateUUID function here and map it to a local command
"map <Leader>U :call GenerateUUID()<CR>

let g:nuuid_no_mappings = 1
map <Leader>U <Plug>Nuuid


"" The below was all snagged from janus. Moving away..
"" ===================================================
""
Expand Down

0 comments on commit 6fafac5

Please sign in to comment.