-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d34f9d2
Showing
13 changed files
with
3,026 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
" Comments in Vimscript start with a `"`. | ||
|
||
" If you open this file in Vim, it'll be syntax highlighted for you. | ||
|
||
" Vim is based on Vi. Setting `nocompatible` switches from the default | ||
" Vi-compatibility mode and enables useful Vim functionality. This | ||
" configuration option turns out not to be necessary for the file named | ||
" '~/.vimrc', because Vim automatically enters nocompatible mode if that file | ||
" is present. But we're including it here just in case this config file is | ||
" loaded some other way (e.g. saved as `foo`, and then Vim started with | ||
" `vim -u foo`). | ||
set nocompatible | ||
|
||
" Turn on syntax highlighting. | ||
" syntax on | ||
|
||
" Disable the default Vim startup message. | ||
set shortmess+=I | ||
|
||
" Show line numbers. | ||
|
||
" set number | ||
|
||
" This enables relative line numbering mode. With both number and | ||
" relativenumber enabled, the current line shows the true line number, while | ||
" all other lines (above and below) are numbered relative to the current line. | ||
" This is useful because you can tell, at a glance, what count is needed to | ||
" jump up or down to a particular line, by {count}k to go up or {count}j to go | ||
" down. | ||
|
||
" set relativenumber | ||
|
||
" Always show the status line at the bottom, even if you only have one window open. | ||
set laststatus=2 | ||
|
||
" The backspace key has slightly unintuitive behavior by default. For example, | ||
" by default, you can't backspace before the insertion point set with 'i'. | ||
" This configuration makes backspace behave more reasonably, in that you can | ||
" backspace over anything. | ||
set backspace=indent,eol,start | ||
|
||
" By default, Vim doesn't let you hide a buffer (i.e. have a buffer that isn't | ||
" shown in any window) that has unsaved changes. This is to prevent you from " | ||
" forgetting about unsaved changes and then quitting e.g. via `:qa!`. We find | ||
" hidden buffers helpful enough to disable this protection. See `:help hidden` | ||
" for more information on this. | ||
set hidden | ||
|
||
" This setting makes search case-insensitive when all characters in the string | ||
" being searched are lowercase. However, the search becomes case-sensitive if | ||
" it contains any capital letters. This makes searching more convenient. | ||
set ignorecase | ||
set smartcase | ||
|
||
" Enable searching as you type, rather than waiting till you press enter. | ||
set incsearch | ||
|
||
" Unbind some useless/annoying default key bindings. | ||
nmap Q <Nop> " 'Q' in normal mode enters Ex mode. You almost never want this. | ||
|
||
" Disable audible bell because it's annoying. | ||
set noerrorbells visualbell t_vb= | ||
|
||
" Enable mouse support. You should avoid relying on this too much, but it can | ||
" sometimes be convenient. | ||
set mouse+=a | ||
|
||
"So I can move around in insert | ||
inoremap <C-k> <C-o>k | ||
inoremap <C-h> <C-o>h | ||
inoremap <C-l> <C-o>l | ||
inoremap <C-j> <C-o>j | ||
|
||
" Set indenting | ||
set tabstop=4 " tabs are at proper location | ||
set expandtab " don't use actual tab character (ctrl-v) | ||
set shiftwidth=4 " indenting is 4 spaces | ||
set autoindent " turns it on | ||
set smartindent " does the right thing (mostly) in programs | ||
set cindent " stricter rules for C programs | ||
|
||
" Enable True Color | ||
set termguicolors | ||
|
||
" Disable Mode showing | ||
|
||
" set noshowmode | ||
|
||
" Color schemes | ||
|
||
" Clear search pattern after search | ||
nnoremap <CR> :noh<CR><CR> | ||
|
||
" Makefile disable Space width | ||
autocmd FileType make setlocal noexpandtab | ||
|
||
" Press kj to exit to normal mode | ||
inoremap kj <esc> | ||
vnoremap kj <esc> |
Oops, something went wrong.