Skip to content

Instantly share code, notes, and snippets.

@elliotwesoff
Created March 25, 2022 20:30
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 elliotwesoff/6ea9eb58518c0696a56e1b09612a616b to your computer and use it in GitHub Desktop.
Save elliotwesoff/6ea9eb58518c0696a56e1b09612a616b to your computer and use it in GitHub Desktop.
call plug#begin()
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'preservim/nerdtree'
Plug 'preservim/nerdcommenter'
Plug 'rking/ag.vim'
Plug 'vim-syntastic/syntastic'
Plug 'puremourning/vimspector'
Plug 'vim-ruby/vim-ruby'
Plug 'rafi/awesome-vim-colorschemes'
if has('nvim')
Plug 'Shougo/denite.nvim', { 'do': ':UpdateRemotePlugins' }
else
Plug 'Shougo/denite.nvim'
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
endif
call plug#end()
colorscheme desert
set nocompatible
set hidden
set wildmenu
set showcmd
set hlsearch
set ignorecase
set smartcase
set ruler
set autoindent
set nostartofline
set cursorline
set noswapfile
set nowrap
set confirm
set visualbell
set laststatus=2
set number
set shiftwidth=4
set softtabstop=4
set expandtab
set notimeout ttimeout ttimeoutlen=200
set nobackup
set nowritebackup
set cmdheight=2
set updatetime=300
set backspace=indent,eol,start
set runtimepath^=~/.vim/bundle/ctrlp.vim
set statusline+=%F%m
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
" use "+y to yank selection to system clipboard
" xclip must be installed when using X11
set clipboard+=unnamedplus
if has('mouse')
set mouse=a
endif
let mapleader = "," " map leader to comma
inoremap jj <Esc>
nmap qq :q<CR>
map tt :NERDTreeToggle<CR>
map <leader>, <plug>NERDCommenterToggle
map <F4> <plug>VimspectorStop
map <F5> <plug>VimspectorContinue
map <F6> <plug>VimspectorUpFrame
map <F7> <plug>VimspectorDownFrame
map <F8> <plug>VimspectorToggleBreakpoint
map <F9> <plug>VimspectorStepInto
map <F10> <plug>VimspectorStepOver
map <F11> <plug>VimspectorStepOut
map <F12> :VimspectorReset<CR>
" Syntastic settings
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_aggregate_errors = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_cpp_checkers = ['gcc']
let g:syntastic_c_checkers = ['gcc']
let g:syntastic_c_include_dirs = ['lib']
" NERDTree settings
let NERDTreeShowHidden=1
let g:NERDCommentEmptyLines = 1
let g:NERDTrimTrailingWhitespace = 1
let g:NERDSpaceDelims = 1
let g:NERDDefaultAlign = 'left'
" vimspector settings
let g:vimspector_install_gadgets = ['debugpy', 'vscode-cpptools']
" coc settings
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
autocmd CursorHold * silent call CocActionAsync('highlight')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment