From 3620090aa28c628b7ea0f0e1325e5e494e0b1001 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Sun, 4 Nov 2012 18:22:31 -0500 Subject: [PATCH] couple tweaks and adding a status line --- .vimrc | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/.vimrc b/.vimrc index 0751f92..7e7b9b2 100644 --- a/.vimrc +++ b/.vimrc @@ -28,9 +28,9 @@ set hidden " remember more commands and search history set history=10000 set expandtab -set tabstop=4 -set shiftwidth=4 -set softtabstop=4 +set tabstop=2 +set shiftwidth=2 +set softtabstop=2 set autoindent set laststatus=2 set showmatch @@ -82,12 +82,17 @@ augroup vimrcEx autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif autocmd FileType ruby,haml,eruby,yaml,html,javascript,sass,cucumber set ai sw=2 sts=2 et - autocmd FileType python set sw=4 sts=4 et + autocmd FileType python set sw=2 sts=2 et " Indent p tags autocmd FileType html,eruby if g:html_indent_tags !~ '\\|p\>' | let g:html_indent_tags .= '\|p\|li\|dt\|dd' | endif augroup END +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" STATUS LINE +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +:set statusline=%<%f\ (%{&ft})\ %-4(%m%)%=%-19(%3l,%02c%03V%) + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " MISC KEY MAPS """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -100,18 +105,12 @@ imap => imap " Clear the search buffer (highlighting) when hitting return -:nnoremap :nohlsearch +function! MapCR() + nnoremap :nohlsearch +endfunction +call MapCR() nnoremap -"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" ARROW KEYS ARE UNACCEPTABLE -"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -map :echo "no!" -map :echo "no!" -map :echo "no!" -map :echo "no!" - - """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " MULTIPURPOSE TAB KEY """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""