Index

dotfiles / 2f6c478

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
327 Nov 2019 21:142f6c478Update buffer switching to be mapped to leader and enterJosh Stockin190N

Blob @ dotfiles / vimrc

text/plain1669 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 <leader><CR>1 :b1<CR>
15noremap <leader><CR>2 :b2<CR>
16noremap <leader><CR>3 :b3<CR>
17noremap <leader><CR>4 :b4<CR>
18noremap <leader><CR>5 :b5<CR>
19noremap <leader><CR>6 :b6<CR>
20noremap <leader><CR>7 :b7<CR>
21noremap <leader><CR>8 :b8<CR>
22noremap <leader><CR>9 :b9<CR>
23noremap <leader>1 1gt
24noremap <leader>2 2gt
25noremap <leader>3 3gt
26noremap <leader>4 4gt
27noremap <leader>5 5gt
28noremap <leader>6 6gt
29noremap <leader>7 7gt
30noremap <leader>8 8gt
31noremap <leader>9 9gt
32
33map <leader>n :NERDTreeToggle<CR>
34
35" Vim style configuration
36syntax on
37
38set showcmd
39set showmatch
40
41set number
42set numberwidth=6
43highlight LineNr term=bold ctermfg=grey
44
45set tabstop=4
46set shiftwidth=4
47set smarttab
48
49highlight VertSplit ctermbg=NONE ctermfg=NONE term=NONE cterm=NONE gui=NONE
50
51
52" Enable Plug plugins
53call plug#begin('~/.vim/plugged')
54
55Plug 'vim-airline/vim-airline'
56Plug 'vim-airline/vim-airline-themes'
57Plug 'tpope/vim-fugitive'
58Plug 'scrooloose/nerdtree'
59Plug 'ryanoasis/vim-devicons'
60Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
61Plug 'vim-syntastic/syntastic'
62Plug 'bling/vim-bufferline'
63
64call plug#end()
65
66
67" Automatically install any Plug plugins
68autocmd VimEnter *
69 \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
70 \| PlugInstall --sync | q
71 \| qa!
72 \| endif
73
74
75" Plugin configuration
76
77" Airline
78set laststatus=2
79let g:airline_powerline_fonts=1
80autocmd VimEnter * AirlineTheme deus
81
82" NERDTree
83let NERDTreeShowHidden=1
84