Skip to content

Instantly share code, notes, and snippets.

@bagaag
Last active February 24, 2020 13:45
Show Gist options
  • Save bagaag/479466289f07e8a9367e to your computer and use it in GitHub Desktop.
Save bagaag/479466289f07e8a9367e to your computer and use it in GitHub Desktop.
.vimrc
set number
set swapfile
set dir=c:/temp
colorscheme slate
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
set backspace=2
set backspace=indent,eol,start
if has("gui_running")
set guioptions-=T "remove toolbar
set lines=34 columns=100
if has("gui_gtk2")
set guifont=Inconsolata\ 12
elseif has("gui_win32")
set guifont=Consolas:h12:cANSI
endif
endif
com! -nargs=1 Note :execute "e G:/My\ Drive/Notes/" . strftime("%Y-%m-%d") . "-" . "<args>.txt"
com! Notes :e G:/My\ Drive/Notes
com! Hosts :e \Windows\System32\drivers\etc\hosts
" install vim-plug (note: for Windows, it should go in ~/vimfiles/autoload
" instead of ~/.vim/autoload)
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
Plug 'OmniSharp/omnisharp-vim'
call plug#end()
" disable beep
set noeb vb t_vb=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment