From 45350b57a7f21f72569007fb3a2bfb58c8c8b212 Mon Sep 17 00:00:00 2001 From: Nachuan Tang Date: Thu, 2 Mar 2023 16:15:29 -0500 Subject: [PATCH] stop adding comment leader when press o or O --- .tmux.conf | 3 +++ .vimrc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index 5baa5e4..de700aa 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -3,6 +3,9 @@ set-option -sg escape-time 10 set -g default-terminal "xterm-256color" set-option -g history-limit 6000 +# turn off status line +set -g status off + set-option -sa terminal-overrides ',xterm-256color:RGB' setw -g mode-keys vi bind-key -T copy-mode-vi 'v' send -X begin-selection diff --git a/.vimrc b/.vimrc index f8db73a..13074c7 100644 --- a/.vimrc +++ b/.vimrc @@ -145,6 +145,9 @@ " set nolist " let vim not showing '$' or other sign set list " Display unprintable characters f12 - switches + " stop inserting the current comment leader after hitting 'o' or 'O' in Normal mode + au FileType java setlocal formatoptions-=o + set listchars=tab:•\ ,trail:•,extends:»,precedes:« " Unprintable chars mapping "Remove all trailing whitespace by pressing ws