aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index ca85225..36d7647 100644
--- a/.vimrc
+++ b/.vimrc
@@ -194,6 +194,9 @@ nmap <Leader>re gg=G<C-o><C-o>
" Reset all settings and source configuration.
nmap <Leader>ra :set all& \| :source ~/.vimrc \| :e<cr>
+" Remove duplicate lines
+vnoremap <leader>rd !awk '\!visited[$0]++'<cr>
+
" Toggle color column
nmap <leader>cv :exe "set colorcolumn=" . (&colorcolumn == "" ? "80" : "")<cr>