Group vim and neovim config files in folder “vim”
This commit is contained in:
parent
b8db145787
commit
d73f12605f
3 changed files with 16 additions and 19 deletions
14
vim/filetype.vim
Normal file
14
vim/filetype.vim
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
augroup filetypedetect
|
||||||
|
" Mail
|
||||||
|
autocmd BufRead,BufNewFile /tmp/evo* setfiletype mail
|
||||||
|
autocmd FileType mail setlocal colorcolumn=72
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
|
||||||
|
" Break lines for tex-files
|
||||||
|
augroup WrapLineInTeXFile
|
||||||
|
autocmd!
|
||||||
|
autocmd FileType tex setlocal wrap
|
||||||
|
autocmd FileType tex setlocal linebreak
|
||||||
|
autocmd FileType tex setlocal nonumber
|
||||||
|
augroup END
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
"filetype plugin on
|
filetype plugin on
|
||||||
syntax on
|
syntax on
|
||||||
set number
|
set number
|
||||||
set nowrap
|
set nowrap
|
||||||
set wildmode=longest,list
|
set wildmode=longest,list
|
||||||
set colorcolumn=80
|
set colorcolumn=80
|
||||||
:let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
:let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||||
|
set tabpagemax=500
|
||||||
|
|
||||||
" Indentation
|
" Indentation
|
||||||
set smartindent
|
set smartindent
|
||||||
|
|
@ -23,12 +24,3 @@ set smartcase
|
||||||
set listchars=tab:>-,trail:·
|
set listchars=tab:>-,trail:·
|
||||||
set list
|
set list
|
||||||
:nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
|
:nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
|
||||||
|
|
||||||
|
|
||||||
" Break lines for tex-files
|
|
||||||
augroup WrapLineInTeXFile
|
|
||||||
autocmd!
|
|
||||||
autocmd FileType tex setlocal wrap
|
|
||||||
autocmd FileType tex setlocal linebreak
|
|
||||||
autocmd FileType tex setlocal nonumber
|
|
||||||
augroup END
|
|
||||||
|
|
@ -23,12 +23,3 @@ set smartcase
|
||||||
set listchars=tab:>-,trail:·
|
set listchars=tab:>-,trail:·
|
||||||
set list
|
set list
|
||||||
:nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
|
:nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
|
||||||
|
|
||||||
|
|
||||||
" Break lines for tex-files
|
|
||||||
augroup WrapLineInTeXFile
|
|
||||||
autocmd!
|
|
||||||
autocmd FileType tex setlocal wrap
|
|
||||||
autocmd FileType tex setlocal linebreak
|
|
||||||
autocmd FileType tex setlocal nonumber
|
|
||||||
augroup END
|
|
||||||
Loading…
Reference in a new issue