Skip to content

Instantly share code, notes, and snippets.

@lucascaton
Created August 29, 2013 23:05
Show Gist options
  • Save lucascaton/6384493 to your computer and use it in GitHub Desktop.
Save lucascaton/6384493 to your computer and use it in GitHub Desktop.
function! s:AddFocusTag()
call s:Preserve("normal! ^ / do\<cr>C, focus: true do\<esc>")
endfunction
function! s:RemoveAllFocusTags()
call s:Preserve("%s/, focus: true//e")
endfunction
command! -nargs=0 AddFocusTag call s:AddFocusTag()
command! -nargs=0 RemoveAllFocusTags call s:RemoveAllFocusTags()
:nnoremap <leader>t :AddFocusTag<CR>
:nnoremap <leader>r :RemoveAllFocusTags<CR>
@dansowter
Copy link

Where's our Sublime Text macro? Awesome work dude.

@squiter
Copy link

squiter commented Aug 30, 2013

Nice script Caton! Thanks!

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