Index

dotfiles / 1928370

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
2803 Oct 2021 21:5204c91faUpdate vim settings for remoteJosh Stockin11514G

Blob @ dotfiles / vimrc

text/plain1934 bytesdownload raw
1set nocompatible
2
3" Formatting configuration
4filetype plugin indent on
5set spelllang=en_us
6set encoding=utf-8
7
8" Keyboard mapping
9let mapleader=" "
10set clipboard=unnamedplus
11
12inoremap jk <ESC>
13noremap <leader>w ^
14noremap <leader>e $
15noremap <leader>f <c-w>
16noremap <c-n> :tabnew<CR>
17noremap <leader><CR>1 :b1<CR>
18noremap <leader><CR>2 :b2<CR>
19noremap <leader><CR>3 :b3<CR>
20noremap <leader><CR>4 :b4<CR>
21noremap <leader><CR>5 :b5<CR>
22noremap <leader><CR>6 :b6<CR>
23noremap <leader><CR>7 :b7<CR>
24noremap <leader><CR>8 :b8<CR>
25noremap <leader><CR>9 :b9<CR>
26noremap <leader>1 1gt
27noremap <leader>2 2gt
28noremap <leader>3 3gt
29noremap <leader>4 4gt
30noremap <leader>5 5gt
31noremap <leader>6 6gt
32noremap <leader>7 7gt
33noremap <leader>8 8gt
34noremap <leader>9 9gt
35
36map <leader>n :NERDTreeToggle<CR>
37
38" Vim style configuration
39syntax enable
40
41set showcmd
42set showmatch
43
44set number
45set numberwidth=4
46
47set tabstop=4
48set shiftwidth=4
49set smarttab
50set expandtab
51
52" Enable Plug plugins
53call plug#begin(expand('<sfile>:p:h') . '/plugged')
54
55Plug 'vim-airline/vim-airline'
56Plug 'mhartington/oceanic-next'
57Plug 'tpope/vim-fugitive'
58Plug 'scrooloose/nerdtree'
59Plug 'ryanoasis/vim-devicons' "RMHEADLESS
60Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
61Plug 'bling/vim-bufferline'
62Plug 'airblade/vim-gitgutter'
63Plug 'jiangmiao/auto-pairs'
64Plug 'tpope/vim-surround'
65Plug 'sheerun/vim-polyglot'
66Plug 'ervandew/supertab'
67
68call plug#end()
69
70
71" Automatically install any Plug plugins
72autocmd VimEnter *
73 \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
74 \| PlugInstall --sync
75 \| q
76 \| qa!
77 \| endif
78
79
80" Plugin configuration
81
82" Theme
83if (has("termguicolors"))
84 set termguicolors
85endif
86colorscheme OceanicNext
87
88" Airline
89set laststatus=2
90let g:airline_powerline_fonts=1 "RMHEADLESS
91let g:airline_theme='oceanicnext'
92
93highlight Normal ctermbg=NONE ctermfg=NONE term=NONE cterm=NONE gui=NONE
94
95
96" NERDTree
97let NERDTreeShowHidden=1
98