1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103 | " below fixes bug with fish and vundle
set shell=/bin/bash
" needed for markdown-instant
filetype plugin on
set nocompatible " be iMproved, required
filetype off " required
set mouse=a
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'easymotion/vim-easymotion'
Plugin 'vim-scripts/ScrollColors'
Plugin 'flazz/vim-colorschemes'
Plugin 'suan/vim-instant-markdown'
Plugin 'fholgado/minibufexpl.vim'
Plugin 'bufexplorer.zip'
Plugin 'junegunn/fzf'
Plugin 'chrisbra/Recover.vim'
Plugin 'mileszs/ack.vim'
Plugin 'jeetsukumaran/vim-buffergator'
" Plugin 'powerline/powerline'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
" filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
" "--------------------------------------------------------------------------
" -- ( KEYMAPS ) -----------------------------------------------------------
colorscheme badwolf
" " change the mapleader from \ to ,
let mapleader=","
" Quickly edit/reload the vimrc file
nnoremap <silent> <leader>ev :e $MYVIMRC<CR>
" Source .vimrc
nnoremap <silent> <leader>rv :so $MYVIMRC<CR>
nnoremap <leader>NN :NERDTreeToggle<CR>
nnoremap <silent><F3> :NEXTCOLOR<cr>
nnoremap <silent><F2> :PREVCOLOR<cr>
" These two mappings are to help me learn not to use escape and
" instead use "jk" to exit insert mode.
inoremap jk <esc>
" inoremap <esc> <nop>
" From https://bitbucket.org/sjl/dotfiles/src/tip/vim/vimrc
" Keep search matches in the middle of the window.
nnoremap n nzzzv
nnoremap N Nzzzv
" "--------------------------------------------------------------------------
set background=dark
set hidden
set nowrap " don't wrap lines
set tabstop=4 " a tab is four spaces
set backspace=indent,eol,start " allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
set number " always show line numbers
set shiftwidth=4 " number of spaces to use for autoindenting
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set showmatch " set show matching parenthesis
set ignorecase " ignore case when searching
set smartcase " only consider case if at least on char is capitol
set smarttab " insert tabs on the start of a line according to shiftwidth, not tabstop
set hlsearch " highlight search terms
set incsearch " show search matches as you typeset nowrap " don't wrap lines
set history=1000 " remember more commands and search history
set undolevels=1000 " use many muchos levels of undo
set wildignore=*.swp,*.bak,*.pyc,*.class
set title " change the terminal's title
set visualbell " don't beep
set noerrorbells " don't beep
" FOR POWERLINE
" set rtp+=/usr/lib/python3/dist-packages/powerline/bindings/vim/
" Always show statusline
set laststatus=2
" Use 256 colours (Use this setting only if your terminal supports 256 colours)
set t_Co=256
"END FOR POWELINE
|