This repository has been archived by the owner on Apr 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
71 lines (57 loc) · 1.41 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
" Pathogen Plugin Manager
execute pathogen#infect()
" Syntax Hightlighting and Colors
syntax on
filetype on
au BufNewFile,BufRead *.pyx set filetype=python
set t_Co=256
set background=dark
set wildmenu
" Base16 Color Sheme
let base16colorspace=256 " Access colors present in 256 colorspace
colorscheme base16-default-dark
if filereadable(expand("~/.vimrc_background"))
source ~/.vimrc_background
endif
" Easier Navigation
"nnoremap <c-j> <c-w>j
"nnoremap <c-k> <c-w>k
"nnoremap <c-h> <c-w>h
"nnoremap <c-l> <c-w>l
"nnoremap <c-J> <c-w>r
"nnoremap <c-K> <c-w>R
"nnoremap <c-H> <c-w>H
"nnoremap <c-L> <c-w>L
" i3 integration
nnoremap <silent> <c-l> :call Focus('right', 'l')<CR>
nnoremap <silent> <c-h> :call Focus('left', 'h')<CR>
nnoremap <silent> <c-k> :call Focus('up', 'k')<CR>
nnoremap <silent> <c-j> :call Focus('down', 'j')<CR>
" Latex
nmap <Space>l :w \| !pdflatex %:p <CR>
set mouse=a
" Splits
set splitbelow
set splitright
" Tabs
set expandtab
set autoindent
set shiftwidth=4
set softtabstop=4
set tabstop=8
" Line endings
set colorcolumn=80
" Markdown for Note editor
command Md ! chromium --new-window %
" Relative Line Numbers
:set number relativenumber
:augroup numbertoggle
: autocmd!
: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
:augroup END
set cursorline
" Yank, Paste
:vmap <Space>y "+y
:nmap <Space>p "+p
:vmap <Space>p "+p