Last active
July 16, 2019 13:40
-
-
Save arsaccol/a58063b79013b232b4042c31ce4036f6 to your computer and use it in GitHub Desktop.
vimrc file I've been using on Windows, putting it here as kind of a backup.
This file contains 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
set noswapfile | |
set autoindent | |
set smartindent | |
set splitbelow " absolutely | |
set splitright " blessed | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set textwidth=80 | |
set t_Co=256 | |
syntax on | |
set rnu " show relative line numbers | |
set showmatch | |
set comments=s1:/*,mb:\ *,elx:\ */ | |
set foldmethod=syntax | |
set backspace=indent,eol,start | |
colorscheme elflord | |
if has("gui_running") | |
if has("gui_win32") | |
set guifont=Hack:h9:cANSI | |
endif | |
" Disable gvim visual clutter | |
set guioptions-=T "toolbar | |
set guioptions-=m "menu bar | |
set guioptions-=r "scrollbar | |
endif | |
" Cesar syntax highlighting... sort of | |
au BufRead,BufNewFile *.ced set filetype=nasm | |
" TASM syntax highlighting for Intel 8086 | |
au BufRead,BufNewFile *.ASM set filetype=tasm | |
" Map Ctrl+S to save | |
" Warning: this might freeze up some terminals! | |
" Configure your terminal to pass Ctrl+S to the application! | |
" For actual Linux or WSL: add the line "stty -ixon" to ~/.bashrc | |
" or corresponding startup file so the terminal doesn't freeze with Control + S. | |
:nmap <c-s> :w<CR> | |
:imap <c-s> <Esc>:w<CR>a | |
" Map jj to Enter and jk to Esc, disable default keybindings | |
:inoremap jj <CR> | |
:inoremap jk <Esc> | |
:inoremap <CR> <Nop> | |
:inoremap <Esc> <Nop> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment