-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
60 lines (53 loc) · 1.64 KB
/
vimrc
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
" VIM-PLUG
" Install plugins with plugin manager: https://github.com/junegunn/vim-plug/blob/master/plug.vim
" run - :PlugInstall
" Dependencies - Git
call plug#begin('~/.vim/plugged')
Plug 'junegunn/goyo.vim'
Plug 'tpope/vim-markdown'
Plug 'tpope/vim-fugitive' " Vim+Git
" Plug 'morhetz/gruvbox'
" Plug 'nikolvs/vim-sunbather'
Plug 'patstockwell/vim-monokai-tasty'
Plug 'vim-airline/vim-airline'
Plug 'w0rp/ale' " Linting for programming languages (Set linters)
" ale tools: https://github.com/dense-analysis/ale#installation-with-vim-plug
call plug#end()
""""""""""""""SETTINGS"""""""""""""""
" colorscheme gruvbox
" colorscheme sunbather
colorscheme vim-monokai-tasty " From JJG
set background=dark
au BufRead,BufNewFile *.md set filetype=markdown
"au BufRead,BufNewFile *.md colorscheme murphy
syntax on " highlight syntax
set ic is hls
set relativenumber
set hidden " Jump into open buffers without needing to save
set number
" set nowrap " Line wrapping: No new line when text gets to the end
set smartindent " indentation for code
set tabstop=4 softtabstop=4
set noswapfile " disable the swapfile
set hlsearch " highlight all results
set ignorecase " ignore case in search
set incsearch " show search results as you type
" set visualbell
" set number " show line numbers
""""""""""""""KEY MAPPINGS"""""""""""""""
map <C-g> :Goyo 100<CR>
map <C-f> :Goyo!<CR>
inoremap kj <Esc>
" Delete words easily (Forward and backwards)
map z daw
map Z db
" Move forward between words
map H b
map L w
" Commands
map QQ :x <Enter>
map U <C-r> " Redo
" map ' $
"""""""""Plugin configurations"""""""""""
let g:airline_theme='monokai_tasty'
let g:ale_linters = {'python': ['flake8']}