diff --git a/vim/.vim/prefs/leader.vim b/vim/.vim/prefs/leader.vim index b2318ab..721ea99 100644 --- a/vim/.vim/prefs/leader.vim +++ b/vim/.vim/prefs/leader.vim @@ -172,8 +172,11 @@ let g:NERDTrimTrailingWhitespace = 1 "Enable NERDCommenterToggle to check all selected lines is commented or not let g:NERDToggleCheckAllLines = 1 -nnoremap ,c :call nerdcommenter#Comment(0,"toggle") -vnoremap ,c :call nerdcommenter#Comment(0,"toggle") +nnoremap c :call nerdcommenter#Comment(0,"toggle") +vnoremap c :call nerdcommenter#Comment(0,"toggle") -nnoremap ,c$ :call nerdcommenter#Comment(0,"ToEOL") -vnoremap ,c$ :call nerdcommenter#Comment(0,"ToEOL") +nnoremap c$ :call nerdcommenter#Comment(0,"ToEOL") +vnoremap c$ :call nerdcommenter#Comment(0,"ToEOL") + +nmap yf :let @" = expand("%") +nmap ut :UndotreeToggle diff --git a/vim/.vim/prefs/plugins.vim b/vim/.vim/prefs/plugins.vim index a7d62ad..f8a23d2 100644 --- a/vim/.vim/prefs/plugins.vim +++ b/vim/.vim/prefs/plugins.vim @@ -28,6 +28,8 @@ Plug 'nathanaelkane/vim-indent-guides' Plug 'Konfekt/vim-scratchpad' Plug 'guns/xterm-color-table.vim' Plug 'kyazdani42/nvim-web-devicons' +Plug 'mbbill/undotree' +Plug 'tversteeg/registers.nvim', { 'branch': 'main' } " Plug 'ryanoasis/vim-devicons' " INTEGRATION diff --git a/vim/.vim/prefs/ui.vim b/vim/.vim/prefs/ui.vim index 51f93d5..9eef0c4 100644 --- a/vim/.vim/prefs/ui.vim +++ b/vim/.vim/prefs/ui.vim @@ -39,7 +39,6 @@ let g:airline#extensions#tabline#exclude_preview = 1 let g:airline#extensions#tabline#show_close_button = 0 let g:airline#extensions#tabline#fnamemod = ':t' - let g:airline_mode_map = { \ '__' : '------', \ 'n' : 'NORMAL',