vifmrc 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. "##############################################################################
  2. " My config file for the vifm terminal file manager
  3. "##############################################################################
  4. set vicmd=nvim
  5. set syscalls
  6. set trash
  7. set history=100
  8. set nofollowlinks
  9. set sortnumbers
  10. set undolevels=100
  11. set vimhelp
  12. set norunexec
  13. set timefmt=%d/%m/%Y\ %H:%M
  14. " set viewcolumns=*{name}..,6{}.
  15. set viewcolumns=-{name}..,10{}.
  16. set rulerformat="%l/%S%[ +%x%] "
  17. set wildmenu
  18. set wildstyle=popup
  19. set suggestoptions=normal,visual,view,otherpane,keys,marks,registers
  20. set ignorecase
  21. set smartcase
  22. set nohlsearch
  23. set incsearch
  24. set scrolloff=4
  25. set statusline=" %A %10u:%-7g %8s [%8E] %18d %{&sort} %= %a/%c "
  26. set vifminfo=dhistory,savedirs,chistory,state,tui,shistory,
  27. \phistory,fhistory,dirstack,registers,bookmarks,bmarks
  28. set slowfs=curlftpfs
  29. source $HOME/.config/vifm/icons.vifm
  30. colorscheme my_everforest
  31. "##############################################################################
  32. " File associations
  33. "##############################################################################
  34. " Pdf, Djvu -------------------------------------------------------------------
  35. " filextype *.pdf atril %c %i &, apvlv %c, xpdf %c
  36. filetype *.pdf,*.djvu
  37. \ {View in atril}
  38. \ atril %f &,
  39. \ {View in qpdfview}
  40. \ qpdfview %f &
  41. filextype *.pdf,*.djvu
  42. \ {View in zathura}
  43. \ zathura %f,
  44. \ {View in apvlv}
  45. \ apvlv %f
  46. fileviewer *.pdf
  47. \ vifmimg pdfpreview %px %py %pw %ph %c
  48. \ %pc
  49. \ vifmimg clear
  50. " \ pdftotext -nopgbrk %c -
  51. " PostScript ------------------------------------------------------------------
  52. filetype *.ps,*.eps,*.ps.gz
  53. \ {View in zathura}
  54. \ zathura %f,
  55. \ {View in gv}
  56. \ gv %c %i &,
  57. " Audio -----------------------------------------------------------------------
  58. filextype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus
  59. \ {View using deadbeef}
  60. \ deadbeef %f %i &,
  61. \ {Play using MPlayer}
  62. \ mplayer %f %i &
  63. filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus
  64. \ {View using cmus}
  65. \ alacritty -e cmus %f &,
  66. \ {Play using ffplay}
  67. \ ffplay -nodisp -autoexit %c
  68. fileviewer *.mp3 mp3info
  69. fileviewer *.flac soxi
  70. " Video -----------------------------------------------------------------------
  71. filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
  72. \*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
  73. \*.as[fx]
  74. \ {View using smplayer}
  75. \ smplayer %f %i &
  76. filetype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
  77. \ {View using ffplay}
  78. \ ffplay -fs -autoexit %f
  79. fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,
  80. \*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,
  81. \*.as[fx]
  82. \ vifmimg videopreview %px %py %pw %ph %c
  83. \ %pc
  84. \ vifmimg clear
  85. " Web -------------------------------------------------------------------------
  86. filetype *.html,*.htm
  87. \ {Open with vim}
  88. \ alacritty -e vim %c &,
  89. \ {Open with links}
  90. \ links %c &,
  91. \ {Open with lynx}
  92. \ lynx %c &
  93. filextype *.html,*.htm
  94. \ {Open with gvim}
  95. \ gvim %c &,
  96. \ {Open with dwb}
  97. \ dwb %f %i &,
  98. \ {Open with firefox}
  99. \ firefox %f &,
  100. \ {Open with uzbl}
  101. \ uzbl-browser %f %i &
  102. " Object ----------------------------------------------------------------------
  103. filetype *.o nm %f | less
  104. " Man page --------------------------------------------------------------------
  105. filetype *.[1-8] man ./%c
  106. fileviewer *.[1-8] man ./%c | col -b
  107. " Images ----------------------------------------------------------------------
  108. filetype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
  109. \ {View in XnViewMP}
  110. \ xnviewmp %f %i &,
  111. \ {View in ristretto}
  112. \ ristretto %f &
  113. filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
  114. \ {View in sxiv}
  115. \ sxiv -ia %f &,
  116. \ {View in imv}
  117. \ imv-x11 -b 1D2330 -d %d &,
  118. \ {View in feh}
  119. \ feh %d &
  120. fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm
  121. \ vifmimg draw %px %py %pw %ph %c
  122. \ %pc
  123. \ vifmimg clear
  124. fileviewer *.gif
  125. \ vifmimg gifpreview %px %py %pw %ph %c
  126. \ %pc
  127. \ vifmimg clear
  128. " OpenRaster ------------------------------------------------------------------
  129. filetype *.ora
  130. \ {Edit in MyPaint}
  131. \ mypaint %f,
  132. " Mindmap ---------------------------------------------------------------------
  133. filetype *.vym
  134. \ {Open with VYM}
  135. \ vym %f &,
  136. " MD5 -------------------------------------------------------------------------
  137. filetype *.md5
  138. \ {Check MD5 hash sum}
  139. \ md5sum -c %f %S,
  140. " SHA1 ------------------------------------------------------------------------
  141. filetype *.sha1
  142. \ {Check SHA1 hash sum}
  143. \ sha1sum -c %f %S,
  144. " SHA256 ----------------------------------------------------------------------
  145. filetype *.sha256
  146. \ {Check SHA256 hash sum}
  147. \ sha256sum -c %f %S,
  148. " SHA512 ----------------------------------------------------------------------
  149. filetype *.sha512
  150. \ {Check SHA512 hash sum}
  151. \ sha512sum -c %f %S,
  152. " GPG signature ---------------------------------------------------------------
  153. filetype *.asc
  154. \ {Check signature}
  155. \ !!gpg --verify %c,
  156. " Torrent ---------------------------------------------------------------------
  157. filextype *.torrent tixati %f &
  158. fileviewer *.torrent dumptorrent -v %c
  159. " FuseZipMount ----------------------------------------------------------------
  160. filextype *.zip,*.jar,*.war,*.ear,*.oxt,*.apkg
  161. \ {View contents}
  162. \ engrampa %f
  163. filetype *.zip,*.jar,*.war,*.ear,*.oxt,*.apkg
  164. \ {Mount with fuse-zip}
  165. \ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR,
  166. \ {View contents}
  167. \ zip -sf %c | less,
  168. \ {Extract here}
  169. \ tar -xf %c
  170. fileviewer *.zip,*.jar,*.war,*.ear,*.oxt zip -sf %c
  171. " ArchiveMount ----------------------------------------------------------------
  172. filextype *.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz
  173. \ {View contents}
  174. \ engrampa %f
  175. filetype *.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz
  176. \ {Mount with archivemount}
  177. \ FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR,
  178. \ {View contents}
  179. \ zip -sf %c | less,
  180. \ {Extract here}
  181. \ tar -xf %c
  182. fileviewer *.tgz,*.tar.gz tar -tzf %c
  183. fileviewer *.tar.bz2,*.tbz2 tar -tjf %c
  184. fileviewer *.tar.txz,*.txz xz --list %c
  185. fileviewer *.tar tar -tf %c
  186. " Rar2FsMount and rar archives ------------------------------------------------
  187. filextype *.rar
  188. \ {View contents}
  189. \ engrampa %f
  190. filetype *.rar
  191. \ {Mount with rar2fs}
  192. \ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR
  193. fileviewer *.rar unrar v %c
  194. " Fuse7z and 7z archives ------------------------------------------------------
  195. filextype *.7z
  196. \ {View contents}
  197. \ engrampa %f
  198. filetype *.7z
  199. \ {Mount with fuse-7z}
  200. \ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR
  201. fileviewer *.7z 7z l %c
  202. " IsoMount --------------------------------------------------------------------
  203. filetype *.iso
  204. \ {Mount with fuseiso}
  205. \ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR,
  206. " SshMount --------------------------------------------------------------------
  207. filetype *.ssh
  208. \ {Mount with sshfs}
  209. \ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR %FOREGROUND,
  210. " FtpMount --------------------------------------------------------------------
  211. filetype *.ftp
  212. \ {Mount with curlftpfs}
  213. \ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %FOREGROUND,
  214. " Office files ----------------------------------------------------------------
  215. filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx,*.ppt wps %f &, libreoffice %f &
  216. fileviewer *.doc catdoc %c
  217. fileviewer *.docx docx2txt.pl %f -
  218. " TuDu files ------------------------------------------------------------------
  219. filetype *.tudu tudu -f %c
  220. " Qt projects -----------------------------------------------------------------
  221. " filextype *.pro qtcreator %f &
  222. filextype *.pro gvim %f &
  223. filetype *.pro alacritty -e vim %f &
  224. " Directories -----------------------------------------------------------------
  225. filextype */
  226. \ {View in dolphin}
  227. \ dolphin %f &,
  228. \ {View in thunar}
  229. \ Thunar %f &
  230. filextype */
  231. \ {View in Vifm}
  232. \ vifm %f &,
  233. \ {View in Ranger}
  234. \ ranger %f &
  235. " Config & exec files ---------------------------------------------------------
  236. filextype *.conf,*rc,*.txt,*.yml,*.json,config,*.fish,*.sh,*.ini,*.css,*.bak,*.backup,*info,*.md,*.dat,*.xml,*.Xresources,*.asm,*.py,*.c,*.cpp,*.h,*.awk,*bash*,*.git*,*.zsh,*zshrc,*.profile,*.log,*.desktop,*.vifm,*.vim,*.rs,*.hs,*.lua,*.org,*.el gvim %f &
  237. filetype *.conf,*rc,*.txt,*.yml,*.json,config,*.fish,*.sh,*.ini,*.css,*.bak,*.backup,*info,*.md,*.dat,*.xml,*.Xresources,*.asm,*.py,*.c,*.cpp,*.h,*.awk,*bash*,*.git*,*.zsh,*zshrc,*.profile,*.log,*.desktop,*.vifm,*.vim,*.rs,*.hs,*.lua,*.org,*.el alacritty -e vim %f &
  238. " Books -----------------------------------------------------------------------
  239. filextype *.fb2,*.epub cr3 %f &
  240. " Fonts -----------------------------------------------------------------------
  241. filextype *.ttf,*.otf gnome-font-viewer %f %i &
  242. " .deb ------------------------------------------------------------------------
  243. filextype *.deb gdebi-gtk %f &, engrampa %f &
  244. "##############################################################################
  245. " Syntax highlighting in preview
  246. "##############################################################################
  247. " Explicitly set highlight type for some extensions ---------------------------
  248. " 256-color terminal
  249. " fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dante --syntax c %c
  250. " fileviewer Makefile,Makefile.* highlight -O xterm256 -s dante --syntax make %c
  251. "
  252. " 16-color terminal
  253. " fileviewer *.c,*.h highlight -O ansi -s dante %c
  254. "
  255. " Or leave it for automatic detection -----------------------------------------
  256. "
  257. " fileviewer *[^/] pygmentize -O style=monokai -f console256 -g
  258. " Displaying pictures in terminal ---------------------------------------------
  259. "
  260. " fileviewer *.jpg,*.png shellpic %c
  261. " Open all other files with default system programs (you can also remove all
  262. " :file[x]type commands above to ensure they don't interfere with system-wide
  263. " settings). By default all unknown files are opened with 'vi[x]cmd'
  264. " uncommenting one of lines below will result in ignoring 'vi[x]cmd' option
  265. " for unknown file types.
  266. " For *nix:
  267. " filetype * xdg-open
  268. " For OS X:
  269. " filetype * open
  270. " For Windows:
  271. " filetype * start, explorer
  272. "##############################################################################
  273. " Marks
  274. "##############################################################################
  275. " :mark mark /full/directory/path [filename]
  276. mark h ~/
  277. mark d ~/Desktop
  278. mark w ~/Downloads
  279. mark b ~/OS/Linux/+backup
  280. mark p ~/Projects
  281. mark c ~/.config
  282. mark s ~/.myScripts
  283. mark l ~/.local/share
  284. mark a ~/.cache
  285. mark M /run/media
  286. mark R /
  287. "##############################################################################
  288. " Commands
  289. "##############################################################################
  290. " Archives -------------------------------------------------------------------
  291. command! zip zip -9 -r %c.zip %f
  292. command! unzip unzip %f
  293. command! tar tar -czvf %c.tar.gz %f
  294. command! untar tar -xzvf %f
  295. " Copy and move (instead of copy and move) WITH menu dialog -------------------
  296. command! cp :yank | winrun , put
  297. command! mv :yank | winrun , put!
  298. command! diff vim -d %f %F
  299. command! run !! ./%f
  300. command! mkcd :mkdir %a | cd %a
  301. command! reload :write | restart
  302. " Toggle detailed/brief information about files -------------------------------
  303. command! togglefilesinfo
  304. \ : if &viewcolumns == '-{name}..,10{}.'
  305. \ | set viewcolumns=*{name}..,10{size}.
  306. \ | echo 'Files information: detailed'
  307. \ | else
  308. \ | set viewcolumns='-{name}..,10{}.'
  309. \ | echo 'Files information: brief'
  310. \ | endif
  311. command! togglefilesmoreinfo
  312. \ : if &viewcolumns == '-{name}..,10{}.'
  313. " \ | set viewcolumns=*{name}.,10{size}.,12{perms},10{uname},-7{gname},18{mtime}
  314. " \ | set viewcolumns=*{name}..,{ext},10{size}.,12{perms},10{uname},-10{gname},18{mtime}
  315. \ | set viewcolumns=*{name}..,10{size}.,18{mtime}
  316. \ | echo 'Files information: detailed'
  317. \ | else
  318. \ | set viewcolumns='-{name}..,10{}.'
  319. \ | echo 'Files information: brief'
  320. \ | endif
  321. " Reset sort ------------------------------------------------------------------
  322. command! resetsort
  323. \ : if &sort != '+name'
  324. \ | set sort=+name
  325. \ | echo 'Reset sort to +name'
  326. \ | endif
  327. " Open most used tabs ---------------------------------------------------------
  328. command! openProgrammingDirs
  329. \ :tabonly
  330. \ | tabnew
  331. \ | tabname Rust
  332. \ | cd ~/Documents/forProgramming/Rust/Books/ ~/Projects/Rust/
  333. \ | tabnew
  334. \ | tabname Lua
  335. \ | cd ~/Documents/forProgramming/Lua/Books/ ~/Projects/Lua/
  336. \ | tabnew
  337. \ | tabname Haskell
  338. \ | cd ~/Documents/forProgramming/Haskell/Books/ ~/Projects/Haskell/
  339. \ | tabnext 1
  340. \ | tabclose
  341. command! openBackupDirs
  342. \ :tabonly
  343. \ | tabnew
  344. \ | tabname Backups
  345. \ | cd ~/OS/Linux/+backup/DropboxDesktop/Desktop/ ~/.config/
  346. \ | tabnew
  347. \ | tabname yay
  348. \ | cd ~/.cache/yay ~/.cache/yay_Backups
  349. \ | tabnew
  350. \ | tabname Kernel
  351. \ | cd ~/OS/Linux/+backup/Drivers/NVidia/GeForce9600GT/WorksOnLinuxKernel419/Kernel419/ /var/cache/pacman/pkg/
  352. \ | tabnext 1
  353. \ | tabclose
  354. "##############################################################################
  355. " Mappings
  356. "##############################################################################
  357. " Archives ---------------------------------------------------------------------
  358. nnoremap <wait> ,cz :!$TERMINAL -e zip -9 -r %c.zip %f & <cr>
  359. nnoremap <wait> ,xz :!$TERMINAL -e unzip %f & <cr>
  360. nnoremap <wait> ,ct :!$TERMINAL -e tar -czvf %c.tar.gz %f & <cr>
  361. nnoremap <wait> ,xt :!$TERMINAL -e tar -xzvf %f & <cr>
  362. " Open all images in current directory in sxiv thumbnail mode ------------------
  363. nnoremap sx :!sxiv -t %d & <cr>
  364. " Open selected images in gimp -------------------------------------------------
  365. nnoremap gp :!gimp %f %i & <cr>
  366. " Start shell in current directory --------------------------------------------
  367. nnoremap s :shell<cr>
  368. " Display sorting dialog ------------------------------------------------------
  369. nnoremap S :sort<cr>
  370. " Toggle visibility of preview window -----------------------------------------
  371. nnoremap w :view<cr>
  372. vnoremap w :view<cr>gv
  373. " Open file in the background using its default program -----------------------
  374. nnoremap gb :file &<cr>l
  375. " yank current directory path into the clipboard ------------------------------
  376. nnoremap yd :!echo -n %d | xclip -sel clipboard %i<cr>:echo expand('%"d') "is yanked to clipboard"<cr>
  377. " yank current file path into the clipboard -----------------------------------
  378. nnoremap yf :!echo -n %c:p | xclip -sel clipboard %i<cr>:echo expand('%"c:p') "is yanked to clipboard"<cr>
  379. " yank current filename without path into the clipboard -----------------------
  380. nnoremap yn :!echo -n %c | xclip -sel clipboard %i<cr>:echo expand('%"c') "is yanked to clipboard"<cr>
  381. " yank root of current file's name into the clipboard -------------------------
  382. nnoremap yr :!echo -n %c:r | xclip -sel clipboard %i<cr>:echo expand('%"c:r') "is yanked to clipboard"<cr>
  383. " Mappings for faster renaming ------------------------------------------------
  384. nnoremap I cw<c-a>
  385. nnoremap cc cw<c-u>
  386. nnoremap A cw
  387. " Open console in current directory -------------------------------------------
  388. nnoremap <wait> ,t :!$TERMINAL &<cr>
  389. " Reload ----------------------------------------------------------------------
  390. nnoremap <wait> ,r :reload<cr>
  391. " Open bookmarks --------------------------------------------------------------
  392. nnoremap <wait> ,b :bmarks<cr>
  393. nnoremap <wait> ,bt :bmarks<space>
  394. " Open editor to edit vifmrc and apply settings after returning to vifm -------
  395. nnoremap <wait> ,ev :write | edit $MYVIFMRC | restart<cr>
  396. " Toggle wrap setting on ,w key -----------------------------------------------
  397. nnoremap <wait> ,w :set wrap!<cr>
  398. " Toggle detailed/brief information about files -------------------------------
  399. nnoremap <wait> ,ti :togglefilesinfo<cr>
  400. nnoremap <wait> ,tmi :togglefilesmoreinfo<cr>
  401. " Reset sort to +name ---------------------------------------------------------
  402. nnoremap <wait> ,s :resetsort<cr>
  403. " Mount/Unmount windows disks: /dev/sda1 (C) and /dev/sda2 (D) ----------------
  404. nnoremap <wait> ,mc :!~/.myScripts/winC_mount.sh<cr>
  405. nnoremap <wait> ,md :!~/.myScripts/winD_mount.sh<cr>
  406. nnoremap <wait> ,uc :!~/.myScripts/winC_unmount.sh<cr>
  407. nnoremap <wait> ,ud :!~/.myScripts/winD_unmount.sh<cr>
  408. " Quit ------------------------------------------------------------------------
  409. map <wait> <Esc><Esc> :q!<cr>
  410. " Quit all windows without saving
  411. nnoremap ,,q :qa!<cr>
  412. " Quit all windows with saving
  413. nnoremap ,,x :xa<cr>
  414. " Quit the current windows with saving
  415. nnoremap ,,z :x<cr>
  416. " Tabs ------------------------------------------------------------------------
  417. nnoremap ,tn :tabnew<cr>
  418. nnoremap ,[ :tabprevious<cr>
  419. nnoremap ,] :tabnext<cr>
  420. nnoremap ,n :tabname<space>
  421. nnoremap ,1 1gt
  422. nnoremap ,2 2gt
  423. nnoremap ,3 3gt
  424. nnoremap ,4 4gt
  425. nnoremap ,5 5gt
  426. nnoremap ,6 6gt
  427. nnoremap ,7 7gt
  428. nnoremap ,8 8gt
  429. nnoremap ,9 9gt
  430. " Move focus between panes ----------------------------------------------------
  431. noremap <C-k> <C-w>k
  432. noremap <C-j> <C-w>j
  433. noremap <C-h> <C-w>h
  434. noremap <BS> <C-w>h
  435. noremap <C-l> <C-w>l
  436. " Adjust pane size (left for decreasing, right for increasing) ----------------
  437. nnoremap <left> <C-w><
  438. nnoremap <right> <C-w>>
  439. " Moving cursor in another pane -----------------------------------------------
  440. nnoremap <silent> J <tab>j<tab>
  441. nnoremap <silent> K <tab>k<tab>
  442. " Example of standard two-panel file managers mappings ------------------------
  443. nnoremap <f3> :!$TERMINAL -e bat --paging=always %f<cr>
  444. " nnoremap <f4> :edit<cr>
  445. nnoremap <f4> :!$TERMINAL -e vim %f &<cr>
  446. " nnoremap <f5> :copy<cr>
  447. " nnoremap <f6> :move<cr>
  448. nnoremap <f5> :cp<cr>
  449. nnoremap <f6> :mv<cr>
  450. nnoremap <f7> :mkdir<space>
  451. nnoremap <f10> :q<cr>
  452. " nnoremap <f11> :<cr>
  453. " nnoremap <f12> :<cr>
  454. " Midnight commander alike mappings -------------------------------------------
  455. " Open current directory in the other pane
  456. nnoremap <a-i> :sync<cr>
  457. " Open directory under cursor in the other pane
  458. nnoremap <a-o> :sync %c<cr>
  459. " Swap panes
  460. nnoremap <c-u> <c-w>x
  461. " " Try to open several tabs
  462. " tabname Rust
  463. " cd ~/Documents/forProgramming/Rust/Books/ ~/Projects/Rust/
  464. "
  465. " tabnew
  466. " tabname Lua
  467. " cd ~/Documents/forProgramming/Lua/Books/ ~/Projects/Lua/
  468. "
  469. " tabnew
  470. " tabname Haskell
  471. " cd ~/Documents/forProgramming/Haskell/Books/ ~/Projects/Haskell/
  472. "
  473. " " start on the first tab
  474. " tabnext 1