Index

dotfiles / b45478f

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
3407 Oct 2021 21:23cde0b94Fix styling issuesJosh Stockin11411G

Blob @ dotfiles / vimrc

text/plain2381 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'
74
75call plug#end()
76
77
78" Automatically install any Plug plugins
79autocmd VimEnter *
80 \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
81 \| PlugInstall --sync
82 \| q
83 \| qa!
84 \| endif
85
86
87if (has("termguicolors"))
88 set termguicolors
89endif
90
91autocmd ColorScheme * highlight! link SignColumn LineNr
92autocmd ColorScheme * highlight Normal ctermbg=NONE guibg=NONE
93autocmd ColorScheme * highlight NonText ctermbg=NONE guibg=NONE
94autocmd ColorScheme * highlight VertSplit cterm=NONE ctermbg=NONE guibg=NONE
95autocmd ColorScheme * highlight LineNr ctermbg=NONE guibg=NONE
96
97colorscheme OceanicNext
98
99
100" Airline
101set laststatus=2
102let g:airline_powerline_fonts=1 "RMHEADLESS
103let g:airline_theme='oceanicnext'
104
105" Git Gutter
106let g:gitgutter_set_sign_backgrounds=1
107set updatetime=250
108
109" NERDTree
110let NERDTreeShowHidden=1
111