Index

dotfiles / b0b7510

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
621 Jan 2020 18:222cb5c41Use a new GTK and Vim theme, Ctrl+N hook on vimJosh Stockin193N

Blob @ dotfiles / vimrc

text/plain1739 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=6
44highlight LineNr term=bold ctermfg=grey
45
46set tabstop=4
47set shiftwidth=4
48set smarttab
49
50highlight VertSplit ctermbg=NONE ctermfg=NONE term=NONE cterm=NONE gui=NONE
51
52
53" Enable Plug plugins
54call plug#begin('~/.vim/plugged')
55
56Plug 'vim-airline/vim-airline'
57Plug 'mhartington/oceanic-next'
58Plug 'tpope/vim-fugitive'
59Plug 'scrooloose/nerdtree'
60Plug 'ryanoasis/vim-devicons'
61Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
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" Theme
78if (has("termguicolors"))
79 set termguicolors
80endif
81colorscheme OceanicNext
82
83" Airline
84set laststatus=2
85let g:airline_powerline_fonts=1
86let g:airline_theme='oceanicnext'
87
88" NERDTree
89let NERDTreeShowHidden=1
90