Index

dotfiles / e9f442b

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
2119 Aug 2021 21:01e9f442bCreate separate vimrc for remote serverJosh Stockin1820G

Blob @ dotfiles / vimrc-remote

text/plain1561 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=4
44
45set tabstop=4
46set shiftwidth=4
47set smarttab
48set expandtab
49
50
51" Enable Plug plugins
52call plug#begin('~/.vim/plugged')
53
54Plug 'vim-airline/vim-airline'
55Plug 'tpope/vim-fugitive'
56Plug 'scrooloose/nerdtree'
57Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
58Plug 'bling/vim-bufferline'
59Plug 'airblade/vim-gitgutter'
60Plug 'jiangmiao/auto-pairs'
61Plug 'tpope/vim-surround'
62Plug 'sheerun/vim-polyglot'
63Plug 'ervandew/supertab'
64
65call plug#end()
66
67
68" Automatically install any Plug plugins
69autocmd VimEnter *
70 \ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
71 \| PlugInstall --sync | q
72 \| qa!
73 \| endif
74
75
76" Plugin configuration
77
78" Airline
79set laststatus=2
80
81" NERDTree
82let NERDTreeShowHidden=1
83