" See: http://stackoverflow.com/questions/8420354/vim-run-commands-in-my-bashrc
" set shellpipe=
" set shellcmdflag=-ic
-" NB 05.03.16 if !has("compatible")
-" NB 05.03.16 set shellcmdflag=
-" NB 05.03.16 set shell=/bin/bash\ -c
-" NB 05.03.16 "set shellcmdflag=-c
-" NB 05.03.16 "set shell=/bin/bash\ --rcfile\ ~/.bash_profile
-" NB 05.03.16 endif
let $PS1 = "\u@\h:" " See /etc/profile
for file in ["~/.profile", "~/.bash_profile", "~/.bashrc", "~/.zshrc", "/etc/profile"]
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" set nocompatible
set indentexpr=
-
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set indentkeys=
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set wildmenu
+""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" TABS
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set autoindent
set expandtab
\ endif
autocmd filetype crontab setlocal nobackup nowritebackup
+
+au BufNewFile,BufRead *.dump set filetype=sql
+++ /dev/null
-au BufNewFile,BufRead *.dump set filetype=sql
+++ /dev/null
-#!/usr/bin/perl
-BEGIN {
- ($VIM) = $0 =~ m,^(.*)-stdin$,;
- #$CMD = shift;
- %EXP = (
- 'globals' => ''
- );
- @LIST = `$VIM all_list`;
-}
-#die @LIST;
-#s/\$\(GLOB\|Page\|ADMIN_USER\|SEARCH_PAGE_NAME\|DB_CON\|MEMORY_DEBUG\|TRANSLATIONS\)/\$GLOBALS[\1]/g
-
-#my
-#open(VIM,"
-@IN = <>;
-#while (<>) { warn $_; }
-
-$i=1;
-print map { "[".($i++)."] $_" } @LIST;
-print "Enter your name and press [ENTER]: ";
-$i=<>;
-$CMD = $LIST[$i-1];
-die "$VIM:$CMD";
-
-open(VIM,"| $VIM all_stdin $CMD");
-
-foreach (@IN) {
- print VIM $_;
-}
-
"
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let $MYVIMRC = expand('<sfile>')
-" NB 19.01.18: infinite loop ?
-" NB 19.01.18 if empty(glob($VIMHOME)) && filereadable(expand('~/.vim'))
-" NB 19.01.18 let $VIMHOME = resolve(expand('~/.vim'))
-" NB 19.01.18 endif
-
-" NB 08.03.17: infinite loop when link on /etc/vim/vimrc.local
-" NB 08.03.17 if filereadable("/etc/vim/vimrc")
-" NB 08.03.17 source /etc/vim/vimrc
-" NB 08.03.17 endif
let $VIMHOME = fnamemodify(resolve(fnamemodify(expand('<sfile>'),':p')),':h').'/vim'
if &runtimepath !~ $VIMHOME