This repository has been archived by the owner on Apr 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vimrc
executable file
·67 lines (57 loc) · 1.83 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
version 6.0
set cpo&vim
set fileencodings=ucs-bom,utf-8,default,latin1
set helplang=en
filetype plugin on
set list listchars=tab:\|_,trail:.
set number
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set hlsearch
set incsearch
set backspace=2
syntax on
" NH shortcuts for hiding numbers
:command UCOPY set list <bar> set number <bar> set nopaste
:command COPY set nolist <bar> set nonumber <bar> set paste
map [ :COPY<CR>
map ] :UCOPY<CR>
" NH shortcuts for easily viewing TSVs
:command COL set tabstop=60 <bar> set nowrap
:command UNCOL set tabstop=4 <bar> set wrap
nmap <F9> :COL<CR>
nmap <F7> :UNCOL<CR>
" map \s to find/replace word under cursor
nnoremap <Leader>s :%s/\<<C-r><C-w>\>/
hi Tab guifg=green
" vim-plug
" ==============================================================================
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Specify directory for plugins
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
Plug 'junegunn/vim-plug'
Plug 'junegunn/vim-easy-align'
Plug 'mechatroner/rainbow_csv'
Plug 'SirVer/ultisnips'
Plug 'jrhawley/vim-snippets'
Plug 'tpope/vim-fugitive'
Plug 'bioSyntax/bioSyntax-vim'
call plug#end()
" vim-snippets
" ==============================================================================
let g:UltiSnipsExpandTrigger="<tab>"
let g:UltiSnipsJumpForwardTrigger="<c-b>"
let g:UltiSnipsJumpBackwardTrigger="<c-z>"
" If you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
" vim-airline-themes
" ==============================================================================
let g:airline_theme='violet'
let g:airline_solarized_bg='dark'