]> Sergey Matveev's repositories - dotfiles.git/blobdiff - vim/.vim/plugin/file_line.vim
HI flag
[dotfiles.git] / vim / .vim / plugin / file_line.vim
diff --git a/vim/.vim/plugin/file_line.vim b/vim/.vim/plugin/file_line.vim
deleted file mode 100644 (file)
index 65962d2..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-" Simplified version of http://www.vim.org/scripts/script.php?script_id=2184
-" that does not replace current window
-
-if exists("g:loaded_mein_file_line") | finish | endif
-let g:loaded_mein_file_line = 1
-
-function! s:gotoline()
-    let names = matchlist(bufname("%"), '\(.\{-1,}\):\%(\(\d\+\)\%(:\(\d*\):\?\)\?\)\?$')
-    if empty(names) | return | endif
-    let file_name = names[1]
-    let line_num = names[2] == "" ? "0" : names[2]
-    let col_num = names[3] == "" ? "0" : names[3]
-    if !filereadable(file_name) | return | endif
-    exec "keepalt edit +" . line_num . " " . file_name
-    exec "normal! " . col_num . "|"
-endfunction
-
-autocmd! BufNewFile *:* nested call s:gotoline()
-autocmd! BufRead *:* nested call s:gotoline()