diff options
| author | Anton Bobov <abobov@gmail.com> | 2017-04-05 18:54:45 +0500 |
|---|---|---|
| committer | Anton Bobov <abobov@gmail.com> | 2017-04-05 18:54:45 +0500 |
| commit | 7090226094aa7443c07fb287b9d9be0ac74d2f79 (patch) | |
| tree | 16d2d6d437d932d1a4ac6347f63cdf2c41e3dade /files/.vimrc | |
| parent | 84584bb44df894fd57d44c61be684a86bd467399 (diff) | |
[vim] Set default buffer filetype to text.
Diffstat (limited to 'files/.vimrc')
| -rw-r--r-- | files/.vimrc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/files/.vimrc b/files/.vimrc index 8a8ac60..cc3617e 100644 --- a/files/.vimrc +++ b/files/.vimrc @@ -289,8 +289,10 @@ if has('autocmd') autocmd FileType python set expandtab autocmd FileType html,xml,ant set nolist + " Restore cursor position au BufReadPost * if line("'\.") > 0 && line("'\.") <= line("$") | exe 'normal g`.zvzz' | endif au BufRead,BufNewFile /etc/nginx/* if &ft == "" | setfiletype nginx | endif + au BufEnter * if &filetype == "" | setlocal ft=text | endif au BufReadPost *.ledger norm G " Set scripts to be executable from shell |
