blob: 688a9bf18791254b9bc7808c65a568f9437d467f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
syntax on
filetype plugin indent on "load plugin and indent files associated a detected filetype
set backspace=indent,eol,start " more powerful backspacing
set nocompatible
set showmatch "highlights matching brackets on cursor hover
set tabstop=4
set shiftwidth=4
set expandtab
set ai
set number
set hlsearch
set ruler
set nohlsearch "highlights searches
set incsearch "incremental search (searches character by character)
set ignorecase "ignores the case of a search
set smartcase "only ignores case if there are no capital letters in search (only works after ignorecase has been set)
set splitbelow " split horiz below
set noswapfile
set nobackup
set splitright " split new to the right when doing vertical
set path+=**
set nocp
set t_Co=256
set grepprg=/usr/local/bin/ag
"" Quick Editing vimrc
nnoremap <leader>ev <C-w>s<C-w>j<C-w>L:e $MYVIMRC<cr>
" clear search highlights
nnoremap <leader><space> :noh<cr>:call clearmatches()<cr>
" manual highlights
set background=dark
colorscheme elflord
highlight Visual ctermfg=black ctermbg=LightMagenta
highlight Comment ctermfg=DarkGray
" ignore wrapping. you can move to the visual start of end of a line with `g0`
" and `g$`, respectively.
noremap j gj
noremap k gk
|