blob: 8b0be1a9bf9c2800615533f67639f57eab74ee42 (
plain) (
blame)
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
104
105
|
syntax on
filetype plugin on
filetype indent on
" leader
let maplocalleader = "\\"
let mapleader = ","
set nocompatible
set history=799
set wildignore=**/__pycache*/**
set wildoptions=pum
set wildmenu
set wildchar=<TAB>
set showmatch
set ruler
set showcmd
set nohlsearch
set incsearch
set ignorecase
set smartindent
set smartcase
set tabstop=4
set softtabstop=4
set shiftwidth=4
set splitbelow
set noswapfile
set nobackup
set splitright
set autoindent
set expandtab
set hidden
set path+=**
set relativenumber
set number
set more
set signcolumn=yes
set colorcolumn=0
set equalalways
set showmode
set listchars=tab:»→,trail:␣
set shortmess+=c
set tags+=./tags
set background=dark
set scrolloff=0
set completeopt=menuone,longest
colorscheme gruber-darker
highlight SignColumn guibg=blue ctermbg=black
" Open vimrc
nnoremap <leader>ev <C-w>s<C-w>j<C-w>L:e $HOME/.vim/vimrc<cr>
" Jump up or down by 10 lines.
noremap <silent> J 10j
noremap <silent> K 10k
" Place timestamps, be it date (YYYY-MM-DD) or time (HH:MM:SS).
if (exists("*strftime"))
noremap <silent> <leader>date "=strftime("%F")<CR>p9h
noremap <silent> <leader>time "=strftime("%X")<CR>p7h
endif
" Place timestamps, be it date (YYYY-MM-DD) or time (HH:MM:SS).
if (exists("*strftime"))
noremap <silent> <leader>date "=strftime("%F")<CR>p9h
noremap <silent> <leader>time "=strftime("%X")<CR>p7h
endif
call plug#begin()
"Plug 'vim-scripts/AutoComplPop'
" Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
" Plug 'junegunn/fzf.vim'
Plug 'lambdalisue/fern.vim'
Plug 'junegunn/goyo.vim'
Plug 'sheerun/vim-polyglot'
Plug 'preservim/vim-markdown'
Plug 'mhinz/vim-signify'
Plug 'vim-test/vim-test'
Plug 'ledger/vim-ledger'
Plug 'fatih/vim-go', {'do': ':GoUpdateBinaries' }
Plug 'tpope/vim-dispatch'
Plug 'tpope/vim-commentary'
Plug 'SirVer/UltiSnips'
Plug 'honza/vim-snippets'
call plug#end()
" vim-test
nmap <silent> tn :TestNearest<CR>
nmap <silent> tf :TestFile<CR>
nmap <silent> ts :TestSuite<CR>
nmap <silent> tl :TestLast<CR>
nmap <silent> <leader>tv :TestVisit<CR>
let test#strategy = "basic"
let test#python#pytest#options = '-q -s'
let test#python#runner = 'pytest'
let test#vimterminal#term_position = "belowright"
" clear search highlights
nnoremap <leader><space> :noh<cr>:call clearmatches()<cr>
runtime macros/matchit.vim "allows jumping between brackets with % in normal mode
" remap :W to :w - :W was previous Windows in fzf
command! W w
|