-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
95 lines (75 loc) · 1.49 KB
/
.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
" Neovim defaults from noahfrederick/vim-neovim-defaults
filetype plugin indent on
syntax on
set autoindent
set autoread
set backspace=indent,eol,start
set complete-=i
set display=lastline
set encoding=utf-8
set formatoptions=tcqj
set history=10000
set hlsearch
set incsearch
set laststatus=2
set nrformats=hex
set sessionoptions-=options
set smarttab
set tabpagemax=50
set tags=./tags;,tags
set ttyfast
set viminfo+=!
set wildmenu
" End of neovim defaults
let mapleader = "\<space>"
"" Tab Settings
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set smarttab
set shiftround
set autoindent
set smartindent
"" Backup Settings
set nobackup
set nowritebackup
set noswapfile
"" Movement Settings
set relativenumber
"" Search Settings
set ignorecase
set smartcase
set incsearch
set hlsearch
set gdefault
noremap <leader>, :noh<cr>:call clearmatches()<cr>
nnoremap / /\v
vnoremap / /\v
nnoremap <c-l> ;
"" Window Settings
nnoremap <leader>v <c-w>v
nnoremap <leader>s <c-w>s
"" Mode Switch Settings
nnoremap ; :
inoremap jf <esc>
inoremap jk <esc>
inoremap kj <esc>
"" Folding
nnoremap <leader>z za
autocmd FileType text setlocal foldmethod=indent
"" Shortcuts (unabashed laziness)
nnoremap <leader>w :w<cr>
nnoremap <leader>e :e ~/
"" Buffer stuff
nnoremap <leader><leader> <c-^>
"" Registers and Macros
nnoremap Q @q
"" Display
"set background=dark
colorscheme desert
highlight ColorColumn ctermbg=237
set showmatch
set scrolloff=2
let &colorcolumn="81,".join(range(121,999),",")
set textwidth=80