File vifmrc changed (mode: 100644) (index 57488c2..5c079ec) |
... |
... |
nnoremap < <c-w>< |
134 |
134 |
nnoremap > <c-w>> |
nnoremap > <c-w>> |
135 |
135 |
|
|
136 |
136 |
" shellout |
" shellout |
137 |
|
nnoremap s :shell<cr> |
|
|
137 |
|
nnoremap <silent> s :shell<cr> |
138 |
138 |
|
|
139 |
139 |
" display sorting dialog |
" display sorting dialog |
140 |
|
nnoremap S :sort<cr> |
|
|
140 |
|
nnoremap <silent> S :sort<cr> |
141 |
141 |
|
|
142 |
142 |
" toggle visibility of preview window |
" toggle visibility of preview window |
143 |
|
nnoremap w :view<cr> |
|
144 |
|
vnoremap w :view<cr>gv |
|
|
143 |
|
nnoremap <silent> w :view<cr> |
|
144 |
|
vnoremap <silent> w :view<cr>gv |
145 |
145 |
|
|
146 |
146 |
" moving cursor in another pane |
" moving cursor in another pane |
147 |
|
nnoremap J <space>j<space> |
|
148 |
|
nnoremap K <space>k<space> |
|
|
147 |
|
nnoremap <silent> J <space>j<space> |
|
148 |
|
nnoremap <silent> K <space>k<space> |
149 |
149 |
|
|
150 |
150 |
" open file in the background using its default program |
" open file in the background using its default program |
151 |
|
nnoremap gb :file &<cr>l |
|
|
151 |
|
nnoremap <silent> gb :file &<cr>l |
152 |
152 |
|
|
153 |
153 |
" mappings for faster file renaming |
" mappings for faster file renaming |
154 |
154 |
" prepend to name |
" prepend to name |
|
... |
... |
command! target : let $VIMARGS = '--servername "%a"' |
210 |
210 |
" open file in existing instance of gvim (uses target) |
" open file in existing instance of gvim (uses target) |
211 |
211 |
if executable('run-gvim') |
if executable('run-gvim') |
212 |
212 |
" run-gvim can be a custom wrapper for gvim that does some extra work |
" run-gvim can be a custom wrapper for gvim that does some extra work |
213 |
|
nnoremap o : ![ -z "$(gvim --serverlist)" ] && run-gvim %f |
|
214 |
|
\ || run-gvim --remote-tab-silent %f:p &<cr> |
|
|
213 |
|
nnoremap <silent> o : ![ -z "$(gvim --serverlist)" ] && run-gvim %f |
|
214 |
|
\ || run-gvim --remote-tab-silent %f:p &<cr> |
215 |
215 |
else |
else |
216 |
|
nnoremap o : ![ -z "$(gvim --serverlist)" ] && gvim $VIMARGS %f |
|
217 |
|
\ || gvim $VIMARGS --remote-tab-silent %f:p &<cr> |
|
|
216 |
|
nnoremap <silent> o : ![ -z "$(gvim --serverlist)" ] && gvim $VIMARGS %f |
|
217 |
|
\ || gvim $VIMARGS --remote-tab-silent %f:p &<cr> |
218 |
218 |
endif |
endif |
219 |
219 |
" open file in new instance of gvim |
" open file in new instance of gvim |
220 |
220 |
nnoremap O :!gvim %f &<cr> |
nnoremap O :!gvim %f &<cr> |