Skip to content

Instantly share code, notes, and snippets.

@nishim
Last active April 2, 2018 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishim/17a324294d5e444e9b7082c9a0ddb874 to your computer and use it in GitHub Desktop.
Save nishim/17a324294d5e444e9b7082c9a0ddb874 to your computer and use it in GitHub Desktop.
set autoread
set number
set incsearch
set hlsearch
"set nowrap
set ffs=unix,dos,mac
set encoding=utf-8
" set noswapfile
set nobackup
set viminfo='50,<1000,s100,\"50
set vb t_vb=
set ignorecase
set smartcase
set wrapscan
set autoindent
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set smartindent
set helplang=en
filetype plugin on
filetype indent on
if has("autocmd")
autocmd FileType html setlocal sw=2 sts=2 ts=2 et
autocmd FileType javascript setlocal sw=2 sts=2 ts=2 et
autocmd FileType jsx setlocal sw=2 sts=2 ts=2 et
endif
set clipboard=unnamed
syntax enable
colorscheme iceberg
set t_Co=256
" https://github.com/junegunn/vim-plug
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
" :PlugInstall
call plug#begin('~/.vim/plugged')
Plug 'plasticboy/vim-markdown'
Plug 'kannokanno/previm'
Plug 'tyru/open-browser.vim'
Plug 'othree/html5.vim'
Plug 'editorconfig/editorconfig-vim'
Plug 'leafgarland/typescript-vim'
Plug 'fatih/vim-go'
call plug#end()
au BufRead,BufNewFile *.md set filetype=markdown
let g:previm_open_cmd = 'open -a Safari'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment