systemSetup

system setup, configuration and dotfiles
git clone https://noulin.net/git/systemSetup.git
Log | Files | Refs | README | LICENSE

commit 5f8be17150218cd0924a865d085704cc1cd17902
parent 90c777048c2b38af9f1648eaa5e1fcfff01dc6da
Author: Remy Noulin <loader2x@gmail.com>
Date:   Fri, 17 Aug 2018 16:43:23 +0200

vim: add CTRL F7 to quit all, update the remove comment script to support both python2 and python3

dotfiles/.vim/plugin/v.vim | 8 ++++++--
dotfiles/.vimrc            | 1 +
2 files changed, 7 insertions(+), 2 deletions(-)

Diffstat:
Mdotfiles/.vim/plugin/v.vim | 8++++++--
Mdotfiles/.vimrc | 1+
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/dotfiles/.vim/plugin/v.vim b/dotfiles/.vim/plugin/v.vim @@ -1,9 +1,13 @@ -if !has('python') +if !has('python') && !has('python3') finish endif function! RemoveComments() - pyfile ~/.vim/plugin/rc.py + if has('python') + pyfile ~/.vim/plugin/rc.py + elseif has('python3') + py3file ~/.vim/plugin/rc.py + endif endfunc command! Rc call RemoveComments() diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc @@ -226,3 +226,4 @@ nnoremap <F10> :tabnext<CR> inoremap <F10> <c-o>:tabnext<CR> nnoremap <F7> :q<CR> nnoremap <S-F7> :qa<CR> +nnoremap <C-F7> :qa!<CR>