Index

dotfiles / 696ac78

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
6316 Mar 2023 13:50696ac78Adjust scroll behavior, auto chdirJosh Stockin120G

Blob @ dotfiles / vimrc

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