blob: 1bd27d89f354ecaa126973f30f8e381dc4e15a94 (
plain)
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
|
" Command to open files
filetype *.JPG feh %f &
filetype *.exe wine %f &
filetype * xdg-open %f &
" Options
set fastrun
set history=100
set incsearch
set sortnumbers
set scrolloff=2
set smartcase
set vicmd=$EDITOR
set relativenumber
set vimhelp
set wildmenu
" Run executables on <cr>
" set runexec
" Commands
command! backup !cp -r %f %f.bak
" Mappings
nnoremap s :shell<cr>
nnoremap w :view<cr>
nnoremap x :!xdg-open %f<cr>
nnoremap o :file<cr>
nnoremap b :marks<cr>
nnoremap gm :bmark<space>
nnoremap gb :bmarks<cr>
nnoremap g<cr> :!nvim %f<cr>
nnoremap r :run<cr>
nnoremap ,b :backup<cr>
nnoremap ,t :!urxvt &<cr>
nnoremap ,l :!less %f<cr>
nnoremap <c-d> :q<cr>
nnoremap <c-l> <c-w>l
nnoremap <bs> <c-w>h
" To disable automatic tagging of search results
nnoremap coh :set hlsearch!<cr>
nnoremap ,r :source ~/.config/vifm/vifmrc<cr>
" Only one pane
only
" Colors
highlight Border cterm=none ctermfg=default ctermbg=235
highlight Win cterm=none ctermfg=188 ctermbg=237
highlight Directory cterm=none ctermfg=108 ctermbg=default
highlight CurrLine cterm=none ctermfg=168 ctermbg=236
highlight Selected cterm=none ctermfg=116 ctermbg=238
highlight StatusLine cterm=bold ctermfg=187 ctermbg=95
highlight ErrorMsg cterm=bold ctermfg=115 ctermbg=default
highlight WildMenu cterm=bold,reverse ctermfg=144 ctermbg=235
highlight CmdLine cterm=none ctermfg=188 ctermbg=237
highlight TopLine cterm=none ctermfg=108 ctermbg=235
highlight TopLineSel cterm=bold ctermfg=186 ctermbg=236
highlight Executable cterm=none ctermfg=172 ctermbg=default
highlight Link cterm=none ctermfg=216 ctermbg=default
highlight BrokenLink cterm=none ctermfg=174 ctermbg=default
highlight Device cterm=none ctermfg=228 ctermbg=default
highlight Fifo cterm=none ctermfg=109 ctermbg=default
highlight Socket cterm=none ctermfg=13 ctermbg=default
" vim: ft=vim
|