mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-04 06:57:23 +01:00
simplify autocmds
This commit is contained in:
8
vimrc
8
vimrc
@@ -358,12 +358,8 @@ autocmd BufEnter * :syntax sync fromstart
|
|||||||
"" Remember cursor position
|
"" Remember cursor position
|
||||||
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
||||||
|
|
||||||
"" txt, mail, human, tex
|
"" txt, mail, tex
|
||||||
au BufNewFile,BufRead *.txt set filetype=human
|
au FileType text,markdown,mail,tex set wrap wm=2 textwidth=78 nocindent spell
|
||||||
au FileType human,mail,tex set wrap wm=2 textwidth=78 nocindent spell
|
|
||||||
|
|
||||||
"" Markdown
|
|
||||||
au FileType markdown set wrap wm=2 textwidth=78 nocindent spell
|
|
||||||
|
|
||||||
"" Python
|
"" Python
|
||||||
au FileType python set noexpandtab
|
au FileType python set noexpandtab
|
||||||
|
|||||||
Reference in New Issue
Block a user