Index

dotfiles / f9b3a89

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
5705 Jan 2023 10:4163a17c6Remove unused vim pluginsJosh Stockin102G

Blob @ dotfiles / vimrc

text/plain2592 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>t :ter<CR>
33noremap <leader>r :so $MYVIMRC<CR>
34noremap <leader>1 1gt
35noremap <leader>2 2gt
36noremap <leader>3 3gt
37noremap <leader>4 4gt
38noremap <leader>5 5gt
39noremap <leader>6 6gt
40noremap <leader>7 7gt
41noremap <leader>8 8gt
42noremap <leader>9 9gt
43
44map <leader>n :NERDTreeToggle<CR>
45
46" Vim style configuration
47syntax on
48
49set showcmd
50set showmatch
51
52set number
53set numberwidth=4
54
55set tabstop=4
56set shiftwidth=4
57set smarttab
58set expandtab
59
60" Enable Plug plugins
61call plug#begin(expand('<sfile>:p:h') . '/plugged')
62
63Plug 'vim-airline/vim-airline'
64Plug 'vim-airline/vim-airline-themes'
65Plug 'sainnhe/sonokai'
66Plug 'tribela/vim-transparent'
67Plug 'tpope/vim-fugitive'
68Plug 'scrooloose/nerdtree'
69Plug 'ryanoasis/vim-devicons' "RMHEADLESS
70Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
71Plug 'bling/vim-bufferline'
72Plug 'airblade/vim-gitgutter'
73Plug 'jiangmiao/auto-pairs'
74Plug 'tpope/vim-surround'
75Plug 'sheerun/vim-polyglot'
76Plug 'meatballs/vim-xonsh'
77Plug 'valloric/matchtagalways'
78Plug 'godlygeek/tabular'
79
80call plug#end()
81
82
83" Automatically install any Plug plugins
84autocmd VimEnter *
85 \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
86 \| PlugInstall --sync
87 \| q
88 \| qa!
89 \| endif
90
91
92if (has("termguicolors"))
93 set termguicolors
94endif
95
96autocmd ColorScheme * highlight! link SignColumn LineNr
97autocmd ColorScheme * highlight Normal ctermbg=NONE guibg=NONE
98autocmd ColorScheme * highlight NonText ctermbg=NONE guibg=NONE
99autocmd ColorScheme * highlight VertSplit cterm=NONE ctermbg=NONE guibg=NONE
100autocmd ColorScheme * highlight LineNr ctermbg=NONE guibg=NONE
101
102let g:sonokai_style = 'atlantis'
103let g:sonokai_better_performance = 1
104
105colorscheme sonokai
106
107" Airline
108set laststatus=2
109let g:airline_powerline_fonts=1 "RMHEADLESS
110let g:airline_theme='sonokai'
111
112" Git Gutter
113let g:gitgutter_set_sign_backgrounds=1
114set updatetime=250
115
116" NERDTree
117let NERDTreeShowHidden=1
118