diff options
| author | jdhao <jdhao@hotmail.com> | 2021-06-17 00:21:15 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-06-17 00:21:15 +0800 |
| commit | 7ace83853411c27133b5052946150dc7348954f5 (patch) | |
| tree | dae224e6aa8ee3659d3220a72fdca550985caf3d /after/ftplugin/cpp.vim | |
| parent | d744b6e98f8166fa6b761e0d945bb45dedcca226 (diff) | |
update formatoptions for certain filetypes
Diffstat (limited to 'after/ftplugin/cpp.vim')
| -rw-r--r-- | after/ftplugin/cpp.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/after/ftplugin/cpp.vim b/after/ftplugin/cpp.vim index 4d451de..4779a0e 100644 --- a/after/ftplugin/cpp.vim +++ b/after/ftplugin/cpp.vim @@ -5,6 +5,10 @@ set softtabstop=2 " number of spaces in tab when editing set shiftwidth=2 " number of spaces to use for autoindent set expandtab " expand tab to spaces so that tabs are spaces +" Disable inserting comment leader after hitting o or O or <Enter> +set formatoptions-=o +set formatoptions-=r + nnoremap <silent> <buffer> <F9> :call <SID>compile_run_cpp()<CR> function! s:compile_run_cpp() abort |
