Index

dotfiles / fec0f25

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
3003 Oct 2021 19:24a50a328Dotfiles updatesJosh Stockin1122G

Blob @ dotfiles / vimrc

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