Last active
September 5, 2021 17:35
-
-
Save ColinSather/bb0b607a124b46c6279d15cf406491e7 to your computer and use it in GitHub Desktop.
Colin's .vimrc file used in Vim for Windows 10
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
| " This .vimrc file is designed for running gvim on Windows | |
| set backupdir=~/vimtmp//,. | |
| set directory=~/vimtmp//,. | |
| set backspace=indent,eol,start | |
| syntax on | |
| " Strike F9 to run python scripts in vim | |
| autocmd FileType python map <buffer> <F9> :w<CR>:exec '!python' shellescape(@%, 1)<CR> | |
| autocmd FileType python imap <buffer> <F9> <esc>:w<CR>:exec '!python' shellescape(@%, 1)<CR> | |
| set tabstop=4 | |
| " NERDTree shortcuts | |
| nmap <F2> :NERDTreeToggle<CR> | |
| " Toggle English spell checking | |
| nmap <F7> :set spell spelllang=en_us<CR> | |
| " Matchit plugin used for code block navigation [not working] | |
| runtime macros/matchit.vim | |
| " Run Powershell as shell command | |
| set shell=C:\\WINDOWS\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment