Skip to content

Instantly share code, notes, and snippets.

@seoh
Created January 21, 2019 09:43
Show Gist options
  • Save seoh/1a16c0b37cb5c73235810caa9766cae0 to your computer and use it in GitHub Desktop.
Save seoh/1a16c0b37cb5c73235810caa9766cae0 to your computer and use it in GitHub Desktop.
call plug#begin('~/.vim/plugged')
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
Plug 'junegunn/vim-easy-align'
Plug 'junegunn/seoul256.vim'
Plug 'junegunn/goyo.vim'
Plug '/usr/local/opt/fzf'
Plug 'junegunn/fzf.vim'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'autozimu/languageclient-neovim'
Plug 'mattn/emmet-vim'
" programming languages
Plug 'tomlion/vim-solidity'
call plug#end()
" commons "
"""""""""""
set number
" Theme "
"""""""""
colorscheme seoul256
set tabstop=2
set shiftwidth=2
" NERDTree "
""""""""""""
map <C-n> :NERDTreeToggle<CR>
" lsp client "
""""""""""""""
set signcolumn=yes
let g:LanguageClient_autoStart = 1
let g:LanguageClient_serverCommands = {
\ 'scala': ['node', expand('~/bin/sbt-server-stdio.js')]
\ }
nnoremap <silent> gd :call LanguageClient_textDocument_definition()<CR>
" GUI "
"""""""
" from https://github.com/askedrelic/dotfiles/blob/4e153e51a8e7421f7b6cc5466398f46e1a9b57d0/.vimrc#L913
nnoremap <D-1> :tabn 1<CR>
nnoremap <D-2> :tabn 2<CR>
nnoremap <D-3> :tabn 3<CR>
nnoremap <D-4> :tabn 4<CR>
nnoremap <D-5> :tabn 5<CR>
nnoremap <D-6> :tabn 6<CR>
nnoremap <D-7> :tabn 7<CR>
nnoremap <D-8> :tabn 8<CR>
nnoremap <D-9> :tabn 9<CR>
" easy tab movement
nnoremap <D-[> :tabp<CR>
nnoremap <D-]> :tabn<CR>
@seoh
Copy link
Author

seoh commented Jan 21, 2019

to be shared between neovim and vim, use ln -s .config/nvim/init.vim .vimrc. but it can be raise some errors what i dont know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment