Skip to content

Instantly share code, notes, and snippets.

@lucascaton
Created August 29, 2013 23:05
Show Gist options
  • Select an option

  • Save lucascaton/6384493 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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

@squiter
Copy link
Copy Markdown

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