Index

dotfiles / ca87b70

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
2703 Oct 2021 20:19ca87b70Fix minesweeper install, headless vim color schemeJosh Stockin165G

Blob @ dotfiles / vimrc

text/plain2009 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'
59Plug 'tribela/vim-transparent'
60Plug 'tpope/vim-fugitive'
61Plug 'scrooloose/nerdtree'
62Plug 'ryanoasis/vim-devicons' "RMHEADLESS
63Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
64Plug 'bling/vim-bufferline'
65Plug 'airblade/vim-gitgutter'
66Plug 'jiangmiao/auto-pairs'
67Plug 'tpope/vim-surround'
68Plug 'sheerun/vim-polyglot'
69Plug 'ervandew/supertab'
70
71call plug#end()
72
73
74" Automatically install any Plug plugins
75autocmd VimEnter *
76 \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
77 \| PlugInstall --sync | q
78 \| qa!
79 \| endif
80
81
82" Plugin configuration
83
84" Theme
85if (has("termguicolors")) "RMHEADLESS
86 set termguicolors "RMHEADLESS
87endif "RMHEADLESS
88colorscheme OceanicNext
89
90" Airline
91set laststatus=2
92let g:airline_powerline_fonts=1 "RMHEADLESS
93let g:airline_theme='oceanicnext'
94
95" NERDTree
96let NERDTreeShowHidden=1
97