From b63127ac15af84d2171e5698ed5d6c1497d1a7a6 Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Sat, 25 Jan 2014 12:55:23 -0600 Subject: [PATCH] Remove ;; semicolon mapping. Messes with regular semicolon usage (find next char) --- vim/settings/yadr-append-semicolon.vim | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 vim/settings/yadr-append-semicolon.vim diff --git a/vim/settings/yadr-append-semicolon.vim b/vim/settings/yadr-append-semicolon.vim deleted file mode 100644 index 50a0a2a5..00000000 --- a/vim/settings/yadr-append-semicolon.vim +++ /dev/null @@ -1,13 +0,0 @@ -" If there isn't one, append a semi colon to the end of the current line. -function! s:appendSemiColon() - if getline('.') !~ ';$' - let original_cursor_position = getpos('.') - exec("s/$/;/") - call setpos('.', original_cursor_position) - endif -endfunction - -" For programming languages using a semi colon at the end of statement. -autocmd FileType c,cpp,css,java,javascript,perl,php,jade nmap ;; :call appendSemiColon() -autocmd FileType c,cpp,css,java,javascript,perl,php,jade inoremap ;; :call appendSemiColon()a -