Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkale6ka committed Oct 18, 2011
1 parent e2cd24e commit 2f32d56
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugin/swap.vim
Expand Up @@ -13,11 +13,8 @@
if exists('g:loaded_swap') || &compatible || v:version < 700 if exists('g:loaded_swap') || &compatible || v:version < 700


if &compatible && &verbose if &compatible && &verbose

echo "Swap is not designed to work in compatible mode." echo "Swap is not designed to work in compatible mode."

elseif v:version < 700 elseif v:version < 700

echo "Swap needs Vim 7.0 or above to work correctly." echo "Swap needs Vim 7.0 or above to work correctly."
endif endif


Expand Down Expand Up @@ -123,7 +120,7 @@ function! s:Swap(mode) range
\'\ze[[:space:]]*\%' . col_end . 'c/\3\2\1/e' \'\ze[[:space:]]*\%' . col_end . 'c/\3\2\1/e'
endif endif


" Swap Words " Swap Words
elseif a:mode =~ 'n' elseif a:mode =~ 'n'


let save_cursor = getpos(".") let save_cursor = getpos(".")
Expand Down

0 comments on commit 2f32d56

Please sign in to comment.