-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvimrc
57 lines (48 loc) · 1017 Bytes
/
vimrc
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
" This file represents a minimal .vimrc for use where I won't have access to
" the latest version of neovim. It is intentially void of plugins, the whole
" idea is that I want to be able to hit the ground running on it on any
" machine.
" Layout {{{
syntax on
filetype plugin indent on
set relativenumber
set number
set list
set listchars=tab:▶\ ,trail:·
set ruler
set wrap
set textwidth=79
set scrolloff=8
set tabstop=2
" }}}
" Other settings {{{
set path+=**
set background=dark
set mouse=a
set encoding=utf-8
set noswapfile
set fileformat=unix
set hidden
set hlsearch
set showmatch
set shortmess=a
set cmdheight=1
set ignorecase
set smartcase
set incsearch
set splitbelow
set lazyredraw
" }}}
" Mappings {{{
let mapleader=";"
let maplocalleader="\<Space>"
nmap Q <nop>
nnoremap <leader>fl :vimgrep **/*<Left><Left><Left><Left><Left>
nnoremap <leader>qo :copen
nnoremap <leader>qc :cclose
nnoremap ]q :cnext
nnoremap [q :cprev
nnoremap H :cnext
nnoremap L :cprev
nnoremap <Leader>d :Ex<CR>
" }}}