]> git.nbdom.net Git - nb.git/commitdiff
etc/vim/source/option.vim
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 9 Dec 2022 21:09:23 +0000 (22:09 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Fri, 9 Dec 2022 21:09:23 +0000 (22:09 +0100)
etc/vim/source/option.vim
etc/vim/source/tt.vim [deleted file]
etc/vim/vim-shortcurts-stdin [deleted file]
etc/vim/vim-shortcurts.new [deleted file]
etc/vimrc

index a6fb8a1e090eadf55da75e9dc67a2c3e17c8fc47..5cf9dce1121e3840df7031227d752f5441a6916c 100644 (file)
@@ -22,12 +22,6 @@ set history=1000
 " 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"]
@@ -41,8 +35,6 @@ endfor
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " set nocompatible
 set indentexpr=
-
-""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 set indentkeys=
 
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -51,6 +43,8 @@ set ttymouse=
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 set wildmenu
 
+""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
+" TABS
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 set autoindent
 set expandtab
@@ -140,3 +134,5 @@ autocmd BufReadPost *
   \ endif
 
 autocmd filetype crontab setlocal nobackup nowritebackup
+
+au BufNewFile,BufRead *.dump set filetype=sql
diff --git a/etc/vim/source/tt.vim b/etc/vim/source/tt.vim
deleted file mode 100644 (file)
index e726b42..0000000
+++ /dev/null
@@ -1 +0,0 @@
-au BufNewFile,BufRead *.dump set filetype=sql
diff --git a/etc/vim/vim-shortcurts-stdin b/etc/vim/vim-shortcurts-stdin
deleted file mode 100755 (executable)
index 795a709..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/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 $_;
-}
-
diff --git a/etc/vim/vim-shortcurts.new b/etc/vim/vim-shortcurts.new
deleted file mode 100755 (executable)
index e69de29..0000000
index 386327f99f2cd090a47373af8028c97328f665a6..687aef82543622e12feda52567f2b2ac354aacc6 100644 (file)
--- a/etc/vimrc
+++ b/etc/vimrc
@@ -5,15 +5,6 @@
 "
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 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