Skip to content

Instantly share code, notes, and snippets.

@geetduggal
Last active September 30, 2024 22:58
Show Gist options
  • Select an option

  • Save geetduggal/d9702695b96b13532a291d74f7a38e38 to your computer and use it in GitHub Desktop.

Select an option

Save geetduggal/d9702695b96b13532a291d74f7a38e38 to your computer and use it in GitHub Desktop.
" curl https://gist.githubusercontent.com/geetduggal/d9702695b96b13532a291d74f7a38e38/raw >> ~/.vimrc
syntax on
" Basic space and tab preferences
set ts=4
set sw=4
set expandtab
" Get rid of typically undesirable whitespace
if has("autocmd")
" remove trailing white spaces
autocmd BufWritePre * :%s/\s\+$//e
endif
" Handle Streamline appropriately
au BufRead,BufNewFile *._js setfiletype javascript
autocmd! BufRead,BufNewFile *.cwl setfiletype yaml
autocmd! BufRead,BufNewFile *.tf setfiletype javascript
" Better tab completion of file lists
set wildmode=longest,list
" Set the colorscheme
colo koehler
highlight VertSplit guifg=white guibg=#333333 ctermfg=white ctermbg=black
highlight StatusLine guifg=white guibg=#333333 ctermfg=white ctermbg=black
highlight StatusLineNC guifg=white guibg=#333333 ctermfg=white ctermbg=black
set fillchars=vert:\ ,fold:-,eob:\ ,lastline:\ ,
set noswapfile
" Set noexpandtab for Makefiles
autocmd FileType make setlocal noexpandtab
" Set noexpandtab for TSV files
autocmd BufRead,BufNewFile *.tsv setlocal noexpandtab
autocmd BufRead,BufNewFile *.tsv setlocal nowrap
function! Write()
set foldcolumn=8
set columns=100
set linebreak
endfunction
command! Write call Write()
" Better tab completion of file lists
set wildmode=longest,list
" Set the colorscheme
colo koehler
highlight VertSplit guifg=black guibg=black ctermfg=black ctermbg=black
highlight StatusLine guifg=black guibg=black ctermfg=black ctermbg=black
highlight StatusLineNC guifg=black guibg=black ctermfg=black ctermbg=black
set fillchars=vert:\ ,fold:-,eob:\ ,lastline:\ ,
set laststatus=0
set noswapfile
" Set noexpandtab for Makefiles
autocmd FileType make setlocal noexpandtab
" Set noexpandtab for TSV files
autocmd BufRead,BufNewFile *.tsv setlocal noexpandtab
autocmd BufRead,BufNewFile *.tsv setlocal nowrap
function! Write()
set foldcolumn=8
set columns=100
set linebreak
endfunction
command! Write call Write()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment