a bunch of vim changes
parent
65624da5a2
commit
1984ecc66a
50
vimrc
50
vimrc
|
@ -4,14 +4,43 @@ let &t_Co=256
|
||||||
""" Load plugins
|
""" Load plugins
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
Plug 'whatyouhide/vim-gotham'
|
Plug 'whatyouhide/vim-gotham'
|
||||||
|
Plug 'vim-airline/vim-airline'
|
||||||
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
"""" General Settings
|
"""" General Settings
|
||||||
|
"" leader
|
||||||
|
let mapleader=","
|
||||||
|
"" vim-airline
|
||||||
|
if !exists('g:airline_symbols')
|
||||||
|
let g:airline_symbols = {}
|
||||||
|
endif
|
||||||
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
|
let g:airline#extensions#tabline#left_sep = ' '
|
||||||
|
let g:airline#extensions#tabline#left_alt_sep = '|'
|
||||||
|
let g:airline#extensions#tabline#formatter = 'jsformatter'
|
||||||
|
let g:airline_left_sep = '»'
|
||||||
|
let g:airline_left_sep = '▶'
|
||||||
|
let g:airline_right_sep = '«'
|
||||||
|
let g:airline_right_sep = '◀'
|
||||||
|
let g:airline_symbols.linenr = '␊'
|
||||||
|
let g:airline_symbols.linenr = ''
|
||||||
|
let g:airline_symbols.linenr = '¶'
|
||||||
|
let g:airline_symbols.maxlinenr = ''
|
||||||
|
let g:airline_symbols.branch = '⎇'
|
||||||
|
let g:airline_symbols.paste = 'ρ'
|
||||||
|
let g:airline_symbols.paste = 'Þ'
|
||||||
|
let g:airline_symbols.paste = '∥'
|
||||||
|
let g:airline_symbols.spell = 'Ꞩ'
|
||||||
|
let g:airline_symbols.notexists = '∄'
|
||||||
|
let g:airline_symbols.whitespace = 'Ξ'
|
||||||
|
let g:airline_theme='jellybeans'
|
||||||
|
|
||||||
"" Set tabs to 4 spaces
|
"" Set tabs to 4 spaces
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set expandtab
|
set expandtab
|
||||||
"
|
|
||||||
"" Remember location in file
|
"" Remember location in file
|
||||||
if has("autocmd")
|
if has("autocmd")
|
||||||
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
||||||
|
@ -29,12 +58,25 @@ set background=dark
|
||||||
colorscheme gotham256
|
colorscheme gotham256
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
|
|
||||||
"" Fuzzy Finding
|
"" Ctags
|
||||||
set path+=**
|
set tags+=tags;/
|
||||||
set wildmenu
|
map <C-\> :vsp <CR>:exec("tag ".expand("<cword>"))<CR>
|
||||||
|
|
||||||
"" Window stuff
|
"" Window stuff
|
||||||
map <C-h> <C-w>h
|
map <C-h> <C-w>h
|
||||||
map <C-j> <C-w>j
|
map <C-j> <C-w>j
|
||||||
map <C-k> <C-w>k
|
map <C-k> <C-w>k
|
||||||
map <C-l> <C-w>l
|
map <C-l> <C-w>l
|
||||||
|
|
||||||
|
"" Buffer Stuff
|
||||||
|
noremap <leader>d : bd<CR>
|
||||||
|
noremap <leader>1 : 1b<CR>
|
||||||
|
noremap <leader>2 : 2b<CR>
|
||||||
|
noremap <leader>3 : 3b<CR>
|
||||||
|
noremap <leader>4 : 4b<CR>
|
||||||
|
noremap <leader>5 : 5b<CR>
|
||||||
|
noremap <leader>6 : 6b<CR>
|
||||||
|
noremap <leader>7 : 7b<CR>
|
||||||
|
noremap <leader>8 : 8b<CR>
|
||||||
|
noremap <leader>9 : 9b<CR>
|
||||||
|
noremap <leader>10 : 10b<CR>
|
||||||
|
|
Loading…
Reference in New Issue