Index

dotfiles / 55e4e04

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
4713 Jul 2022 13:2255e4e04Update config for xonshJosh Stockin110G

Blob @ dotfiles / vimrc

text/plain2408 bytesdownload raw
1set nocompatible
2set t_RB=
3set t_RF=
4set t_u7=
5
6au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
7 \| exe "normal! g'\"" | endif
8
9" Formatting configuration
10filetype plugin indent on
11set spelllang=en_us
12set encoding=utf-8
13
14" Keyboard mapping
15let mapleader=" "
16set clipboard=unnamedplus
17
18inoremap jk <ESC>
19noremap <leader>w ^
20noremap <leader>e $
21noremap <leader>f <c-w>
22noremap <c-n> :tabnew<CR>
23noremap <leader><CR>1 :b1<CR>
24noremap <leader><CR>2 :b2<CR>
25noremap <leader><CR>3 :b3<CR>
26noremap <leader><CR>4 :b4<CR>
27noremap <leader><CR>5 :b5<CR>
28noremap <leader><CR>6 :b6<CR>
29noremap <leader><CR>7 :b7<CR>
30noremap <leader><CR>8 :b8<CR>
31noremap <leader><CR>9 :b9<CR>
32noremap <leader>1 1gt
33noremap <leader>2 2gt
34noremap <leader>3 3gt
35noremap <leader>4 4gt
36noremap <leader>5 5gt
37noremap <leader>6 6gt
38noremap <leader>7 7gt
39noremap <leader>8 8gt
40noremap <leader>9 9gt
41
42map <leader>n :NERDTreeToggle<CR>
43
44" Vim style configuration
45syntax on
46
47set showcmd
48set showmatch
49
50set number
51set numberwidth=4
52
53set tabstop=4
54set shiftwidth=4
55set smarttab
56set expandtab
57
58" Enable Plug plugins
59call plug#begin(expand('<sfile>:p:h') . '/plugged')
60
61Plug 'vim-airline/vim-airline'
62Plug 'mhartington/oceanic-next'
63Plug 'tribela/vim-transparent'
64Plug 'tpope/vim-fugitive'
65Plug 'scrooloose/nerdtree'
66Plug 'ryanoasis/vim-devicons' "RMHEADLESS
67Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
68Plug 'bling/vim-bufferline'
69Plug 'airblade/vim-gitgutter'
70Plug 'jiangmiao/auto-pairs'
71Plug 'tpope/vim-surround'
72Plug 'sheerun/vim-polyglot'
73Plug 'ervandew/supertab'
74Plug 'meatballs/vim-xonsh'
75
76call plug#end()
77
78
79" Automatically install any Plug plugins
80autocmd VimEnter *
81 \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
82 \| PlugInstall --sync
83 \| q
84 \| qa!
85 \| endif
86
87
88if (has("termguicolors"))
89 set termguicolors
90endif
91
92autocmd ColorScheme * highlight! link SignColumn LineNr
93autocmd ColorScheme * highlight Normal ctermbg=NONE guibg=NONE
94autocmd ColorScheme * highlight NonText ctermbg=NONE guibg=NONE
95autocmd ColorScheme * highlight VertSplit cterm=NONE ctermbg=NONE guibg=NONE
96autocmd ColorScheme * highlight LineNr ctermbg=NONE guibg=NONE
97
98colorscheme OceanicNext
99
100
101" Airline
102set laststatus=2
103let g:airline_powerline_fonts=1 "RMHEADLESS
104let g:airline_theme='oceanicnext'
105
106" Git Gutter
107let g:gitgutter_set_sign_backgrounds=1
108set updatetime=250
109
110" NERDTree
111let NERDTreeShowHidden=1
112