From 75131ce1145cb4bb890649aefd00a394220a27eb Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sat, 19 Jun 2010 12:55:54 -0700 Subject: [PATCH] further work on vimrc --- vimrc | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/vimrc b/vimrc index 5a37021..635e8c6 100644 --- a/vimrc +++ b/vimrc @@ -109,7 +109,6 @@ endif set laststatus=2 set shortmess=atI if has('statusline') - set statusline=Editing:\ %r%t%m\ %=Location:\ Line\ %l/%L\ \ Col:\ %c\ (%p%%) set statusline=%<%F\ %r[%{&ff}]%y%m\ %=\ Line\ %l\/%L\ Col:\ %c\ (%P) endif @@ -145,7 +144,7 @@ if has('eval') elseif &t_Co == 88 call LoadColorScheme("wombat:zellner") else - call LoadColorScheme("zellner") + call LoadColorScheme("darkblue:zellner") endif endif @@ -242,13 +241,15 @@ endif " Append modeline after last line in buffer. " Use substitute() (not printf()) to handle '%%s' modeline in LaTeX files. -function! AppendModeline() - let save_cursor = getpos('.') - let append = ' vim: set ts='.&tabstop.' sw='.&shiftwidth.' tw='.&textwidth.': ' - $put =substitute(&commentstring, '%s', append, '') - call setpos('.', save_cursor) -endfunction -nnoremap ml :call AppendModeline() +if has('eval') + fun! AppendModeline() + let save_cursor = getpos('.') + let append = ' vim: set ts='.&tabstop.' sw='.&shiftwidth.' tw='.&textwidth.': ' + $put =substitute(&commentstring, '%s', append, '') + call setpos('.', save_cursor) + endfun + nnoremap ml :call AppendModeline() +endif " tab indents selection vmap >gv @@ -283,14 +284,14 @@ endif nmap K K " stolen from auctex.vim -function! EmacsKill() +fun! EmacsKill() if col(".") == strlen(getline(line(".")))+1 let @" = "\" return "\" else return "\D" endif -endfunction +endfun " some emacs-isms are OK map!