Skip to content

Instantly share code, notes, and snippets.

@oxUnd
Created March 26, 2019 01:06
Show Gist options
  • Save oxUnd/a8395e420a1f7b99f810523a575777b0 to your computer and use it in GitHub Desktop.
Save oxUnd/a8395e420a1f7b99f810523a575777b0 to your computer and use it in GitHub Desktop.
veonim config
if exists('veonim')
" built-in plugin manager
Plug 'sheerun/vim-polyglot'
Plug 'tpope/vim-surround'
" extensions for web dev
let g:vscode_extensions = [
\'vscode.typescript-language-features',
\'vscode.css-language-features',
\'vscode.html-language-features',
\'ms-python.python',
\'ms-vscode.Go',
\'mgmcdermott.vscode-language-babel',
\]
" multiple nvim instances
nno <silent> <c-t>c :Veonim vim-create<cr>
nno <silent> <c-g> :Veonim vim-switch<cr>
nno <silent> <c-t>, :Veonim vim-rename<cr>
" workspace functions
nno <silent> ,f :Veonim files<cr>
nno <silent> ,e :Veonim explorer<cr>
nno <silent> ,b :Veonim buffers<cr>
nno <silent> ,d :Veonim change-dir<cr>
"or with a starting dir: nno <silent> ,d :Veonim change-dir ~/proj<cr>
" searching text
nno <silent> <space>fw :Veonim grep-word<cr>
vno <silent> <space>fw :Veonim grep-selection<cr>
nno <silent> <space>fa :Veonim grep<cr>
nno <silent> <space>ff :Veonim grep-resume<cr>
nno <silent> <space>fb :Veonim buffer-search<cr>
" language features
nno <silent> sr :Veonim rename<cr>
nno <silent> sd :Veonim definition<cr>
nno <silent> si :Veonim implementation<cr>
nno <silent> st :Veonim type-definition<cr>
nno <silent> sf :Veonim references<cr>
nno <silent> sh :Veonim hover<cr>
nno <silent> sl :Veonim symbols<cr>
nno <silent> so :Veonim workspace-symbols<cr>
nno <silent> sq :Veonim code-action<cr>
nno <silent> sk :Veonim highlight<cr>
nno <silent> sK :Veonim highlight-clear<cr>
nno <silent> ,n :Veonim next-usage<cr>
nno <silent> ,p :Veonim prev-usage<cr>
nno <silent> sp :Veonim show-problem<cr>
nno <silent> <c-n> :Veonim next-problem<cr>
nno <silent> <c-p> :Veonim prev-problem<cr>
" quick command
let mapleader = ','
nnoremap <LEADER>w :w<ENTER>
nnoremap <LEADER>q :q<ENTER>
" tab
" tab to space and size=4
set tabstop=4 shiftwidth=4 expandtab
" WINDOW // Move
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
set splitbelow
set splitright
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment