Commits

Ed Brannin  committed c54445b

vimrc: Better empty-field handling in <leader>ftj

  • Participants
  • Parent commits 2f8566b

Comments (0)

Files changed (1)

 cmap w!! w !sudo tee % >/dev/null
 
 ""Fix" tabs to be a table in JIRA wiki markup.
-nnoremap <leader>ftj vip:s/\\t\t/\t \t/e<CR>
+nnoremap <leader>ftj vip:s/\\t\ze\(\t\|$\)/\t \t/e<CR>
                     \vip:s/\v^\|\t\|$/\|/<CR>
                     \'<:s/~/~~/<CR>
                     \vip:Tabularize /\|\+<CR>