Skip to content

Instantly share code, notes, and snippets.

@mjacobus
Last active July 4, 2019 14:58
Show Gist options
  • Select an option

  • Save mjacobus/4d030dae3435b517981232f55ca43b76 to your computer and use it in GitHub Desktop.

Select an option

Save mjacobus/4d030dae3435b517981232f55ca43b76 to your computer and use it in GitHub Desktop.
" basic vim setup for times we need to use vim remotely without any plugins
nnoremap <space>w :w<cr>
inoremap jj <esc>
nnoremap <space>x :! clear; ./%<cr>
nnoremap <leader>st <esc>:! clear && ./shell_test.sh<cr>
# autocmd FileType sh nnoremap <buffer> <leader>x <esc>:! clear && ./%<cr>
if exists("+undodir")
set undodir=~/.vimundodir
set undofile
if filewritable(&undodir) == 0
call mkdir(&undodir, "p")
endif
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment