Skip to content

Instantly share code, notes, and snippets.

@ColinSather
Last active September 5, 2021 17:35
Show Gist options
  • Select an option

  • Save ColinSather/bb0b607a124b46c6279d15cf406491e7 to your computer and use it in GitHub Desktop.

Select an option

Save ColinSather/bb0b607a124b46c6279d15cf406491e7 to your computer and use it in GitHub Desktop.
Colin's .vimrc file used in Vim for Windows 10
" 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