Skip to content

Instantly share code, notes, and snippets.

@sakakendo
Last active April 5, 2020 05:51
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 sakakendo/fce11fe6f1153112ddc9f3601b644491 to your computer and use it in GitHub Desktop.
Save sakakendo/fce11fe6f1153112ddc9f3601b644491 to your computer and use it in GitHub Desktop.
vimrc

install dein vim

https://github.com/Shougo/dein.vim

curl https://raw.githubusercontent.com/Shougo/dein.vim/master/bin/installer.sh > installer.sh
# For example, we just use `~/.cache/dein` as installation directory
sh ./installer.sh ~/.cache/dein
inoremap <silent>jj <Esc>
"syntax on
"filetype on
set number
set hls
set nobackup
set noswapfile
set autoindent
set smartindent
set cindent
set smarttab
set expandtab
set tabstop=2
set shiftwidth=2
if has("autocmd")
filetype plugin on
filetype indent on
autocmd FileType js setlocal sw=2 sts=2 ts=2 et
autocmd FileType javascript setlocal sw=2 sts=2 ts=2 et
autocmd FileType python setlocal sw=4 sts=4 ts=4 et
autocmd FileType htmldjango setlocal sw=4 sts=4 ts=4 et
autocmd FileType html setlocal sw=2 sts=2 ts=2 et
autocmd FileType kotlin setlocal sw=4 sts=4 ts=4 et
autocmd FileType scss setlocal sw=4 sts=4 ts=4 et
endif
augroup vimrcEx
au BufRead * if line("'\"") > 0 && line("'\"") <= line("$") |
\exe "normal g`\"" |endif
augroup END
"kite
set statusline=%<%f\ %h%m%r%{kite#statusline()}%=%-14.(%l,%c%V%)\ %P
set laststatus=2
if &compatible
set nocompatible
endif
" dein.vim
set runtimepath+=/home/sakakendo/.cache/dein/repos/github.com/Shougo/dein.vim
" Required:
if dein#load_state('/home/sakakendo/.cache/dein')
call dein#begin('/home/sakakendo/.cache/dein')
call dein#add('/home/sakakendo/.cache/dein/repos/github.com/Shougo/dein.vim')
call dein#add('Townk/vim-autoclose')
call dein#add('leafgarland/typescript-vim')
call dein#add('udalov/kotlin-vim')
"call dein#add('Shougo/neosnippet.vim')
"call dein#add('Shougo/neosnippet-snippets')
call dein#end()
call dein#save_state()
endif
filetype plugin indent on
syntax enable
" If you want to install not installed plugins on startup.
"if dein#check_install()
" call dein#install()
"endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment