Skip to content

tool - cli file manager with vi keybindings - ranger and vifm

Searching for perfect tools seams to have a long tradition. Also switching from gui tools to cli tools back to gui and so one is a great game. This time i decided to try out some cli file managers. Since we are working on the cli it is a massive benefit if the software supports vi keybindings.

At first i tried a recommended tool called ranger. It feels very naturaly when you browse your dictionaries and it looks like the osx finder in console mode - maybe the finder "adopt" his design from a cli tool that i do not know so i do not know if the compare is correct, do not blame me for that ;-). It still feels a bit under development but it is no wasted time if you give him a try. A short howto can be found here

Second file manager i tried is vifm. It is definitly a file manager for vi lovers :-). Vifm provides, if wished, a two panel view like used by mc. Since i am a vi (i know vi is the center of eVIl), i like working with vifm and with the option of having a two panel layout if feels like mc on (vi) dope :-D. This tool definitely get a "try it out" mark, do it! A short help can be found here

VI/VIM - Search

date: 111025 search

:set [ic|noic]
sets globaly the search to ["ignore case"|"not ignore case"] (not to be or be a case sensitive searcher ;-) ).
%s/myMixedCaseWord/ReplacedWord/gi
let you search/replace with ignored case
/thIsISmyCaseInsensitVSearch\c

searchs for your term with ignored case

Links yolinux.com - tutorial - vim vim.wikia.com

date: 111229 search and replace

:$rs/searchterm/replaceterm/$a
$r (the range) can be: % - the whole file 23 - works on line 23 $ - nothing, only for current line. $a (the argument) can be: g - whole line i - be case insensitive I - be case sensitive c - commit every change [y|n] $ - nothing, only first searchterm will be replaced. tuxfiles.org