Remove the tcomment leader alias

This commit is contained in:
Kevin MacMartin 2023-06-02 00:36:38 -04:00
parent 3f7e7d1582
commit 4039f94198

View file

@ -140,8 +140,6 @@
" <Leader>t | (N) -> convert tabs into spaces " <Leader>t | (N) -> convert tabs into spaces
" <Leader>T | (N) -> convert spaces into tabs " <Leader>T | (N) -> convert spaces into tabs
" <Leader>w | (N) -> remove whitespace " <Leader>w | (N) -> remove whitespace
" <Leader>c | (N) -> comment/uncomment current line
" <Leader>c | (V) -> comment/uncomment selection
" <Leader>A | (N) -> aligns comments using the comment symbol " <Leader>A | (N) -> aligns comments using the comment symbol
" <Leader>A | (V) -> aligns selected comments " <Leader>A | (V) -> aligns selected comments
" <Leader>a | (N) -> aligns all comments after text " <Leader>a | (N) -> aligns all comments after text
@ -580,10 +578,6 @@
"remove trailing whitespace "remove trailing whitespace
nnoremap <silent><expr> <Leader>w ':FixWhitespace<CR>:echo "Trailing whitespace has been removed"<CR>' nnoremap <silent><expr> <Leader>w ':FixWhitespace<CR>:echo "Trailing whitespace has been removed"<CR>'
"commant/uncomment current line/selection using tcomment
nmap <Leader>c gcc
vmap <Leader>c gc
"align comments "align comments
nnoremap <Leader>A :exe "%Tabular" '/^[^'.matchstr(&commentstring, '[^%]*').']*\zs'.matchstr(&commentstring, '[^%]*').'.*'<CR>:redraw!<CR> nnoremap <Leader>A :exe "%Tabular" '/^[^'.matchstr(&commentstring, '[^%]*').']*\zs'.matchstr(&commentstring, '[^%]*').'.*'<CR>:redraw!<CR>
vnoremap <Leader>A <C-u>:exe "'<,'>Tabular" '/^[^'.matchstr(&commentstring, '[^%]*').']*\zs'.matchstr(&commentstring, '[^%]*').'.*'<CR>:redraw!<CR> vnoremap <Leader>A <C-u>:exe "'<,'>Tabular" '/^[^'.matchstr(&commentstring, '[^%]*').']*\zs'.matchstr(&commentstring, '[^%]*').'.*'<CR>:redraw!<CR>