stop adding comment leader when press o or O

This commit is contained in:
Nachuan Tang
2023-03-02 16:15:29 -05:00
parent 6c53b5cf17
commit 45350b57a7
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -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
+3
View File
@@ -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 <leader>ws