Last active
September 28, 2020 22:21
-
-
Save Rud5G/2316255 to your computer and use it in GitHub Desktop.
Revisions
-
Rud5G renamed this gist
Sep 28, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Rud5G revised this gist
Sep 28, 2020 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -42,6 +42,8 @@ autocmd BufWritePre *.rb :%s/\s\+$//e autocmd BufWritePre *.xml :%s/\s\+$//e autocmd BufWritePre *.yml :%s/\s\+$//e autocmd Filetype gitcommit setlocal spell textwidth=72 " Bash aliases au BufNewFile,BufRead .bash_aliases call SetFileTypeSH("bash") -
Rud5G revised this gist
Sep 15, 2014 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ " " https://gist.github.com/Rud5G/2316255 " " mkdir -p ~/.vim/{backup,syntax,tmp} " @@ -33,9 +35,12 @@ syntax on " Remove unwanted spaces autocmd BufWritePre *.css :%s/\s\+$//e autocmd BufWritePre *.conf :%s/\s\+$//e autocmd BufWritePre *.md :%s/\s\+$//e autocmd BufWritePre *.php :%s/\s\+$//e autocmd BufWritePre *.rb :%s/\s\+$//e autocmd BufWritePre *.xml :%s/\s\+$//e autocmd BufWritePre *.yml :%s/\s\+$//e " Bash aliases -
Rud5G revised this gist
May 30, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,9 +37,11 @@ autocmd BufWritePre *.php :%s/\s\+$//e autocmd BufWritePre *.rb :%s/\s\+$//e autocmd BufWritePre *.xml :%s/\s\+$//e " Bash aliases au BufNewFile,BufRead .bash_aliases call SetFileTypeSH("bash") " Varnish syntax au BufRead,BufNewFile *.vcl :set ft=vcl " au! Syntax vcl source ~/.vim/syntax/vcl.vim -
Rud5G revised this gist
May 30, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,6 +37,8 @@ autocmd BufWritePre *.php :%s/\s\+$//e autocmd BufWritePre *.rb :%s/\s\+$//e autocmd BufWritePre *.xml :%s/\s\+$//e " Bash aliases au BufNewFile,BufRead .bash_aliases call SetFileTypeSH("bash") " Varnish syntax au BufRead,BufNewFile *.vcl :set ft=vcl -
Rud5G revised this gist
May 23, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,6 +34,7 @@ syntax on " Remove unwanted spaces autocmd BufWritePre *.css :%s/\s\+$//e autocmd BufWritePre *.php :%s/\s\+$//e autocmd BufWritePre *.rb :%s/\s\+$//e autocmd BufWritePre *.xml :%s/\s\+$//e -
Rud5G revised this gist
Jan 17, 2013 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -39,10 +39,11 @@ autocmd BufWritePre *.xml :%s/\s\+$//e " Varnish syntax au BufRead,BufNewFile *.vcl :set ft=vcl " au! Syntax vcl source ~/.vim/syntax/vcl.vim " Varnish syntax, download: " http://cvs.pld-linux.org/cgi-bin/viewvc.cgi/cvs/packages/vim-syntax-vcl/vcl.vim?view=markup " uncomment: au! Syntax vcl source ~/.vim/syntax/vcl.vim " http://vim.wikia.com/wiki/Remove_unwanted_spaces " autocmd FileType c,cpp,java,php autocmd BufWritePre <buffer> :%s/\s\+$//e -
Rud5G revised this gist
Jan 17, 2013 . 1 changed file with 14 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,7 @@ " " mkdir -p ~/.vim/{backup,syntax,tmp} " set autoindent " lines following an indented line will have the same indentation as the previous line. set expandtab " resplace tabs with actuall spaces set shiftwidth=4 " softtabs width 4. @@ -8,7 +12,7 @@ set background=dark " duh. set backup " keep a backup file set backupdir=~/.vim/backup " location backup files set directory=~/.vim/tmp " location tmp files " execute: mkdir -p ~/.vim/{backup,syntax,tmp} set foldmethod=manual " manual is default, syntax set history=350 " keep 350 lines of command line history set hlsearch @@ -27,10 +31,19 @@ set wildmode=list:longest,full syntax on " Remove unwanted spaces autocmd BufWritePre *.css :%s/\s\+$//e autocmd BufWritePre *.php :%s/\s\+$//e autocmd BufWritePre *.xml :%s/\s\+$//e " Varnish syntax au BufRead,BufNewFile *.vcl :set ft=vcl au! Syntax vcl source ~/.vim/syntax/vcl.vim " Varnish syntax, download: " http://cvs.pld-linux.org/cgi-bin/viewvc.cgi/cvs/packages/vim-syntax-vcl/vcl.vim?view=markup " http://vim.wikia.com/wiki/Remove_unwanted_spaces " autocmd FileType c,cpp,java,php autocmd BufWritePre <buffer> :%s/\s\+$//e -
Rud5G revised this gist
Oct 19, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ set backup " keep a backup file set backupdir=~/.vim/backup " location backup files set directory=~/.vim/tmp " location tmp files " execute: mkdir -p ~/.vim/{backup,tmp} set foldmethod=manual " manual is default, syntax set history=350 " keep 350 lines of command line history set hlsearch set ignorecase smartcase " case-insensitvice search unless upper-case letters -
Rud5G revised this gist
Jul 5, 2012 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,7 @@ set background=dark " duh. set backup " keep a backup file set backupdir=~/.vim/backup " location backup files set directory=~/.vim/tmp " location tmp files " execute: mkdir -p ~/.vim/{backup,tmp} set foldmethod=syntax set history=350 " keep 350 lines of command line history set hlsearch @@ -26,6 +27,7 @@ set wildmode=list:longest,full syntax on autocmd BufWritePre *.css :%s/\s\+$//e autocmd BufWritePre *.php :%s/\s\+$//e autocmd BufWritePre *.xml :%s/\s\+$//e -
Rud5G revised this gist
Apr 6, 2012 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -32,6 +32,8 @@ autocmd BufWritePre *.xml :%s/\s\+$//e " http://vim.wikia.com/wiki/Remove_unwanted_spaces " autocmd FileType c,cpp,java,php autocmd BufWritePre <buffer> :%s/\s\+$//e " Mastering the VI editor " http://www.eng.hawaii.edu/Tutor/vi.html " set wrap " set linebreak -
Rud5G created this gist
Apr 6, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,48 @@ set autoindent " lines following an indented line will have the same indentation as the previous line. set expandtab " resplace tabs with actuall spaces set shiftwidth=4 " softtabs width 4. set tabstop=4 " tabs are 4 spaces " those 4 are needed to use :%retab set background=dark " duh. set backup " keep a backup file set backupdir=~/.vim/backup " location backup files set directory=~/.vim/tmp " location tmp files set foldmethod=syntax set history=350 " keep 350 lines of command line history set hlsearch set ignorecase smartcase " case-insensitvice search unless upper-case letters set laststatus=2 set nocompatible set showcmd " display incomplete commands set showmatch set showmode set smartcase set statusline=%<[%n]\ %F\ %m%r%y%=%-14.(%l,%c%V%)\ %P set timeoutlen=500 set textwidth=120 " i want 120 chars of text. set wildmenu set wildmode=list:longest,full syntax on autocmd BufWritePre *.php :%s/\s\+$//e autocmd BufWritePre *.xml :%s/\s\+$//e " http://vim.wikia.com/wiki/Remove_unwanted_spaces " autocmd FileType c,cpp,java,php autocmd BufWritePre <buffer> :%s/\s\+$//e " set wrap " set linebreak " set showbreak=>\ \ \ " set fileformats=unix,dos,mac " support all three, in this order " set smartindent " set cindent " set noexpandtab " set tabstop=4 " set softtabstop=4 " set si " "the_END