Skip to content

Commit 790197e

Browse files
author
Luander
committed
Add initial vimrc
1 parent 91a7e72 commit 790197e

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# vim
22
My vim configuration
3+
4+
# installing
5+
Just run `./install.sh` and open vim to install the plugins.

install.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#/bin/bash
2+
echo "Copying vimrc to ${HOME}/.vimrc"
3+
cp vimrc ${HOME}/.vimrc
4+
echo "Done!"

vimrc

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
" Functional changes
2+
3+
"Map ESC key to 'jk'
4+
inoremap jk <ESC>
5+
"Not sure of this one
6+
let mapleader = ","
7+
8+
"Identation, syntax and encoding
9+
filetype plugin indent on
10+
syntax on
11+
set encoding=utf-8
12+
13+
"Set to highlight search results
14+
set hlsearch
15+
16+
"Show line numbers
17+
set number
18+
19+
"Map the ':' to ';'
20+
noremap ; :
21+
22+
" vim-plug (https://github.com/junegunn/vim-plug) settings
23+
" Automatically install vim-plug and run PlugInstall if vim-plug not found
24+
if empty(glob('~/.vim/autoload/plug.vim'))
25+
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
26+
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
27+
autocmd VimEnter * PlugInstall | source $MYVIMRC
28+
endif
29+
30+
call plug#begin('~/.vim/plugged')
31+
Plug 'matze/vim-move'
32+
Plug 'tpope/vim-commentary'
33+
Plug 'sickill/vim-pasta'
34+
Plug 'justinmk/vim-sneak'
35+
Plug 'ervandew/supertab'
36+
Plug 'tpope/vim-surround'
37+
Plug 'tpope/vim-repeat'
38+
39+
Plug 'tpope/vim-fugitive'
40+
Plug 'gcavallanti/vim-noscrollbar'
41+
42+
Plug 'sts10/vim-mustard'
43+
44+
Plug 'vim-ruby/vim-ruby', { 'for': ['ruby', 'eruby'] }
45+
Plug 'tpope/vim-rails', { 'for': ['ruby', 'eruby'] }
46+
Plug 'nelstrom/vim-markdown-folding',{ 'for': 'markdown' }
47+
Plug 'dhruvasagar/vim-table-mode', { 'for': ['csv', 'xls', 'xlsx'] }
48+
Plug 'junegunn/goyo.vim', { 'for': ['markdown', 'html', 'text'] }
49+
Plug 'tpope/vim-markdown', { 'for': 'markdown' }
50+
51+
Plug 'othree/html5.vim'
52+
Plug 'sts10/vim-closed-captioning', { 'for': 'srt' }
53+
Plug 'vim-airline/vim-airline'
54+
Plug 'vim-airline/vim-airline-themes'
55+
56+
57+
call plug#end()
58+
59+
set statusline=%f
60+
set statusline+=\ %h%w%m%r
61+
set statusline+=%-17(%{exists('g:loaded_fugitive')?fugitive#statusline():''}\%)
62+
set statusline+=%=
63+
set statusline+=\ %{noscrollbar#statusline(9,'_','=')}
64+
set statusline+=\ %P/%L
65+
set statusline+=\
66+

0 commit comments

Comments
 (0)