aboutsummaryrefslogtreecommitdiff
path: root/files/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'files/.vimrc')
-rw-r--r--files/.vimrc2
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