summaryrefslogtreecommitdiff
path: root/vifm/.config/vifm/vifmrc
blob: bb719a2a6699b8e07daa624651ed376bb143fb8c (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
" Command to open files
filetype * xdg-open
filetype *.exe wine

" Options
set fastrun
set history=100
set incsearch
set runexec
set sortnumbers
set scrolloff=2
set smartcase
set vicmd=$EDITOR
set relativenumber
set vimhelp
set wildmenu

" Commands
command! backup !cp -r %f %f.bak

" Mappings
nnoremap s :shell<cr>
nnoremap w :view<cr>
nnoremap o :file<cr>
nnoremap b :marks<cr>
nnoremap gm :bmark<space>
nnoremap gb :bmarks<cr>
nnoremap r :run<cr>
nnoremap ,b :backup<cr>
nnoremap ,r :%rename<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>

" Colorscheme
source /usr/share/vifm/colors/juef-zenburn.vifm

" Only one pane
only

" vim: ft=vim