Last active
July 4, 2019 14:58
-
-
Save mjacobus/4d030dae3435b517981232f55ca43b76 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " 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