Skip to content

Instantly share code, notes, and snippets.

@sakakendo
Created December 30, 2019 07:23
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/f3f42d9bc9bb123d34e5f441e31fe0fb to your computer and use it in GitHub Desktop.
Save sakakendo/f3f42d9bc9bb123d34e5f441e31fe0fb to your computer and use it in GitHub Desktop.
nvimrc
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
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