From 82736abb53b191ede2d85b87f9d3af7d9d3ebc0d Mon Sep 17 00:00:00 2001 From: ziro Date: Wed, 1 Jul 2020 14:39:18 +0700 Subject: [PATCH] + Map CTRL+l to toggle comments --- .config/vim/vimrc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 4b0c6c5..ed7b6a6 100755 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -20,6 +20,7 @@ set hls set number set ignorecase set smartcase +set mouse=a " map :NERDTreeToggle " @@ -36,13 +37,16 @@ noremap "+p noremap "+y noremap "+P " NERDComment thing -noremap :NERDCommenterToggle -:set mouse=a +map gcc +imap gc i +" ---- " specific type maps -- if !has("nvim") - autocmd FileType python map :w:!clear; python "%" + autocmd FileType python map :w:!clear; python3 "%" + autocmd FileType python imap :w:!clear; python3 "%" else - autocmd FileType python map :w:!python "%" + autocmd FileType python map :w:!echo -e "executing '%'...\n";python3 "%" + autocmd FileType python imap :w:!echo -e "executing '%'...\n";python3 "%" endif " autocmd FileType python imap :w:exec '!clear; python "%"' autocmd FileType plaintex command! -nargs=0 Lw w !pdflatex % > /dev/null