Index

dotfiles / efb4d55

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
2122 Sep 2021 19:308085050Update dotfilesJosh Stockin188G

Blob @ dotfiles / vimrc

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