X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=init.vim;h=3255e3322a503d45f5163506cfb447da63908e7b;hp=ff6dcd8b928ac588727f6c16c9068dd2be793d17;hb=HEAD;hpb=bdcf462cdf79322d74e09c3547ae77bdd5155b25 diff --git a/init.vim b/init.vim index ff6dcd8..a80a4e8 100644 --- a/init.vim +++ b/init.vim @@ -6,16 +6,23 @@ " Some global settings set nocompatible -set termguicolors set number set cursorline set scrolloff=5 set encoding=utf-8 +set fillchars=vert:│,fold:\ set listchars=tab:»­,trail:·,eol:$ set virtualedit=block +set linebreak + +" Use filetype.lua and do not use filetype.vim for >=neovim-0.7.2 +" Attention: Requires migration of ftdetect/ scripts +" let g:do_filetype_lua = 1 +" let g:did_load_filetypes = 0 + filetype plugin indent on set tabstop=4 @@ -29,144 +36,74 @@ set smartindent set incsearch set hlsearch +set foldcolumn=4 +set foldlevelstart=20 + set colorcolumn=+1 set mouse=a -set wildmode=longest,list:full +set wildmenu +" set wildmode=longest,list:full +" set wildmode=list:full +set wildoptions=pum +set showcmd -if has('nvim') - set guicursor= -end +set tabpagemax=100 -syntax on +if has('nvim-0.7') + set laststatus=3 +endif +if has('nvim-0.11') + lua<8\s*-*\s*$/ au Filetype mail syn match Statement /^\s*-*\s*8<\s*-*\s*$/ " Line wrap crippled with numbers shown -au Filetype man set nonumber - - -"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Some plugin-specific settings +au Filetype man setlocal nonumber -au FileType markdown call RagtagInit() +au BufNewFile *.{h,hpp,hxx} call AddIncludeGuards() -let g:detectspelllang_langs = {} -let g:detectspelllang_langs.aspell =[ 'en_US', 'de_AT'] -au BufReadPost * :DetectIndent +au FileType cpp,c packadd termdebug -au BufEnter *.c* let b:fswitchlocs='reg:/lib/include/,rel:.' -au BufEnter *.h* let b:fswitchlocs='reg:/include/lib/,rel:.' -au BufEnter *.cpp,*.cc,*.cxx let b:fswitchdst='h,hxx,hpp,hh' -au BufEnter *.h,*.hh,*.hxx let b:fswitchdst='cc,c,cxx,cpp' - -:let g:org_todo_keywords = [['TODO(t)', 'WAITING(w)', '|', 'DONE(d)'], - \ ['|', 'OBSOLETE(o)', 'WONT(n)'], - \ ['CANCELED(c)']] - -let g:vimwiki_list = [{'path': '~/.vimwiki/', - \ 'template_path': '~/.vim/vimwiki/templates', - \ 'template_default': 'default', - \ 'template_ext': '.html'}] +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" General settings -"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" termdebug split windows +let g:termdebug_wide = 1 +let termdebugger = $HOME . '/.vim/gdb.sh' -runtime macros.vim -runtime keymaps.vim if filereadable($HOME . '/.vim/init-local.vim') source ~/.vim/init-local.vim