-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
150 lines (112 loc) · 3.42 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
" This line should not be removed as it ensures that various options are
" properly set to work with the Vim-related packages available in Debian.
runtime! debian.vim
" Uncomment the next line to make Vim more Vi-compatible
" NOTE: debian.vim sets 'nocompatible'. Setting 'compatible' changes numerous
" options, so any other options should be set AFTER setting 'compatible'.
"set compatible
syntax enable
"
set path+=**
set wildmenu
set wildignore+=**/node_modules/**
set hidden
" }}}
"NO FISH!!!!
set shell=/bin/bash
"Mikes stuff in VIM"
" Helps force plug-ins to load correctly when it is turned back on below.
filetype off
" For plug-ins to load correctly.
filetype plugin indent on
" Format Options {{{
" Automatically wrap text that extends beyond the screen length.
set wrap
" set textwidth=79
"set formatoptions=tcqrn1
"set tabstop=2 not using tabs, supposedly helpful with java
set shiftwidth=4
set softtabstop=4
set expandtab
set noshiftround
" make break indents pretier
set showbreak=>>
set breakindentopt=shift:4
"make backspace behave comfortbly in insert mode.
set backspace=indent,eol,start
" }}}
" Display 5 lines above/below the cursor when scrolling with a mouse.
set scrolloff=5
" Speed up scrolling in Vim
set ttyfast
" Display options
set showmode
"set showcmd
" Highlight matching pairs of brackets. Use the % character to jump between them.
"set matchpairs+=<:>
" Display different types of white spaces.
set listchars=tab:›\ ,trail:•,extends:#,nbsp:.
set list
" Show line numbers
set number
set relativenumber
" Set status line display
set laststatus=2
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ [BUFFER=%n]\ %{strftime('%c')}
" Vexplore borwser to take up 1/4 of page
let g:netrw_winsize = 25
"open new file from netrw in a new hotizantal (2 if for vertical split
let g:netrw_browse_split = 1
"get rid of its ugly banner
let g:netrw_banner = 0
" Encoding
set encoding=utf-8
" Highlight matching search patterns
set hlsearch
" Enable incremental search
set incsearch
" Include matching uppercase words with lowercase search term
set ignorecase
"Scroll between tabs easily"
nnoremap <C-Left> :tabprevious<CR>
nnoremap <C-Right> :tabnext<CR>
nnoremap <C-j> :tabprevious<CR>
nnoremap <C-k> :tabnext<CR>
" move lines up and down
nnoremap <A-j> :m .+1<CR>==
nnoremap <A-k> :m .-2<CR>==
inoremap <A-j> <Esc>:m .+1<CR>==gi
inoremap <A-k> <Esc>:m .-2<CR>==gi
vnoremap <A-j> :m '>+1<CR>gv=gv
vnoremap <A-k> :m '<-2<CR>gv=gv
" <Ctrl-l> redraws the screen and removes any search highlighting.
nnoremap <silent> <C-l> :nohl<CR><C-l>
"jj esc
imap jj <Esc>
";; to save and esc when in insert or normal mode"
nnoremap ;; <Esc>:w<CR>
imap ;; <Esc>:w<CR>
"COMMENTED OUT BC NOT SURE IF WORKING WELL dont let mac clipboard override y and p
noremap <Leader>y "0y
noremap <Leader>p "0p
"noremap <Leader>Y "+y
"noremap <Leader>P "+p
set termguicolors
"colorscheme rigel
let g:rigel_airline = 1
let g:airline_theme = 'rigel'
let g:rigel_lightline = 1
"let g:lightline = { 'colorscheme': 'rigel' }
set background=dark
"No swp files
set nobackup
set noswapfile
set noundofile
" Nice solution to o's putting you into insert mode : 3/o gives you 3 new
" lines below!
nnoremap <silent> <leader>o :<C-u>call append(line("."), repeat([""], v:count1))<CR>
nnoremap <silent> <leader>O :<C-u>call append(line(".")-1, repeat([""], v:count1))<CR>
"FUNCTIONS
"format jsons
com! FormatJSON %!python -m json.tool
"End of Mikes stuff"