Skip to content

Instantly share code, notes, and snippets.

@adonis0147
Last active July 9, 2017 02:58
Show Gist options
  • Save adonis0147/7198982 to your computer and use it in GitHub Desktop.
Save adonis0147/7198982 to your computer and use it in GitHub Desktop.
Simple Config for gVim on Windows
colorscheme desert
set guifont=Courier\ New:h13
set guioptions-=T
set guioptions-=m
highlight MatchParen guibg=NONE guifg=red gui=bold
set number
set nobackup
set autoread
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set cindent
set smarttab
set expandtab
map <c-h> <c-w>h
map <c-j> <c-w>j
map <c-k> <c-w>k
map <c-l> <c-w>l
let mapleader=","
nnoremap <silent> <leader><cr> :noh<cr>
nnoremap <leader>e :quit<cr>
nnoremap <leader>E :qa!<cr>
nnoremap <leader>n :tabprevious<cr>
nnoremap <leader>m :tabnext<cr>
autocmd FileType c,cpp nmap <F9> :w<cr>:!g++ % -o %< && %<.exe<cr>
autocmd FileType c,cpp imap <F9> <esc>:w<cr>:!g++ % -o %< && %<.exe<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment